From bc670130cc120e5828707ed23e0ad56e847d1374 Mon Sep 17 00:00:00 2001 From: azure-powershell-bot <65331932+azure-powershell-bot@users.noreply.github.com> Date: Fri, 17 Feb 2023 03:06:59 +0000 Subject: [PATCH 1/2] Move ServiceLinker to main --- .../Az.ServiceLinker.format.ps1xml | 1220 +++- src/ServiceLinker/Az.ServiceLinker.psd1 | 7 +- src/ServiceLinker/Az.ServiceLinker.psm1 | 2 +- src/ServiceLinker/README.md | 14 +- src/ServiceLinker/ServiceLinker.sln | 122 +- ...viceLinkerConfigurationForContainerApp.ps1 | 2 +- ...rviceLinkerConfigurationForSpringCloud.ps1 | 2 +- ...-AzServiceLinkerConfigurationForWebApp.ps1 | 2 +- .../Get-AzServiceLinkerForContainerApp.ps1 | 2 +- .../Get-AzServiceLinkerForSpringCloud.ps1 | 2 +- .../custom/Get-AzServiceLinkerForWebApp.ps1 | 2 +- ...New-AzServiceLinkerAzureResourceObject.ps1 | 10 +- ...ceLinkerConfluentBootstrapServerObject.ps1 | 6 +- ...iceLinkerConfluentSchemaRegistryObject.ps1 | 6 +- .../New-AzServiceLinkerForContainerApp.ps1 | 86 +- .../New-AzServiceLinkerForSpringCloud.ps1 | 86 +- .../custom/New-AzServiceLinkerForWebApp.ps1 | 80 +- ...eyVaultSecretReferenceSecretInfoObject.ps1 | 6 +- ...inkerKeyVaultSecretUriSecretInfoObject.ps1 | 6 +- ...ew-AzServiceLinkerSecretAuthInfoObject.ps1 | 8 +- ...erServicePrincipalSecretAuthInfoObject.ps1 | 6 +- ...erSystemAssignedIdentityAuthInfoObject.ps1 | 6 +- ...nkerUserAssignedIdentityAuthInfoObject.ps1 | 6 +- ...w-AzServiceLinkerValueSecretInfoObject.ps1 | 6 +- src/ServiceLinker/custom/README.md | 2 +- .../Remove-AzServiceLinkerForSpringCloud.ps1 | 2 +- .../Test-AzServiceLinkerForContainerApp.ps1 | 4 +- .../Test-AzServiceLinkerForSpringCloud.ps1 | 2 +- .../custom/Test-AzServiceLinkerForWebApp.ps1 | 2 +- .../Update-AzServiceLinkerForContainerApp.ps1 | 20 +- .../Update-AzServiceLinkerForSpringCloud.ps1 | 6 +- .../Update-AzServiceLinkerForWebApp.ps1 | 6 +- ...rviceLinkerConfigurationForContainerApp.md | 2 +- ...erviceLinkerConfigurationForSpringCloud.md | 2 +- ...t-AzServiceLinkerConfigurationForWebApp.md | 2 +- .../Get-AzServiceLinkerConfigurationName.md | 14 + .../Get-AzServiceLinkerForContainerApp.md | 14 +- .../Get-AzServiceLinkerForSpringCloud.md | 12 +- .../examples/Get-AzServiceLinkerForWebApp.md | 12 +- .../Test-AzServiceLinkerForContainerApp.md | 2 +- .../Test-AzServiceLinkerForSpringCloud.md | 2 +- .../examples/Test-AzServiceLinkerForWebApp.md | 2 +- ...viceLinkerConfigurationForContainerApp.ps1 | 8 +- ...rviceLinkerConfigurationForSpringCloud.ps1 | 8 +- ...-AzServiceLinkerConfigurationForWebApp.ps1 | 8 +- .../Get-AzServiceLinkerConfigurationName.ps1 | 166 + .../Get-AzServiceLinkerForContainerApp.ps1 | 17 +- .../Get-AzServiceLinkerForSpringCloud.ps1 | 15 +- .../exports/Get-AzServiceLinkerForWebApp.ps1 | 15 +- ...New-AzServiceLinkerAzureResourceObject.ps1 | 6 +- ...ceLinkerConfluentBootstrapServerObject.ps1 | 6 +- ...iceLinkerConfluentSchemaRegistryObject.ps1 | 6 +- .../New-AzServiceLinkerForContainerApp.ps1 | 88 +- .../New-AzServiceLinkerForSpringCloud.ps1 | 76 +- .../exports/New-AzServiceLinkerForWebApp.ps1 | 76 +- ...ew-AzServiceLinkerSecretAuthInfoObject.ps1 | 8 +- ...erServicePrincipalSecretAuthInfoObject.ps1 | 6 +- ...erSystemAssignedIdentityAuthInfoObject.ps1 | 6 +- ...nkerUserAssignedIdentityAuthInfoObject.ps1 | 6 +- .../exports/ProxyCmdletDefinitions.ps1 | 617 ++- src/ServiceLinker/exports/README.md | 2 +- .../Remove-AzServiceLinkerForContainerApp.ps1 | 7 +- .../Remove-AzServiceLinkerForSpringcloud.ps1 | 13 +- .../Remove-AzServiceLinkerForWebApp.ps1 | 7 +- .../Test-AzServiceLinkerForContainerApp.ps1 | 13 +- .../Test-AzServiceLinkerForSpringCloud.ps1 | 13 +- .../exports/Test-AzServiceLinkerForWebApp.ps1 | 13 +- .../Update-AzServiceLinkerForContainerApp.ps1 | 15 +- .../Update-AzServiceLinkerForSpringCloud.ps1 | 15 +- .../Update-AzServiceLinkerForWebApp.ps1 | 15 +- src/ServiceLinker/generate-info.json | 6 +- src/ServiceLinker/generated/Module.cs | 2 +- .../generated/api/Models/Any.PowerShell.cs | 6 +- .../generated/api/Models/Any.TypeConverter.cs | 24 +- .../api/Models/Api20/ProxyResource.cs | 80 - .../generated/api/Models/Api20/Resource.cs | 108 - .../Api20220501/LinkerPatch.PowerShell.cs | 214 - .../api/Models/Api20220501/LinkerPatch.cs | 157 - .../LinkerProperties.PowerShell.cs | 206 - .../Models/Api20220501/LinkerProperties.cs | 174 - .../Api20220501/LinkerResource.PowerShell.cs | 294 - .../api/Models/Api20220501/LinkerResource.cs | 297 - .../SystemAssignedIdentityAuthInfo.cs | 57 - .../UserAssignedIdentityAuthInfo.cs | 91 - .../AccessKeyInfoBase.PowerShell.cs | 156 + .../AccessKeyInfoBase.TypeConverter.cs | 147 + .../Api20221101Preview/AccessKeyInfoBase.cs | 85 + .../AccessKeyInfoBase.json.cs | 120 + .../AuthInfoBase.PowerShell.cs | 30 +- .../AuthInfoBase.TypeConverter.cs | 31 +- .../AuthInfoBase.cs | 6 +- .../AuthInfoBase.json.cs | 18 +- .../AzureKeyVaultProperties.PowerShell.cs | 34 +- .../AzureKeyVaultProperties.TypeConverter.cs | 32 +- .../AzureKeyVaultProperties.cs | 18 +- .../AzureKeyVaultProperties.json.cs | 10 +- .../AzureResource.PowerShell.cs | 38 +- .../AzureResource.TypeConverter.cs | 31 +- .../AzureResource.cs | 26 +- .../AzureResource.json.cs | 12 +- .../AzureResourcePropertiesBase.PowerShell.cs | 30 +- ...ureResourcePropertiesBase.TypeConverter.cs | 32 +- .../AzureResourcePropertiesBase.cs | 8 +- .../AzureResourcePropertiesBase.json.cs | 12 +- ...rorDryrunPrerequisiteResult.PowerShell.cs} | 134 +- ...rDryrunPrerequisiteResult.TypeConverter.cs | 149 + .../BasicErrorDryrunPrerequisiteResult.cs | 91 + ...BasicErrorDryrunPrerequisiteResult.json.cs | 113 + .../ConfigurationInfo.PowerShell.cs | 172 + .../ConfigurationInfo.TypeConverter.cs | 147 + .../Api20221101Preview/ConfigurationInfo.cs | 137 + .../ConfigurationInfo.json.cs | 116 + ...InfoAdditionalConfigurations.PowerShell.cs | 149 + ...oAdditionalConfigurations.TypeConverter.cs | 151 + ...nfigurationInfoAdditionalConfigurations.cs | 42 + ...InfoAdditionalConfigurations.dictionary.cs | 75 + ...rationInfoAdditionalConfigurations.json.cs | 114 + ...figurationInfoCustomizedKeys.PowerShell.cs | 146 + ...urationInfoCustomizedKeys.TypeConverter.cs | 148 + .../ConfigurationInfoCustomizedKeys.cs | 40 + ...figurationInfoCustomizedKeys.dictionary.cs | 75 + .../ConfigurationInfoCustomizedKeys.json.cs | 112 + .../ConfigurationName.PowerShell.cs | 154 + .../ConfigurationName.TypeConverter.cs | 147 + .../Api20221101Preview/ConfigurationName.cs | 67 + .../ConfigurationName.json.cs | 110 + .../ConfigurationNameItem.PowerShell.cs | 176 + .../ConfigurationNameItem.TypeConverter.cs | 147 + .../ConfigurationNameItem.cs | 99 + .../ConfigurationNameItem.json.cs | 107 + .../ConfigurationNameResult.PowerShell.cs | 156 + .../ConfigurationNameResult.TypeConverter.cs | 147 + .../ConfigurationNameResult.cs | 73 + .../ConfigurationNameResult.json.cs | 123 + .../ConfigurationNames.PowerShell.cs | 172 + .../ConfigurationNames.TypeConverter.cs} | 52 +- .../Api20221101Preview/ConfigurationNames.cs | 104 + .../ConfigurationNames.json.cs | 124 + .../ConfigurationResult.PowerShell.cs} | 98 +- .../ConfigurationResult.TypeConverter.cs | 147 + .../ConfigurationResult.cs} | 26 +- .../ConfigurationResult.json.cs} | 38 +- .../ConfluentBootstrapServer.PowerShell.cs | 34 +- .../ConfluentBootstrapServer.TypeConverter.cs | 32 +- .../ConfluentBootstrapServer.cs | 16 +- .../ConfluentBootstrapServer.json.cs | 10 +- .../ConfluentSchemaRegistry.PowerShell.cs | 34 +- .../ConfluentSchemaRegistry.TypeConverter.cs | 32 +- .../ConfluentSchemaRegistry.cs | 16 +- .../ConfluentSchemaRegistry.json.cs | 10 +- ...eateOrUpdateDryrunParameters.PowerShell.cs | 330 ++ ...eOrUpdateDryrunParameters.TypeConverter.cs | 148 + .../CreateOrUpdateDryrunParameters.cs | 193 + .../CreateOrUpdateDryrunParameters.json.cs} | 44 +- .../DatabaseAadAuthInfo.PowerShell.cs} | 106 +- .../DatabaseAadAuthInfo.TypeConverter.cs | 147 + .../Api20221101Preview/DatabaseAadAuthInfo.cs | 51 + .../DatabaseAadAuthInfo.json.cs | 108 + .../DryrunList.PowerShell.cs} | 66 +- .../DryrunList.TypeConverter.cs} | 50 +- .../Models/Api20221101Preview/DryrunList.cs | 68 + .../DryrunList.json.cs} | 40 +- .../DryrunOperationPreview.PowerShell.cs | 178 + .../DryrunOperationPreview.TypeConverter.cs | 147 + .../DryrunOperationPreview.cs | 131 + .../DryrunOperationPreview.json.cs | 116 + .../DryrunParameters.PowerShell.cs | 146 + .../DryrunParameters.TypeConverter.cs | 147 + .../Api20221101Preview/DryrunParameters.cs | 54 + .../DryrunParameters.json.cs | 123 + .../DryrunPatch.PowerShell.cs | 184 + .../DryrunPatch.TypeConverter.cs | 147 + .../Models/Api20221101Preview/DryrunPatch.cs | 119 + .../Api20221101Preview/DryrunPatch.json.cs | 108 + .../DryrunPrerequisiteResult.PowerShell.cs | 146 + .../DryrunPrerequisiteResult.TypeConverter.cs | 147 + .../DryrunPrerequisiteResult.cs | 51 + .../DryrunPrerequisiteResult.json.cs | 127 + .../DryrunProperties.PowerShell.cs | 178 + .../DryrunProperties.TypeConverter.cs | 147 + .../Api20221101Preview/DryrunProperties.cs | 123 + .../DryrunProperties.json.cs | 139 + .../DryrunResource.PowerShell.cs | 266 + .../DryrunResource.TypeConverter.cs | 147 + .../Api20221101Preview/DryrunResource.cs | 196 + .../Api20221101Preview/DryrunResource.json.cs | 110 + .../FirewallRules.PowerShell.cs | 160 + .../FirewallRules.TypeConverter.cs | 147 + .../Api20221101Preview/FirewallRules.cs | 103 + .../Api20221101Preview/FirewallRules.json.cs | 120 + ...ultSecretReferenceSecretInfo.PowerShell.cs | 38 +- ...SecretReferenceSecretInfo.TypeConverter.cs | 33 +- .../KeyVaultSecretReferenceSecretInfo.cs | 16 +- .../KeyVaultSecretReferenceSecretInfo.json.cs | 10 +- .../KeyVaultSecretUriSecretInfo.PowerShell.cs | 34 +- ...yVaultSecretUriSecretInfo.TypeConverter.cs | 32 +- .../KeyVaultSecretUriSecretInfo.cs | 16 +- .../KeyVaultSecretUriSecretInfo.json.cs | 10 +- .../LinkerPatch.PowerShell.cs | 328 ++ .../LinkerPatch.TypeConverter.cs | 31 +- .../Models/Api20221101Preview/LinkerPatch.cs | 402 ++ .../LinkerPatch.json.cs | 12 +- .../LinkerProperties.PowerShell.cs | 322 ++ .../LinkerProperties.TypeConverter.cs | 31 +- .../Api20221101Preview/LinkerProperties.cs | 435 ++ .../LinkerProperties.json.cs | 22 +- .../LinkerResource.PowerShell.cs | 410 ++ .../LinkerResource.TypeConverter.cs | 31 +- .../Api20221101Preview/LinkerResource.cs | 479 ++ .../LinkerResource.json.cs | 17 +- ...singDryrunPrerequisiteResult.PowerShell.cs | 173 + ...gDryrunPrerequisiteResult.TypeConverter.cs | 151 + ...missionsMissingDryrunPrerequisiteResult.cs | 110 + ...onsMissingDryrunPrerequisiteResult.json.cs | 124 + .../PublicNetworkSolution.PowerShell.cs | 186 + .../PublicNetworkSolution.TypeConverter.cs | 147 + .../PublicNetworkSolution.cs | 159 + .../PublicNetworkSolution.json.cs | 112 + .../ResourceList.PowerShell.cs} | 76 +- .../ResourceList.TypeConverter.cs | 147 + .../ResourceList.cs} | 34 +- .../Api20221101Preview/ResourceList.json.cs | 118 + .../SecretAuthInfo.PowerShell.cs | 40 +- .../SecretAuthInfo.TypeConverter.cs | 31 +- .../SecretAuthInfo.cs | 26 +- .../SecretAuthInfo.json.cs | 12 +- .../SecretInfoBase.PowerShell.cs | 32 +- .../SecretInfoBase.TypeConverter.cs | 31 +- .../SecretInfoBase.cs | 6 +- .../SecretInfoBase.json.cs | 10 +- .../SecretStore.PowerShell.cs | 38 +- .../SecretStore.TypeConverter.cs | 31 +- .../SecretStore.cs | 23 +- .../SecretStore.json.cs | 10 +- .../SelfHostedServer.PowerShell.cs} | 74 +- .../SelfHostedServer.TypeConverter.cs | 147 + .../Api20221101Preview/SelfHostedServer.cs | 74 + .../SelfHostedServer.json.cs | 110 + ...PrincipalCertificateAuthInfo.PowerShell.cs | 58 +- ...ncipalCertificateAuthInfo.TypeConverter.cs | 33 +- .../ServicePrincipalCertificateAuthInfo.cs | 56 +- ...ervicePrincipalCertificateAuthInfo.json.cs | 22 +- ...rvicePrincipalSecretAuthInfo.PowerShell.cs | 194 + ...cePrincipalSecretAuthInfo.TypeConverter.cs | 33 +- .../ServicePrincipalSecretAuthInfo.cs | 70 +- .../ServicePrincipalSecretAuthInfo.json.cs | 24 +- .../SourceConfiguration.PowerShell.cs | 36 +- .../SourceConfiguration.TypeConverter.cs | 32 +- .../SourceConfiguration.cs | 6 +- .../SourceConfiguration.json.cs | 8 +- ...temAssignedIdentityAuthInfo.PowerShell.cs} | 82 +- ...mAssignedIdentityAuthInfo.TypeConverter.cs | 33 +- .../SystemAssignedIdentityAuthInfo.cs | 111 + .../SystemAssignedIdentityAuthInfo.json.cs | 122 + .../TargetServiceBase.PowerShell.cs | 32 +- .../TargetServiceBase.TypeConverter.cs | 31 +- .../TargetServiceBase.cs | 6 +- .../TargetServiceBase.json.cs | 14 +- .../UserAccountAuthInfo.PowerShell.cs | 178 + .../UserAccountAuthInfo.TypeConverter.cs | 147 + .../Api20221101Preview/UserAccountAuthInfo.cs | 128 + .../UserAccountAuthInfo.json.cs | 124 + ...UserAssignedIdentityAuthInfo.PowerShell.cs | 186 + ...rAssignedIdentityAuthInfo.TypeConverter.cs | 32 +- .../UserAssignedIdentityAuthInfo.cs | 145 + .../UserAssignedIdentityAuthInfo.json.cs | 24 +- .../VNetSolution.PowerShell.cs | 38 +- .../VNetSolution.TypeConverter.cs | 31 +- .../VNetSolution.cs | 29 +- .../VNetSolution.json.cs | 10 +- .../ValidateOperationResult.PowerShell.cs | 74 +- .../ValidateOperationResult.TypeConverter.cs | 32 +- .../ValidateOperationResult.cs | 58 +- .../ValidateOperationResult.json.cs | 12 +- .../ValidateResult.PowerShell.cs | 64 +- .../ValidateResult.TypeConverter.cs | 31 +- .../ValidateResult.cs | 30 +- .../ValidateResult.json.cs | 12 +- .../ValidationResultItem.PowerShell.cs | 52 +- .../ValidationResultItem.TypeConverter.cs | 32 +- .../ValidationResultItem.cs | 12 +- .../ValidationResultItem.json.cs | 10 +- .../ValueSecretInfo.PowerShell.cs | 36 +- .../ValueSecretInfo.TypeConverter.cs | 31 +- .../ValueSecretInfo.cs | 16 +- .../ValueSecretInfo.json.cs | 10 +- .../ErrorAdditionalInfo.PowerShell.cs | 34 +- .../ErrorAdditionalInfo.TypeConverter.cs | 32 +- .../{Api20 => Api30}/ErrorAdditionalInfo.cs | 10 +- .../ErrorAdditionalInfo.json.cs | 8 +- .../ErrorDetail.PowerShell.cs | 46 +- .../ErrorDetail.TypeConverter.cs | 31 +- .../Models/{Api20 => Api30}/ErrorDetail.cs | 36 +- .../{Api20 => Api30}/ErrorDetail.json.cs | 12 +- .../ErrorResponse.PowerShell.cs | 50 +- .../ErrorResponse.TypeConverter.cs | 31 +- .../Models/{Api20 => Api30}/ErrorResponse.cs | 46 +- .../{Api20 => Api30}/ErrorResponse.json.cs | 10 +- .../{Api20 => Api30}/Operation.PowerShell.cs | 62 +- .../Operation.TypeConverter.cs | 30 +- .../api/Models/{Api20 => Api30}/Operation.cs | 38 +- .../Models/{Api20 => Api30}/Operation.json.cs | 10 +- .../OperationDisplay.PowerShell.cs | 42 +- .../OperationDisplay.TypeConverter.cs | 31 +- .../{Api20 => Api30}/OperationDisplay.cs | 14 +- .../{Api20 => Api30}/OperationDisplay.json.cs | 8 +- .../OperationListResult.PowerShell.cs | 34 +- .../OperationListResult.TypeConverter.cs | 32 +- .../{Api20 => Api30}/OperationListResult.cs | 20 +- .../OperationListResult.json.cs | 10 +- .../Models/Api30/ProxyResource.PowerShell.cs | 218 + .../ProxyResource.TypeConverter.cs | 31 +- .../api/Models/Api30/ProxyResource.cs | 113 + .../{Api20 => Api30}/ProxyResource.json.cs | 10 +- .../api/Models/Api30/Resource.PowerShell.cs | 218 + .../Resource.TypeConverter.cs | 30 +- .../generated/api/Models/Api30/Resource.cs | 208 + .../Models/{Api20 => Api30}/Resource.json.cs | 13 +- .../{Api20 => Api30}/SystemData.PowerShell.cs | 50 +- .../SystemData.TypeConverter.cs | 30 +- .../api/Models/{Api20 => Api30}/SystemData.cs | 6 +- .../{Api20 => Api30}/SystemData.json.cs | 8 +- .../ServiceLinkerIdentity.PowerShell.cs | 46 +- .../ServiceLinkerIdentity.TypeConverter.cs | 26 +- .../api/Models/ServiceLinkerIdentity.cs | 85 + .../api/Models/ServiceLinkerIdentity.json.cs | 10 + .../generated/api/ServiceLinker.cs | 4917 +++++++++++++++-- .../Support/AccessKeyPermissions.Completer.cs | 51 + .../AccessKeyPermissions.TypeConverter.cs | 59 + .../api/Support/AccessKeyPermissions.cs | 103 + .../api/Support/ActionType.Completer.cs | 8 + .../api/Support/ActionType.TypeConverter.cs | 20 +- .../generated/api/Support/ActionType.cs | 4 + .../api/Support/AllowType.Completer.cs | 39 + .../api/Support/AllowType.TypeConverter.cs | 59 + .../generated/api/Support/AllowType.cs | 98 + .../api/Support/AuthType.Completer.cs | 8 + .../api/Support/AuthType.TypeConverter.cs | 20 +- .../generated/api/Support/AuthType.cs | 4 + .../api/Support/ClientType.Completer.cs | 4 + .../api/Support/ClientType.TypeConverter.cs | 20 +- .../generated/api/Support/ClientType.cs | 2 + .../Support/CreatedByType.TypeConverter.cs | 20 +- .../DeleteOrUpdateBehavior.Completer.cs | 41 + .../DeleteOrUpdateBehavior.TypeConverter.cs | 61 + .../api/Support/DeleteOrUpdateBehavior.cs | 100 + .../DryrunPrerequisiteResultType.Completer.cs | 39 + ...runPrerequisiteResultType.TypeConverter.cs | 59 + .../Support/DryrunPrerequisiteResultType.cs | 102 + .../DryrunPreviewOperationType.Completer.cs | 43 + ...ryrunPreviewOperationType.TypeConverter.cs | 59 + .../api/Support/DryrunPreviewOperationType.cs | 102 + .../api/Support/Origin.TypeConverter.cs | 20 +- .../api/Support/SecretType.TypeConverter.cs | 20 +- .../Support/TargetServiceType.Completer.cs | 4 + .../TargetServiceType.TypeConverter.cs | 20 +- .../api/Support/TargetServiceType.cs | 2 + .../Support/VNetSolutionType.TypeConverter.cs | 20 +- .../ValidationResultStatus.TypeConverter.cs | 20 +- ...etAzServiceLinkerConfigurationName_List.cs | 406 ++ .../GetAzServiceLinkerConfiguration_List.cs | 32 +- .../cmdlets/GetAzServiceLinkerDryrun_Get.cs | 385 ++ ...GetAzServiceLinkerDryrun_GetViaIdentity.cs | 379 ++ .../cmdlets/GetAzServiceLinkerDryrun_List.cs | 393 ++ .../GetAzServiceLinkerOperation_List.cs | 28 +- .../cmdlets/GetAzServiceLinker_Get.cs | 30 +- .../GetAzServiceLinker_GetViaIdentity.cs | 30 +- .../cmdlets/GetAzServiceLinker_List.cs | 35 +- ...ewAzServiceLinkerConfiguration_Generate.cs | 404 ++ ...iceLinkerConfiguration_GenerateExpanded.cs | 454 ++ ...LinkerConfiguration_GenerateViaIdentity.cs | 398 ++ ...nfiguration_GenerateViaIdentityExpanded.cs | 448 ++ ...NewAzServiceLinkerDryrun_CreateExpanded.cs | 457 ++ .../NewAzServiceLinker_CreateExpanded.cs | 202 +- .../RemoveAzServiceLinkerDryrun_Delete.cs | 427 ++ ...AzServiceLinkerDryrun_DeleteViaIdentity.cs | 421 ++ .../cmdlets/RemoveAzServiceLinker_Delete.cs | 18 +- ...RemoveAzServiceLinker_DeleteViaIdentity.cs | 18 +- .../cmdlets/TestAzServiceLinker_Validate.cs | 34 +- ...TestAzServiceLinker_ValidateViaIdentity.cs | 34 +- ...ateAzServiceLinkerDryrun_UpdateExpanded.cs | 457 ++ ...eLinkerDryrun_UpdateViaIdentityExpanded.cs | 449 ++ .../UpdateAzServiceLinker_UpdateExpanded.cs | 204 +- ...ServiceLinker_UpdateViaIdentityExpanded.cs | 204 +- .../runtime/AsyncOperationResponse.cs | 21 +- .../runtime/BuildTime/Cmdlets/ExportPsd1.cs | 4 +- .../BuildTime/Models/PsProxyOutputs.cs | 4 +- .../generated/runtime/BuildTime/PsHelpers.cs | 3 +- .../Customizations/IJsonSerializable.cs | 2 +- .../generated/runtime/EventDataExtensions.cs | 2 +- .../generated/runtime/ISendAsync.cs | 10 +- .../generated/runtime/MessageAttribute.cs | 2 +- .../generated/runtime/PipelineMocking.cs | 2 +- src/ServiceLinker/help/Az.ServiceLinker.md | 5 +- ...rviceLinkerConfigurationForContainerApp.md | 2 +- ...erviceLinkerConfigurationForSpringCloud.md | 2 +- ...t-AzServiceLinkerConfigurationForWebApp.md | 2 +- .../Get-AzServiceLinkerConfigurationName.md | 101 + .../Get-AzServiceLinkerForContainerApp.md | 17 +- .../help/Get-AzServiceLinkerForSpringCloud.md | 17 +- .../help/Get-AzServiceLinkerForWebApp.md | 17 +- .../New-AzServiceLinkerAzureResourceObject.md | 2 +- ...iceLinkerConfluentBootstrapServerObject.md | 2 +- ...viceLinkerConfluentSchemaRegistryObject.md | 2 +- .../New-AzServiceLinkerForContainerApp.md | 153 +- .../help/New-AzServiceLinkerForSpringCloud.md | 147 +- .../help/New-AzServiceLinkerForWebApp.md | 147 +- ...New-AzServiceLinkerSecretAuthInfoObject.md | 2 +- ...kerServicePrincipalSecretAuthInfoObject.md | 2 +- ...kerSystemAssignedIdentityAuthInfoObject.md | 2 +- ...inkerUserAssignedIdentityAuthInfoObject.md | 2 +- .../Remove-AzServiceLinkerForContainerApp.md | 7 +- .../Remove-AzServiceLinkerForSpringcloud.md | 13 +- .../help/Remove-AzServiceLinkerForWebApp.md | 7 +- .../Test-AzServiceLinkerForContainerApp.md | 9 +- .../Test-AzServiceLinkerForSpringCloud.md | 9 +- .../help/Test-AzServiceLinkerForWebApp.md | 9 +- .../Update-AzServiceLinkerForContainerApp.md | 17 +- .../Update-AzServiceLinkerForSpringCloud.md | 17 +- .../help/Update-AzServiceLinkerForWebApp.md | 17 +- src/ServiceLinker/how-to.md | 2 +- .../internal/Get-AzServiceLinker.ps1 | 9 +- .../Get-AzServiceLinkerConfiguration.ps1 | 8 +- .../internal/Get-AzServiceLinkerDryrun.ps1 | 162 + .../internal/Get-AzServiceLinkerOperation.ps1 | 4 +- .../internal/New-AzServiceLinker.ps1 | 78 +- .../New-AzServiceLinkerConfiguration.ps1 | 213 + .../internal/New-AzServiceLinkerDryrun.ps1 | 148 + .../internal/ProxyCmdletDefinitions.ps1 | 1220 +++- src/ServiceLinker/internal/README.md | 2 +- .../internal/Remove-AzServiceLinker.ps1 | 9 +- .../internal/Remove-AzServiceLinkerDryrun.ps1 | 166 + .../internal/Test-AzServiceLinker.ps1 | 13 +- .../internal/Update-AzServiceLinker.ps1 | 83 +- .../internal/Update-AzServiceLinkerDryrun.ps1 | 172 + ...onfigurationForContainerApp.Recording.json | 21 +- ...ConfigurationForSpringCloud.Recording.json | 17 +- ...inkerConfigurationForWebApp.Recording.json | 21 +- ...viceLinkerConfigurationName.Recording.json | 42 + ...AzServiceLinkerConfigurationName.Tests.ps1 | 22 + ...erviceLinkerForContainerApp.Recording.json | 73 +- ...ServiceLinkerForSpringCloud.Recording.json | 73 +- ...et-AzServiceLinkerForWebApp.Recording.json | 73 +- ...erviceLinkerForContainerApp.Recording.json | 90 +- ...ServiceLinkerForSpringCloud.Recording.json | 164 - ...ew-AzServiceLinkerForWebApp.Recording.json | 983 +--- ...ServiceLinkerForSpringCloud.Recording.json | 130 +- ...ve-AzServiceLinkerForWebApp.Recording.json | 44 +- ...erviceLinkerForContainerApp.Recording.json | 168 +- ...ServiceLinkerForSpringCloud.Recording.json | 168 +- ...st-AzServiceLinkerForWebApp.Recording.json | 168 +- ...erviceLinkerForContainerApp.Recording.json | 120 +- ...ServiceLinkerForSpringCloud.Recording.json | 114 +- ...te-AzServiceLinkerForWebApp.Recording.json | 120 +- src/ServiceLinker/test/env.json | 29 +- src/ServiceLinker/test/utils.ps1 | 1 + 456 files changed, 36259 insertions(+), 6718 deletions(-) create mode 100644 src/ServiceLinker/examples/Get-AzServiceLinkerConfigurationName.md create mode 100644 src/ServiceLinker/exports/Get-AzServiceLinkerConfigurationName.ps1 delete mode 100644 src/ServiceLinker/generated/api/Models/Api20/ProxyResource.cs delete mode 100644 src/ServiceLinker/generated/api/Models/Api20/Resource.cs delete mode 100644 src/ServiceLinker/generated/api/Models/Api20220501/LinkerPatch.PowerShell.cs delete mode 100644 src/ServiceLinker/generated/api/Models/Api20220501/LinkerPatch.cs delete mode 100644 src/ServiceLinker/generated/api/Models/Api20220501/LinkerProperties.PowerShell.cs delete mode 100644 src/ServiceLinker/generated/api/Models/Api20220501/LinkerProperties.cs delete mode 100644 src/ServiceLinker/generated/api/Models/Api20220501/LinkerResource.PowerShell.cs delete mode 100644 src/ServiceLinker/generated/api/Models/Api20220501/LinkerResource.cs delete mode 100644 src/ServiceLinker/generated/api/Models/Api20220501/SystemAssignedIdentityAuthInfo.cs delete mode 100644 src/ServiceLinker/generated/api/Models/Api20220501/UserAssignedIdentityAuthInfo.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/AccessKeyInfoBase.PowerShell.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/AccessKeyInfoBase.TypeConverter.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/AccessKeyInfoBase.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/AccessKeyInfoBase.json.cs rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/AuthInfoBase.PowerShell.cs (79%) rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/AuthInfoBase.TypeConverter.cs (82%) rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/AuthInfoBase.cs (95%) rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/AuthInfoBase.json.cs (93%) rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/AzureKeyVaultProperties.PowerShell.cs (74%) rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/AzureKeyVaultProperties.TypeConverter.cs (81%) rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/AzureKeyVaultProperties.cs (79%) rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/AzureKeyVaultProperties.json.cs (95%) rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/AzureResource.PowerShell.cs (69%) rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/AzureResource.TypeConverter.cs (82%) rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/AzureResource.cs (78%) rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/AzureResource.json.cs (94%) rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/AzureResourcePropertiesBase.PowerShell.cs (80%) rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/AzureResourcePropertiesBase.TypeConverter.cs (81%) rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/AzureResourcePropertiesBase.cs (89%) rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/AzureResourcePropertiesBase.json.cs (93%) rename src/ServiceLinker/generated/api/Models/{Api20220501/UserAssignedIdentityAuthInfo.PowerShell.cs => Api20221101Preview/BasicErrorDryrunPrerequisiteResult.PowerShell.cs} (57%) create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/BasicErrorDryrunPrerequisiteResult.TypeConverter.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/BasicErrorDryrunPrerequisiteResult.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/BasicErrorDryrunPrerequisiteResult.json.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationInfo.PowerShell.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationInfo.TypeConverter.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationInfo.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationInfo.json.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationInfoAdditionalConfigurations.PowerShell.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationInfoAdditionalConfigurations.TypeConverter.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationInfoAdditionalConfigurations.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationInfoAdditionalConfigurations.dictionary.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationInfoAdditionalConfigurations.json.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationInfoCustomizedKeys.PowerShell.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationInfoCustomizedKeys.TypeConverter.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationInfoCustomizedKeys.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationInfoCustomizedKeys.dictionary.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationInfoCustomizedKeys.json.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationName.PowerShell.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationName.TypeConverter.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationName.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationName.json.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationNameItem.PowerShell.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationNameItem.TypeConverter.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationNameItem.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationNameItem.json.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationNameResult.PowerShell.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationNameResult.TypeConverter.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationNameResult.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationNameResult.json.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationNames.PowerShell.cs rename src/ServiceLinker/generated/api/Models/{Api20220501/SourceConfigurationResult.TypeConverter.cs => Api20221101Preview/ConfigurationNames.TypeConverter.cs} (70%) create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationNames.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationNames.json.cs rename src/ServiceLinker/generated/api/Models/{Api20220501/SourceConfigurationResult.PowerShell.cs => Api20221101Preview/ConfigurationResult.PowerShell.cs} (66%) create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationResult.TypeConverter.cs rename src/ServiceLinker/generated/api/Models/{Api20220501/SourceConfigurationResult.cs => Api20221101Preview/ConfigurationResult.cs} (72%) rename src/ServiceLinker/generated/api/Models/{Api20220501/SourceConfigurationResult.json.cs => Api20221101Preview/ConfigurationResult.json.cs} (83%) rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/ConfluentBootstrapServer.PowerShell.cs (74%) rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/ConfluentBootstrapServer.TypeConverter.cs (81%) rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/ConfluentBootstrapServer.cs (83%) rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/ConfluentBootstrapServer.json.cs (95%) rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/ConfluentSchemaRegistry.PowerShell.cs (74%) rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/ConfluentSchemaRegistry.TypeConverter.cs (81%) rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/ConfluentSchemaRegistry.cs (83%) rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/ConfluentSchemaRegistry.json.cs (95%) create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/CreateOrUpdateDryrunParameters.PowerShell.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/CreateOrUpdateDryrunParameters.TypeConverter.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/CreateOrUpdateDryrunParameters.cs rename src/ServiceLinker/generated/api/Models/{Api20220501/SystemAssignedIdentityAuthInfo.json.cs => Api20221101Preview/CreateOrUpdateDryrunParameters.json.cs} (81%) rename src/ServiceLinker/generated/api/Models/{Api20220501/SystemAssignedIdentityAuthInfo.PowerShell.cs => Api20221101Preview/DatabaseAadAuthInfo.PowerShell.cs} (66%) create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/DatabaseAadAuthInfo.TypeConverter.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/DatabaseAadAuthInfo.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/DatabaseAadAuthInfo.json.cs rename src/ServiceLinker/generated/api/Models/{Api20220501/LinkerList.PowerShell.cs => Api20221101Preview/DryrunList.PowerShell.cs} (65%) rename src/ServiceLinker/generated/api/Models/{Api20220501/LinkerList.TypeConverter.cs => Api20221101Preview/DryrunList.TypeConverter.cs} (74%) create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunList.cs rename src/ServiceLinker/generated/api/Models/{Api20220501/LinkerList.json.cs => Api20221101Preview/DryrunList.json.cs} (88%) create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunOperationPreview.PowerShell.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunOperationPreview.TypeConverter.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunOperationPreview.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunOperationPreview.json.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunParameters.PowerShell.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunParameters.TypeConverter.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunParameters.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunParameters.json.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunPatch.PowerShell.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunPatch.TypeConverter.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunPatch.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunPatch.json.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunPrerequisiteResult.PowerShell.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunPrerequisiteResult.TypeConverter.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunPrerequisiteResult.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunPrerequisiteResult.json.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunProperties.PowerShell.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunProperties.TypeConverter.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunProperties.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunProperties.json.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunResource.PowerShell.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunResource.TypeConverter.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunResource.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunResource.json.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/FirewallRules.PowerShell.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/FirewallRules.TypeConverter.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/FirewallRules.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/FirewallRules.json.cs rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/KeyVaultSecretReferenceSecretInfo.PowerShell.cs (71%) rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/KeyVaultSecretReferenceSecretInfo.TypeConverter.cs (81%) rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/KeyVaultSecretReferenceSecretInfo.cs (87%) rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/KeyVaultSecretReferenceSecretInfo.json.cs (95%) rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/KeyVaultSecretUriSecretInfo.PowerShell.cs (75%) rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/KeyVaultSecretUriSecretInfo.TypeConverter.cs (81%) rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/KeyVaultSecretUriSecretInfo.cs (85%) rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/KeyVaultSecretUriSecretInfo.json.cs (95%) create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/LinkerPatch.PowerShell.cs rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/LinkerPatch.TypeConverter.cs (82%) create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/LinkerPatch.cs rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/LinkerPatch.json.cs (94%) create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/LinkerProperties.PowerShell.cs rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/LinkerProperties.TypeConverter.cs (82%) create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/LinkerProperties.cs rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/LinkerProperties.json.cs (83%) create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/LinkerResource.PowerShell.cs rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/LinkerResource.TypeConverter.cs (82%) create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/LinkerResource.cs rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/LinkerResource.json.cs (87%) create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/PermissionsMissingDryrunPrerequisiteResult.PowerShell.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/PermissionsMissingDryrunPrerequisiteResult.TypeConverter.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/PermissionsMissingDryrunPrerequisiteResult.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/PermissionsMissingDryrunPrerequisiteResult.json.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/PublicNetworkSolution.PowerShell.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/PublicNetworkSolution.TypeConverter.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/PublicNetworkSolution.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/PublicNetworkSolution.json.cs rename src/ServiceLinker/generated/api/Models/{Api20/ProxyResource.PowerShell.cs => Api20221101Preview/ResourceList.PowerShell.cs} (63%) create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/ResourceList.TypeConverter.cs rename src/ServiceLinker/generated/api/Models/{Api20220501/LinkerList.cs => Api20221101Preview/ResourceList.cs} (69%) create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/ResourceList.json.cs rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/SecretAuthInfo.PowerShell.cs (69%) rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/SecretAuthInfo.TypeConverter.cs (82%) rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/SecretAuthInfo.cs (75%) rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/SecretAuthInfo.json.cs (94%) rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/SecretInfoBase.PowerShell.cs (78%) rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/SecretInfoBase.TypeConverter.cs (82%) rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/SecretInfoBase.cs (95%) rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/SecretInfoBase.json.cs (96%) rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/SecretStore.PowerShell.cs (73%) rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/SecretStore.TypeConverter.cs (82%) rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/SecretStore.cs (62%) rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/SecretStore.json.cs (89%) rename src/ServiceLinker/generated/api/Models/{Api20/Resource.PowerShell.cs => Api20221101Preview/SelfHostedServer.PowerShell.cs} (64%) create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/SelfHostedServer.TypeConverter.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/SelfHostedServer.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/SelfHostedServer.json.cs rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/ServicePrincipalCertificateAuthInfo.PowerShell.cs (56%) rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/ServicePrincipalCertificateAuthInfo.TypeConverter.cs (81%) rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/ServicePrincipalCertificateAuthInfo.cs (62%) rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/ServicePrincipalCertificateAuthInfo.json.cs (79%) create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/ServicePrincipalSecretAuthInfo.PowerShell.cs rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/ServicePrincipalSecretAuthInfo.TypeConverter.cs (81%) rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/ServicePrincipalSecretAuthInfo.cs (53%) rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/ServicePrincipalSecretAuthInfo.json.cs (78%) rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/SourceConfiguration.PowerShell.cs (76%) rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/SourceConfiguration.TypeConverter.cs (81%) rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/SourceConfiguration.cs (96%) rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/SourceConfiguration.json.cs (96%) rename src/ServiceLinker/generated/api/Models/{Api20220501/ServicePrincipalSecretAuthInfo.PowerShell.cs => Api20221101Preview/SystemAssignedIdentityAuthInfo.PowerShell.cs} (55%) rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/SystemAssignedIdentityAuthInfo.TypeConverter.cs (81%) create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/SystemAssignedIdentityAuthInfo.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/SystemAssignedIdentityAuthInfo.json.cs rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/TargetServiceBase.PowerShell.cs (78%) rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/TargetServiceBase.TypeConverter.cs (81%) rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/TargetServiceBase.cs (95%) rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/TargetServiceBase.json.cs (94%) create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/UserAccountAuthInfo.PowerShell.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/UserAccountAuthInfo.TypeConverter.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/UserAccountAuthInfo.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/UserAccountAuthInfo.json.cs create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/UserAssignedIdentityAuthInfo.PowerShell.cs rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/UserAssignedIdentityAuthInfo.TypeConverter.cs (81%) create mode 100644 src/ServiceLinker/generated/api/Models/Api20221101Preview/UserAssignedIdentityAuthInfo.cs rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/UserAssignedIdentityAuthInfo.json.cs (77%) rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/VNetSolution.PowerShell.cs (69%) rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/VNetSolution.TypeConverter.cs (82%) rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/VNetSolution.cs (56%) rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/VNetSolution.json.cs (89%) rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/ValidateOperationResult.PowerShell.cs (50%) rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/ValidateOperationResult.TypeConverter.cs (81%) rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/ValidateOperationResult.cs (71%) rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/ValidateOperationResult.json.cs (94%) rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/ValidateResult.PowerShell.cs (54%) rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/ValidateResult.TypeConverter.cs (82%) rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/ValidateResult.cs (90%) rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/ValidateResult.json.cs (94%) rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/ValidationResultItem.PowerShell.cs (64%) rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/ValidationResultItem.TypeConverter.cs (81%) rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/ValidationResultItem.cs (95%) rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/ValidationResultItem.json.cs (96%) rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/ValueSecretInfo.PowerShell.cs (75%) rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/ValueSecretInfo.TypeConverter.cs (82%) rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/ValueSecretInfo.cs (84%) rename src/ServiceLinker/generated/api/Models/{Api20220501 => Api20221101Preview}/ValueSecretInfo.json.cs (95%) rename src/ServiceLinker/generated/api/Models/{Api20 => Api30}/ErrorAdditionalInfo.PowerShell.cs (86%) rename src/ServiceLinker/generated/api/Models/{Api20 => Api30}/ErrorAdditionalInfo.TypeConverter.cs (82%) rename src/ServiceLinker/generated/api/Models/{Api20 => Api30}/ErrorAdditionalInfo.cs (94%) rename src/ServiceLinker/generated/api/Models/{Api20 => Api30}/ErrorAdditionalInfo.json.cs (97%) rename src/ServiceLinker/generated/api/Models/{Api20 => Api30}/ErrorDetail.PowerShell.cs (77%) rename src/ServiceLinker/generated/api/Models/{Api20 => Api30}/ErrorDetail.TypeConverter.cs (82%) rename src/ServiceLinker/generated/api/Models/{Api20 => Api30}/ErrorDetail.cs (85%) rename src/ServiceLinker/generated/api/Models/{Api20 => Api30}/ErrorDetail.json.cs (94%) rename src/ServiceLinker/generated/api/Models/{Api20 => Api30}/ErrorResponse.PowerShell.cs (76%) rename src/ServiceLinker/generated/api/Models/{Api20 => Api30}/ErrorResponse.TypeConverter.cs (82%) rename src/ServiceLinker/generated/api/Models/{Api20 => Api30}/ErrorResponse.cs (75%) rename src/ServiceLinker/generated/api/Models/{Api20 => Api30}/ErrorResponse.json.cs (96%) rename src/ServiceLinker/generated/api/Models/{Api20 => Api30}/Operation.PowerShell.cs (78%) rename src/ServiceLinker/generated/api/Models/{Api20 => Api30}/Operation.TypeConverter.cs (82%) rename src/ServiceLinker/generated/api/Models/{Api20 => Api30}/Operation.cs (89%) rename src/ServiceLinker/generated/api/Models/{Api20 => Api30}/Operation.json.cs (97%) rename src/ServiceLinker/generated/api/Models/{Api20 => Api30}/OperationDisplay.PowerShell.cs (83%) rename src/ServiceLinker/generated/api/Models/{Api20 => Api30}/OperationDisplay.TypeConverter.cs (82%) rename src/ServiceLinker/generated/api/Models/{Api20 => Api30}/OperationDisplay.cs (95%) rename src/ServiceLinker/generated/api/Models/{Api20 => Api30}/OperationDisplay.json.cs (98%) rename src/ServiceLinker/generated/api/Models/{Api20 => Api30}/OperationListResult.PowerShell.cs (83%) rename src/ServiceLinker/generated/api/Models/{Api20 => Api30}/OperationListResult.TypeConverter.cs (82%) rename src/ServiceLinker/generated/api/Models/{Api20 => Api30}/OperationListResult.cs (88%) rename src/ServiceLinker/generated/api/Models/{Api20 => Api30}/OperationListResult.json.cs (95%) create mode 100644 src/ServiceLinker/generated/api/Models/Api30/ProxyResource.PowerShell.cs rename src/ServiceLinker/generated/api/Models/{Api20 => Api30}/ProxyResource.TypeConverter.cs (82%) create mode 100644 src/ServiceLinker/generated/api/Models/Api30/ProxyResource.cs rename src/ServiceLinker/generated/api/Models/{Api20 => Api30}/ProxyResource.json.cs (96%) create mode 100644 src/ServiceLinker/generated/api/Models/Api30/Resource.PowerShell.cs rename src/ServiceLinker/generated/api/Models/{Api20 => Api30}/Resource.TypeConverter.cs (82%) create mode 100644 src/ServiceLinker/generated/api/Models/Api30/Resource.cs rename src/ServiceLinker/generated/api/Models/{Api20 => Api30}/Resource.json.cs (90%) rename src/ServiceLinker/generated/api/Models/{Api20 => Api30}/SystemData.PowerShell.cs (82%) rename src/ServiceLinker/generated/api/Models/{Api20 => Api30}/SystemData.TypeConverter.cs (82%) rename src/ServiceLinker/generated/api/Models/{Api20 => Api30}/SystemData.cs (99%) rename src/ServiceLinker/generated/api/Models/{Api20 => Api30}/SystemData.json.cs (98%) create mode 100644 src/ServiceLinker/generated/api/Support/AccessKeyPermissions.Completer.cs create mode 100644 src/ServiceLinker/generated/api/Support/AccessKeyPermissions.TypeConverter.cs create mode 100644 src/ServiceLinker/generated/api/Support/AccessKeyPermissions.cs create mode 100644 src/ServiceLinker/generated/api/Support/AllowType.Completer.cs create mode 100644 src/ServiceLinker/generated/api/Support/AllowType.TypeConverter.cs create mode 100644 src/ServiceLinker/generated/api/Support/AllowType.cs create mode 100644 src/ServiceLinker/generated/api/Support/DeleteOrUpdateBehavior.Completer.cs create mode 100644 src/ServiceLinker/generated/api/Support/DeleteOrUpdateBehavior.TypeConverter.cs create mode 100644 src/ServiceLinker/generated/api/Support/DeleteOrUpdateBehavior.cs create mode 100644 src/ServiceLinker/generated/api/Support/DryrunPrerequisiteResultType.Completer.cs create mode 100644 src/ServiceLinker/generated/api/Support/DryrunPrerequisiteResultType.TypeConverter.cs create mode 100644 src/ServiceLinker/generated/api/Support/DryrunPrerequisiteResultType.cs create mode 100644 src/ServiceLinker/generated/api/Support/DryrunPreviewOperationType.Completer.cs create mode 100644 src/ServiceLinker/generated/api/Support/DryrunPreviewOperationType.TypeConverter.cs create mode 100644 src/ServiceLinker/generated/api/Support/DryrunPreviewOperationType.cs create mode 100644 src/ServiceLinker/generated/cmdlets/GetAzServiceLinkerConfigurationName_List.cs create mode 100644 src/ServiceLinker/generated/cmdlets/GetAzServiceLinkerDryrun_Get.cs create mode 100644 src/ServiceLinker/generated/cmdlets/GetAzServiceLinkerDryrun_GetViaIdentity.cs create mode 100644 src/ServiceLinker/generated/cmdlets/GetAzServiceLinkerDryrun_List.cs create mode 100644 src/ServiceLinker/generated/cmdlets/NewAzServiceLinkerConfiguration_Generate.cs create mode 100644 src/ServiceLinker/generated/cmdlets/NewAzServiceLinkerConfiguration_GenerateExpanded.cs create mode 100644 src/ServiceLinker/generated/cmdlets/NewAzServiceLinkerConfiguration_GenerateViaIdentity.cs create mode 100644 src/ServiceLinker/generated/cmdlets/NewAzServiceLinkerConfiguration_GenerateViaIdentityExpanded.cs create mode 100644 src/ServiceLinker/generated/cmdlets/NewAzServiceLinkerDryrun_CreateExpanded.cs create mode 100644 src/ServiceLinker/generated/cmdlets/RemoveAzServiceLinkerDryrun_Delete.cs create mode 100644 src/ServiceLinker/generated/cmdlets/RemoveAzServiceLinkerDryrun_DeleteViaIdentity.cs create mode 100644 src/ServiceLinker/generated/cmdlets/UpdateAzServiceLinkerDryrun_UpdateExpanded.cs create mode 100644 src/ServiceLinker/generated/cmdlets/UpdateAzServiceLinkerDryrun_UpdateViaIdentityExpanded.cs create mode 100644 src/ServiceLinker/help/Get-AzServiceLinkerConfigurationName.md create mode 100644 src/ServiceLinker/internal/Get-AzServiceLinkerDryrun.ps1 create mode 100644 src/ServiceLinker/internal/New-AzServiceLinkerConfiguration.ps1 create mode 100644 src/ServiceLinker/internal/New-AzServiceLinkerDryrun.ps1 create mode 100644 src/ServiceLinker/internal/Remove-AzServiceLinkerDryrun.ps1 create mode 100644 src/ServiceLinker/internal/Update-AzServiceLinkerDryrun.ps1 create mode 100644 src/ServiceLinker/test/Get-AzServiceLinkerConfigurationName.Recording.json create mode 100644 src/ServiceLinker/test/Get-AzServiceLinkerConfigurationName.Tests.ps1 delete mode 100644 src/ServiceLinker/test/New-AzServiceLinkerForSpringCloud.Recording.json diff --git a/src/ServiceLinker/Az.ServiceLinker.format.ps1xml b/src/ServiceLinker/Az.ServiceLinker.format.ps1xml index 4c6d9450dd26..8c1c158049e7 100644 --- a/src/ServiceLinker/Az.ServiceLinker.format.ps1xml +++ b/src/ServiceLinker/Az.ServiceLinker.format.ps1xml @@ -8,31 +8,61 @@ + + + + + + + + + + + + + + + + + ConnectorName + + + DryrunName + LinkerName + + Location + + + ResourceGroupName + ResourceUri + + SubscriptionId + - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ErrorDetail + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ErrorDetail - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ErrorDetail + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ErrorDetail @@ -64,9 +94,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.Operation + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.Operation - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.Operation + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.Operation @@ -104,9 +134,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.OperationDisplay + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.OperationDisplay - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.OperationDisplay + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.OperationDisplay @@ -144,9 +174,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.OperationListResult + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.OperationListResult - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.OperationListResult + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.OperationListResult @@ -166,15 +196,33 @@ - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ProxyResource + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ProxyResource - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ProxyResource + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ProxyResource + + + + + + + + + + + + + + + + + + @@ -182,15 +230,33 @@ Name + + SystemDataCreatedAt + + + SystemDataCreatedBy + + + SystemDataCreatedByType + + + SystemDataLastModifiedAt + + + SystemDataLastModifiedBy + + + SystemDataLastModifiedByType + - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.Resource + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.Resource - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.Resource + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.Resource @@ -210,9 +276,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.SystemData + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.SystemData - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.SystemData + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.SystemData @@ -262,15 +328,18 @@ - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.AuthInfoBase + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.AccessKeyInfoBase - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.AuthInfoBase + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.AccessKeyInfoBase + + + @@ -278,27 +347,30 @@ AuthType + + Permission + - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.AzureKeyVaultProperties + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.AuthInfoBase - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.AzureKeyVaultProperties + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.AuthInfoBase - + - ConnectAsKubernetesCsiDriver + AuthType @@ -306,21 +378,21 @@ - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ConfluentBootstrapServer + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.AzureKeyVaultProperties - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ConfluentBootstrapServer + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.AzureKeyVaultProperties - + - Endpoint + ConnectAsKubernetesCsiDriver @@ -328,21 +400,27 @@ - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ConfluentSchemaRegistry + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.BasicErrorDryrunPrerequisiteResult - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ConfluentSchemaRegistry + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.BasicErrorDryrunPrerequisiteResult - + + + + - Endpoint + Code + + + Message @@ -350,33 +428,27 @@ - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.KeyVaultSecretReferenceSecretInfo + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationInfo - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.KeyVaultSecretReferenceSecretInfo + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationInfo - - - - + - + - SecretType - - - Name + Action - Version + DeleteOrUpdateBehavior @@ -384,27 +456,21 @@ - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.KeyVaultSecretUriSecretInfo + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationInfoAdditionalConfigurations - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.KeyVaultSecretUriSecretInfo + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationInfoAdditionalConfigurations - - - - + - SecretType - - - Value + Item @@ -412,21 +478,21 @@ - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.LinkerList + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationInfoCustomizedKeys - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.LinkerList + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationInfoCustomizedKeys - + - NextLink + Item @@ -434,33 +500,27 @@ - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.LinkerProperties + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationName - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.LinkerProperties + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationName - - - - + - + - ClientType - - - ProvisioningState + Description - Scope + Value @@ -468,21 +528,21 @@ - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.LinkerResource + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationNameResult - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.LinkerResource + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationNameResult - + - Name + NextLink @@ -490,9 +550,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.SecretAuthInfo + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationNames - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.SecretAuthInfo + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationNames @@ -500,7 +560,10 @@ - + + + + @@ -510,7 +573,10 @@ AuthType - Name + ClientType + + + TargetService @@ -518,21 +584,21 @@ - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.SecretInfoBase + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfluentBootstrapServer - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.SecretInfoBase + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfluentBootstrapServer - + - SecretType + Endpoint @@ -540,21 +606,21 @@ - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.SecretStore + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfluentSchemaRegistry - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.SecretStore + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfluentSchemaRegistry - + - KeyVaultId + Endpoint @@ -562,79 +628,105 @@ - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ServicePrincipalCertificateAuthInfo + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.CreateOrUpdateDryrunParameters - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ServicePrincipalCertificateAuthInfo + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.CreateOrUpdateDryrunParameters - + - + - + - + - - - - - - AuthType - - - Certificate - - - ClientId - - - PrincipalId - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ServicePrincipalSecretAuthInfo - - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ServicePrincipalSecretAuthInfo - - - - + - + - + - + + + + + + + + + + + + + + + + + + + + + + - AuthType + ActionName - ClientId + ClientType - PrincipalId + ConfigurationInfoAction - Secret + ConfigurationInfoDeleteOrUpdateBehavior + + + FirewallRuleAzureService + + + FirewallRuleCallerClientIP + + + FirewallRuleIPRange + + + ProvisioningState + + + PublicNetworkSolutionAction + + + PublicNetworkSolutionDeleteOrUpdateBehavior + + + Scope + + + SecretStoreKeyVaultId + + + SecretStoreKeyVaultSecretName + + + VNetSolutionDeleteOrUpdateBehavior + + + VNetSolutionType @@ -642,27 +734,21 @@ - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.SourceConfiguration + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DatabaseAadAuthInfo - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.SourceConfiguration + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DatabaseAadAuthInfo - - - - + - Name - - - Value + UserName @@ -670,21 +756,21 @@ - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.SystemAssignedIdentityAuthInfo + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DryrunList - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.SystemAssignedIdentityAuthInfo + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DryrunList - + - AuthType + NextLink @@ -692,33 +778,45 @@ - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.UserAssignedIdentityAuthInfo + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DryrunOperationPreview - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.UserAssignedIdentityAuthInfo + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DryrunOperationPreview - + - + - + + + + + + + - AuthType + Action - ClientId + Description - SubscriptionId + Name + + + OperationType + + + Scope @@ -726,27 +824,21 @@ - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ValidateOperationResult + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DryrunParameters - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ValidateOperationResult + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DryrunParameters - - - - + - ResourceId - - - Status + ActionName @@ -754,26 +846,782 @@ - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ValidateResult + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DryrunProperties - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ValidateResult + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DryrunProperties - - - - - - - - - - - - - + + + + + + + + ProvisioningState + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DryrunResource + + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DryrunResource + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Name + + + SystemDataCreatedAt + + + SystemDataCreatedBy + + + SystemDataCreatedByType + + + SystemDataLastModifiedAt + + + SystemDataLastModifiedBy + + + SystemDataLastModifiedByType + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.FirewallRules + + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.FirewallRules + + + + + + + + + + + + + + + + + + AzureService + + + CallerClientIP + + + IPRange + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.KeyVaultSecretReferenceSecretInfo + + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.KeyVaultSecretReferenceSecretInfo + + + + + + + + + + + + + + + + + + SecretType + + + Name + + + Version + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.KeyVaultSecretUriSecretInfo + + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.KeyVaultSecretUriSecretInfo + + + + + + + + + + + + + + + SecretType + + + Value + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.LinkerProperties + + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.LinkerProperties + + + + + + + + + + + + + + + + + + ClientType + + + ProvisioningState + + + Scope + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.LinkerResource + + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.LinkerResource + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Name + + + SystemDataCreatedAt + + + SystemDataCreatedBy + + + SystemDataCreatedByType + + + SystemDataLastModifiedAt + + + SystemDataLastModifiedBy + + + SystemDataLastModifiedByType + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.PermissionsMissingDryrunPrerequisiteResult + + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.PermissionsMissingDryrunPrerequisiteResult + + + + + + + + + + + + + + + + + + Permission + + + RecommendedRole + + + Scope + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.PublicNetworkSolution + + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.PublicNetworkSolution + + + + + + + + + + + + + + + Action + + + DeleteOrUpdateBehavior + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ResourceList + + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ResourceList + + + + + + + + + + + + NextLink + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.SecretAuthInfo + + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.SecretAuthInfo + + + + + + + + + + + + + + + AuthType + + + Name + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.SecretInfoBase + + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.SecretInfoBase + + + + + + + + + + + + SecretType + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.SecretStore + + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.SecretStore + + + + + + + + + + + + + + + KeyVaultId + + + KeyVaultSecretName + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.SelfHostedServer + + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.SelfHostedServer + + + + + + + + + + + + Endpoint + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ServicePrincipalCertificateAuthInfo + + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ServicePrincipalCertificateAuthInfo + + + + + + + + + + + + + + + + + + + + + + + + + + + AuthType + + + Certificate + + + ClientId + + + DeleteOrUpdateBehavior + + + PrincipalId + + + Role + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ServicePrincipalSecretAuthInfo + + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ServicePrincipalSecretAuthInfo + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + AuthType + + + UserName + + + ClientId + + + DeleteOrUpdateBehavior + + + PrincipalId + + + Role + + + Secret + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.SourceConfiguration + + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.SourceConfiguration + + + + + + + + + + + + + + + Name + + + Value + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.SystemAssignedIdentityAuthInfo + + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.SystemAssignedIdentityAuthInfo + + + + + + + + + + + + + + + + + + + + + AuthType + + + UserName + + + DeleteOrUpdateBehavior + + + Role + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.UserAccountAuthInfo + + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.UserAccountAuthInfo + + + + + + + + + + + + + + + + + + + + + + + + AuthType + + + UserName + + + DeleteOrUpdateBehavior + + + PrincipalId + + + Role + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.UserAssignedIdentityAuthInfo + + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.UserAssignedIdentityAuthInfo + + + + + + + + + + + + + + + + + + + + + + + + + + + AuthType + + + UserName + + + ClientId + + + DeleteOrUpdateBehavior + + + Role + + + SubscriptionId + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ValidateOperationResult + + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ValidateOperationResult + + + + + + + + + + + + + + + ResourceId + + + Status + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ValidateResult + + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ValidateResult + + + + + + + + + + + + + + + + + @@ -812,9 +1660,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ValidationResultItem + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ValidationResultItem - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ValidationResultItem + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ValidationResultItem @@ -858,9 +1706,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ValueSecretInfo + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ValueSecretInfo - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ValueSecretInfo + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ValueSecretInfo @@ -885,5 +1733,27 @@ + + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.VNetSolution + + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.VNetSolution + + + + + + + + + + + + DeleteOrUpdateBehavior + + + + + + \ No newline at end of file diff --git a/src/ServiceLinker/Az.ServiceLinker.psd1 b/src/ServiceLinker/Az.ServiceLinker.psd1 index fb161db73c09..df0a2c682a48 100644 --- a/src/ServiceLinker/Az.ServiceLinker.psd1 +++ b/src/ServiceLinker/Az.ServiceLinker.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 5/19/2022 +# Generated on: 2/17/2023 # @{ @@ -72,6 +72,7 @@ FormatsToProcess = './Az.ServiceLinker.format.ps1xml' FunctionsToExport = 'Get-AzServiceLinkerConfigurationForContainerApp', 'Get-AzServiceLinkerConfigurationForSpringCloud', 'Get-AzServiceLinkerConfigurationForWebApp', + 'Get-AzServiceLinkerConfigurationName', 'Get-AzServiceLinkerForContainerApp', 'Get-AzServiceLinkerForSpringCloud', 'Get-AzServiceLinkerForWebApp', 'New-AzServiceLinkerAzureResourceObject', @@ -84,7 +85,7 @@ FunctionsToExport = 'Get-AzServiceLinkerConfigurationForContainerApp', 'New-AzServiceLinkerSystemAssignedIdentityAuthInfoObject', 'New-AzServiceLinkerUserAssignedIdentityAuthInfoObject', 'Remove-AzServiceLinkerForContainerApp', - 'Remove-AzServiceLinkerForSpringcloud', + 'Remove-AzServiceLinkerForSpringCloud', 'Remove-AzServiceLinkerForWebApp', 'Test-AzServiceLinkerForContainerApp', 'Test-AzServiceLinkerForSpringCloud', @@ -129,7 +130,7 @@ PrivateData = @{ # IconUri = '' # ReleaseNotes of this module - ReleaseNotes = '* First preview release for module Az.ServiceLinker' + # ReleaseNotes = '' # Prerelease string of this module # Prerelease = '' diff --git a/src/ServiceLinker/Az.ServiceLinker.psm1 b/src/ServiceLinker/Az.ServiceLinker.psm1 index 61a4a524b4c9..f8133c3801b1 100644 --- a/src/ServiceLinker/Az.ServiceLinker.psm1 +++ b/src/ServiceLinker/Az.ServiceLinker.psm1 @@ -33,7 +33,7 @@ } if(-not $accountsModule) { - Write-Error "`nThis module requires $accountsName version 2.7.5 or greater. For installation instructions, please see: https://learn.microsoft.com/powershell/azure/install-az-ps" -ErrorAction Stop + Write-Error "`nThis module requires $accountsName version 2.7.5 or greater. For installation instructions, please see: https://docs.microsoft.com/powershell/azure/install-az-ps" -ErrorAction Stop } elseif (($accountsModule.Version -lt [System.Version]'2.7.5') -and (-not $localAccounts)) { Write-Error "`nThis module requires $accountsName version 2.7.5 or greater. An earlier version of Az.Accounts is imported in the current PowerShell session. If you are running test, please try to add the switch '-RegenerateSupportModule' when executing 'test-module.ps1'. Otherwise please open a new PowerShell session and import this module again.`nAdditionally, this error could indicate that multiple incompatible versions of Azure PowerShell modules are installed on your system. For troubleshooting information, please see: https://aka.ms/azps-version-error" -ErrorAction Stop } diff --git a/src/ServiceLinker/README.md b/src/ServiceLinker/README.md index 6252d388e810..dae874de4b55 100644 --- a/src/ServiceLinker/README.md +++ b/src/ServiceLinker/README.md @@ -30,18 +30,18 @@ For information on how to develop for `Az.ServiceLinker`, see [how-to.md](how-to > see https://aka.ms/autorest ``` yaml -branch: 3abdf3eaf45b42d78e242a2cca4a977e8dcf3103 +branch: e7bf3adfa2d5e5cdbb804eec35279501794f461c require: # readme.azure.noprofile.md is the common configuration file - $(this-folder)/../readme.azure.noprofile.md input-file: # You need to specify your swagger files here. - - $(repo)/specification/servicelinker/resource-manager/Microsoft.ServiceLinker/stable/2022-05-01/servicelinker.json + - $(repo)/specification/servicelinker/resource-manager/Microsoft.ServiceLinker/preview/2022-11-01-preview/servicelinker.json # If the swagger has not been put in the repo, you may uncomment the following line and refer to it locally # - $(this-folder)/../APISpecs/servicelinker/resource-manager/Microsoft.ServiceLinker/stable/2022-05-01/servicelinker.json # For new RP, the version is 0.1.0 -module-version: 0.1.0 +module-version: 0.1.1 # Normally, title is the service name title: ServiceLinker # subject-prefix: "ServiceLinker" @@ -61,6 +61,13 @@ directive: - where: verb: Set remove: true + - where: + subject: ConnectorDryrun|Connector|ConnectorConfiguration + remove: true + - where: + verb: New|Update + parameter-name: (.*)DeleteOrUpdateBehavior$ + hide: true - from: swagger-document where: - $.paths["/{resourceUri}/providers/Microsoft.ServiceLinker/linkers/{linkerName}"].put.parameters @@ -104,5 +111,4 @@ directive: set: default: script: '"none"' - ``` diff --git a/src/ServiceLinker/ServiceLinker.sln b/src/ServiceLinker/ServiceLinker.sln index e89d5f48a02f..faaaf2d47472 100644 --- a/src/ServiceLinker/ServiceLinker.sln +++ b/src/ServiceLinker/ServiceLinker.sln @@ -1,104 +1,58 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 16 -VisualStudioVersion = 16.0.30114.105 +# Visual Studio Version 17 +VisualStudioVersion = 17.0.31903.59 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{D07D54B4-486C-4449-BC4B-37D05DF23A72}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{B118959B-3419-435D-830A-3B59F43C7074}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{E35BE797-EFF1-4701-BBFD-D42AE3552272}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AssemblyLoading", "..\Accounts\AssemblyLoading\AssemblyLoading.csproj", "{30C368D7-E9DF-4DDB-92AB-5F57BAEFD9DB}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{CEF2650C-91AF-4EED-9141-7188B70BC582}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{EA46BD77-E603-45E1-ABDE-A8D216F9A6C6}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{B910AA7E-1720-4C71-8AF0-4D56B94E087D}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{A7BC163E-B756-44F0-A4B6-19835488AC80}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{69256F27-92A2-4AFA-A8D7-927DD1B35838}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{5E9CA0A4-4E3A-4B26-B475-3B5BE42B868E}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.ServiceLinker", "Az.ServiceLinker.csproj", "{16C48553-31E3-47C7-A477-DC2457672362}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{9E2AB3C0-1844-46E6-81E8-2EF6E245EEBA}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.ServiceLinker", "Az.ServiceLinker.csproj", "{D647B496-0E93-4A2D-B7E6-D66DA93F406B}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU - Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 Release|Any CPU = Release|Any CPU - Release|x64 = Release|x64 - Release|x86 = Release|x86 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {D07D54B4-486C-4449-BC4B-37D05DF23A72}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {D07D54B4-486C-4449-BC4B-37D05DF23A72}.Debug|Any CPU.Build.0 = Debug|Any CPU - {D07D54B4-486C-4449-BC4B-37D05DF23A72}.Debug|x64.ActiveCfg = Debug|Any CPU - {D07D54B4-486C-4449-BC4B-37D05DF23A72}.Debug|x64.Build.0 = Debug|Any CPU - {D07D54B4-486C-4449-BC4B-37D05DF23A72}.Debug|x86.ActiveCfg = Debug|Any CPU - {D07D54B4-486C-4449-BC4B-37D05DF23A72}.Debug|x86.Build.0 = Debug|Any CPU - {D07D54B4-486C-4449-BC4B-37D05DF23A72}.Release|Any CPU.ActiveCfg = Release|Any CPU - {D07D54B4-486C-4449-BC4B-37D05DF23A72}.Release|Any CPU.Build.0 = Release|Any CPU - {D07D54B4-486C-4449-BC4B-37D05DF23A72}.Release|x64.ActiveCfg = Release|Any CPU - {D07D54B4-486C-4449-BC4B-37D05DF23A72}.Release|x64.Build.0 = Release|Any CPU - {D07D54B4-486C-4449-BC4B-37D05DF23A72}.Release|x86.ActiveCfg = Release|Any CPU - {D07D54B4-486C-4449-BC4B-37D05DF23A72}.Release|x86.Build.0 = Release|Any CPU - {E35BE797-EFF1-4701-BBFD-D42AE3552272}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {E35BE797-EFF1-4701-BBFD-D42AE3552272}.Debug|Any CPU.Build.0 = Debug|Any CPU - {E35BE797-EFF1-4701-BBFD-D42AE3552272}.Debug|x64.ActiveCfg = Debug|Any CPU - {E35BE797-EFF1-4701-BBFD-D42AE3552272}.Debug|x64.Build.0 = Debug|Any CPU - {E35BE797-EFF1-4701-BBFD-D42AE3552272}.Debug|x86.ActiveCfg = Debug|Any CPU - {E35BE797-EFF1-4701-BBFD-D42AE3552272}.Debug|x86.Build.0 = Debug|Any CPU - {E35BE797-EFF1-4701-BBFD-D42AE3552272}.Release|Any CPU.ActiveCfg = Release|Any CPU - {E35BE797-EFF1-4701-BBFD-D42AE3552272}.Release|Any CPU.Build.0 = Release|Any CPU - {E35BE797-EFF1-4701-BBFD-D42AE3552272}.Release|x64.ActiveCfg = Release|Any CPU - {E35BE797-EFF1-4701-BBFD-D42AE3552272}.Release|x64.Build.0 = Release|Any CPU - {E35BE797-EFF1-4701-BBFD-D42AE3552272}.Release|x86.ActiveCfg = Release|Any CPU - {E35BE797-EFF1-4701-BBFD-D42AE3552272}.Release|x86.Build.0 = Release|Any CPU - {CEF2650C-91AF-4EED-9141-7188B70BC582}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {CEF2650C-91AF-4EED-9141-7188B70BC582}.Debug|Any CPU.Build.0 = Debug|Any CPU - {CEF2650C-91AF-4EED-9141-7188B70BC582}.Debug|x64.ActiveCfg = Debug|Any CPU - {CEF2650C-91AF-4EED-9141-7188B70BC582}.Debug|x64.Build.0 = Debug|Any CPU - {CEF2650C-91AF-4EED-9141-7188B70BC582}.Debug|x86.ActiveCfg = Debug|Any CPU - {CEF2650C-91AF-4EED-9141-7188B70BC582}.Debug|x86.Build.0 = Debug|Any CPU - {CEF2650C-91AF-4EED-9141-7188B70BC582}.Release|Any CPU.ActiveCfg = Release|Any CPU - {CEF2650C-91AF-4EED-9141-7188B70BC582}.Release|Any CPU.Build.0 = Release|Any CPU - {CEF2650C-91AF-4EED-9141-7188B70BC582}.Release|x64.ActiveCfg = Release|Any CPU - {CEF2650C-91AF-4EED-9141-7188B70BC582}.Release|x64.Build.0 = Release|Any CPU - {CEF2650C-91AF-4EED-9141-7188B70BC582}.Release|x86.ActiveCfg = Release|Any CPU - {CEF2650C-91AF-4EED-9141-7188B70BC582}.Release|x86.Build.0 = Release|Any CPU - {B910AA7E-1720-4C71-8AF0-4D56B94E087D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {B910AA7E-1720-4C71-8AF0-4D56B94E087D}.Debug|Any CPU.Build.0 = Debug|Any CPU - {B910AA7E-1720-4C71-8AF0-4D56B94E087D}.Debug|x64.ActiveCfg = Debug|Any CPU - {B910AA7E-1720-4C71-8AF0-4D56B94E087D}.Debug|x64.Build.0 = Debug|Any CPU - {B910AA7E-1720-4C71-8AF0-4D56B94E087D}.Debug|x86.ActiveCfg = Debug|Any CPU - {B910AA7E-1720-4C71-8AF0-4D56B94E087D}.Debug|x86.Build.0 = Debug|Any CPU - {B910AA7E-1720-4C71-8AF0-4D56B94E087D}.Release|Any CPU.ActiveCfg = Release|Any CPU - {B910AA7E-1720-4C71-8AF0-4D56B94E087D}.Release|Any CPU.Build.0 = Release|Any CPU - {B910AA7E-1720-4C71-8AF0-4D56B94E087D}.Release|x64.ActiveCfg = Release|Any CPU - {B910AA7E-1720-4C71-8AF0-4D56B94E087D}.Release|x64.Build.0 = Release|Any CPU - {B910AA7E-1720-4C71-8AF0-4D56B94E087D}.Release|x86.ActiveCfg = Release|Any CPU - {B910AA7E-1720-4C71-8AF0-4D56B94E087D}.Release|x86.Build.0 = Release|Any CPU - {69256F27-92A2-4AFA-A8D7-927DD1B35838}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {69256F27-92A2-4AFA-A8D7-927DD1B35838}.Debug|Any CPU.Build.0 = Debug|Any CPU - {69256F27-92A2-4AFA-A8D7-927DD1B35838}.Debug|x64.ActiveCfg = Debug|Any CPU - {69256F27-92A2-4AFA-A8D7-927DD1B35838}.Debug|x64.Build.0 = Debug|Any CPU - {69256F27-92A2-4AFA-A8D7-927DD1B35838}.Debug|x86.ActiveCfg = Debug|Any CPU - {69256F27-92A2-4AFA-A8D7-927DD1B35838}.Debug|x86.Build.0 = Debug|Any CPU - {69256F27-92A2-4AFA-A8D7-927DD1B35838}.Release|Any CPU.ActiveCfg = Release|Any CPU - {69256F27-92A2-4AFA-A8D7-927DD1B35838}.Release|Any CPU.Build.0 = Release|Any CPU - {69256F27-92A2-4AFA-A8D7-927DD1B35838}.Release|x64.ActiveCfg = Release|Any CPU - {69256F27-92A2-4AFA-A8D7-927DD1B35838}.Release|x64.Build.0 = Release|Any CPU - {69256F27-92A2-4AFA-A8D7-927DD1B35838}.Release|x86.ActiveCfg = Release|Any CPU - {69256F27-92A2-4AFA-A8D7-927DD1B35838}.Release|x86.Build.0 = Release|Any CPU - {16C48553-31E3-47C7-A477-DC2457672362}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {16C48553-31E3-47C7-A477-DC2457672362}.Debug|Any CPU.Build.0 = Debug|Any CPU - {16C48553-31E3-47C7-A477-DC2457672362}.Debug|x64.ActiveCfg = Debug|Any CPU - {16C48553-31E3-47C7-A477-DC2457672362}.Debug|x64.Build.0 = Debug|Any CPU - {16C48553-31E3-47C7-A477-DC2457672362}.Debug|x86.ActiveCfg = Debug|Any CPU - {16C48553-31E3-47C7-A477-DC2457672362}.Debug|x86.Build.0 = Debug|Any CPU - {16C48553-31E3-47C7-A477-DC2457672362}.Release|Any CPU.ActiveCfg = Release|Any CPU - {16C48553-31E3-47C7-A477-DC2457672362}.Release|Any CPU.Build.0 = Release|Any CPU - {16C48553-31E3-47C7-A477-DC2457672362}.Release|x64.ActiveCfg = Release|Any CPU - {16C48553-31E3-47C7-A477-DC2457672362}.Release|x64.Build.0 = Release|Any CPU - {16C48553-31E3-47C7-A477-DC2457672362}.Release|x86.ActiveCfg = Release|Any CPU - {16C48553-31E3-47C7-A477-DC2457672362}.Release|x86.Build.0 = Release|Any CPU + {B118959B-3419-435D-830A-3B59F43C7074}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B118959B-3419-435D-830A-3B59F43C7074}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B118959B-3419-435D-830A-3B59F43C7074}.Release|Any CPU.ActiveCfg = Release|Any CPU + {B118959B-3419-435D-830A-3B59F43C7074}.Release|Any CPU.Build.0 = Release|Any CPU + {30C368D7-E9DF-4DDB-92AB-5F57BAEFD9DB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {30C368D7-E9DF-4DDB-92AB-5F57BAEFD9DB}.Debug|Any CPU.Build.0 = Debug|Any CPU + {30C368D7-E9DF-4DDB-92AB-5F57BAEFD9DB}.Release|Any CPU.ActiveCfg = Release|Any CPU + {30C368D7-E9DF-4DDB-92AB-5F57BAEFD9DB}.Release|Any CPU.Build.0 = Release|Any CPU + {EA46BD77-E603-45E1-ABDE-A8D216F9A6C6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {EA46BD77-E603-45E1-ABDE-A8D216F9A6C6}.Debug|Any CPU.Build.0 = Debug|Any CPU + {EA46BD77-E603-45E1-ABDE-A8D216F9A6C6}.Release|Any CPU.ActiveCfg = Release|Any CPU + {EA46BD77-E603-45E1-ABDE-A8D216F9A6C6}.Release|Any CPU.Build.0 = Release|Any CPU + {A7BC163E-B756-44F0-A4B6-19835488AC80}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {A7BC163E-B756-44F0-A4B6-19835488AC80}.Debug|Any CPU.Build.0 = Debug|Any CPU + {A7BC163E-B756-44F0-A4B6-19835488AC80}.Release|Any CPU.ActiveCfg = Release|Any CPU + {A7BC163E-B756-44F0-A4B6-19835488AC80}.Release|Any CPU.Build.0 = Release|Any CPU + {5E9CA0A4-4E3A-4B26-B475-3B5BE42B868E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {5E9CA0A4-4E3A-4B26-B475-3B5BE42B868E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {5E9CA0A4-4E3A-4B26-B475-3B5BE42B868E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {5E9CA0A4-4E3A-4B26-B475-3B5BE42B868E}.Release|Any CPU.Build.0 = Release|Any CPU + {9E2AB3C0-1844-46E6-81E8-2EF6E245EEBA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {9E2AB3C0-1844-46E6-81E8-2EF6E245EEBA}.Debug|Any CPU.Build.0 = Debug|Any CPU + {9E2AB3C0-1844-46E6-81E8-2EF6E245EEBA}.Release|Any CPU.ActiveCfg = Release|Any CPU + {9E2AB3C0-1844-46E6-81E8-2EF6E245EEBA}.Release|Any CPU.Build.0 = Release|Any CPU + {D647B496-0E93-4A2D-B7E6-D66DA93F406B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D647B496-0E93-4A2D-B7E6-D66DA93F406B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D647B496-0E93-4A2D-B7E6-D66DA93F406B}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D647B496-0E93-4A2D-B7E6-D66DA93F406B}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection EndGlobal diff --git a/src/ServiceLinker/custom/Get-AzServiceLinkerConfigurationForContainerApp.ps1 b/src/ServiceLinker/custom/Get-AzServiceLinkerConfigurationForContainerApp.ps1 index d92c9414c2f8..169a4b042083 100644 --- a/src/ServiceLinker/custom/Get-AzServiceLinkerConfigurationForContainerApp.ps1 +++ b/src/ServiceLinker/custom/Get-AzServiceLinkerConfigurationForContainerApp.ps1 @@ -24,7 +24,7 @@ list source configurations for a linker in container app. https://learn.microsoft.com/powershell/module/az.servicelinker/get-azservicelinkerconfigurationforcontainerapp #> function Get-AzServiceLinkerConfigurationForContainerApp { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISourceConfiguration])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISourceConfiguration])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] diff --git a/src/ServiceLinker/custom/Get-AzServiceLinkerConfigurationForSpringCloud.ps1 b/src/ServiceLinker/custom/Get-AzServiceLinkerConfigurationForSpringCloud.ps1 index 65be13d9ef86..db1fb5aff13f 100644 --- a/src/ServiceLinker/custom/Get-AzServiceLinkerConfigurationForSpringCloud.ps1 +++ b/src/ServiceLinker/custom/Get-AzServiceLinkerConfigurationForSpringCloud.ps1 @@ -23,7 +23,7 @@ list source configurations for a linker in spring cloud. https://learn.microsoft.com/powershell/module/az.servicelinker/get-azservicelinkerconfigurationforspringcloud #> function Get-AzServiceLinkerConfigurationForSpringCloud { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISourceConfiguration])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISourceConfiguration])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] diff --git a/src/ServiceLinker/custom/Get-AzServiceLinkerConfigurationForWebApp.ps1 b/src/ServiceLinker/custom/Get-AzServiceLinkerConfigurationForWebApp.ps1 index 1df662f43945..a61b42dd4c8a 100644 --- a/src/ServiceLinker/custom/Get-AzServiceLinkerConfigurationForWebApp.ps1 +++ b/src/ServiceLinker/custom/Get-AzServiceLinkerConfigurationForWebApp.ps1 @@ -23,7 +23,7 @@ list source configurations for a linker in webapp. https://learn.microsoft.com/powershell/module/az.servicelinker/get-azservicelinkerconfigurationforwebapp #> function Get-AzServiceLinkerConfigurationForWebApp { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISourceConfiguration])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISourceConfiguration])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] diff --git a/src/ServiceLinker/custom/Get-AzServiceLinkerForContainerApp.ps1 b/src/ServiceLinker/custom/Get-AzServiceLinkerForContainerApp.ps1 index 2073a66d34ac..db7f5860b05b 100644 --- a/src/ServiceLinker/custom/Get-AzServiceLinkerForContainerApp.ps1 +++ b/src/ServiceLinker/custom/Get-AzServiceLinkerForContainerApp.ps1 @@ -34,7 +34,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.servicelinker/get-azservicelinkerforcontainerapp #> function Get-AzServiceLinkerForContainerApp { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] diff --git a/src/ServiceLinker/custom/Get-AzServiceLinkerForSpringCloud.ps1 b/src/ServiceLinker/custom/Get-AzServiceLinkerForSpringCloud.ps1 index 17d6474e623d..d59790c5cad6 100644 --- a/src/ServiceLinker/custom/Get-AzServiceLinkerForSpringCloud.ps1 +++ b/src/ServiceLinker/custom/Get-AzServiceLinkerForSpringCloud.ps1 @@ -35,7 +35,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.servicelinker/get-azservicelinkerforspringcloud #> function Get-AzServiceLinkerForSpringCloud { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] diff --git a/src/ServiceLinker/custom/Get-AzServiceLinkerForWebApp.ps1 b/src/ServiceLinker/custom/Get-AzServiceLinkerForWebApp.ps1 index 637cdd12a21c..16aad01050e0 100644 --- a/src/ServiceLinker/custom/Get-AzServiceLinkerForWebApp.ps1 +++ b/src/ServiceLinker/custom/Get-AzServiceLinkerForWebApp.ps1 @@ -35,7 +35,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.servicelinker/get-azservicelinkerforwebapp #> function Get-AzServiceLinkerForWebApp { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] diff --git a/src/ServiceLinker/custom/New-AzServiceLinkerAzureResourceObject.ps1 b/src/ServiceLinker/custom/New-AzServiceLinkerAzureResourceObject.ps1 index caa7b366a29b..eae474212723 100644 --- a/src/ServiceLinker/custom/New-AzServiceLinkerAzureResourceObject.ps1 +++ b/src/ServiceLinker/custom/New-AzServiceLinkerAzureResourceObject.ps1 @@ -21,12 +21,12 @@ Create an in-memory object for AzureResource. Create an in-memory object for AzureResource. .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.AzureResource +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.AzureResource .Link https://learn.microsoft.com/powershell/module/az.ServiceLinker/new-azservicelinkerazureresourceobject #> function New-AzServiceLinkerAzureResourceObject { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.AzureResource')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.AzureResource')] [CmdletBinding(PositionalBinding=$false)] Param( @@ -34,7 +34,7 @@ function New-AzServiceLinkerAzureResourceObject { [string] $Id, # [Parameter(HelpMessage="The azure resource connection related properties.")] - # [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAzureResourcePropertiesBase] + # [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAzureResourcePropertiesBase] # $ResourceProperty, [Parameter(HelpMessage="True if connect via Kubernetes CSI Driver. Source must be AKS and target must be KeyVault.")] [bool] @@ -47,7 +47,7 @@ function New-AzServiceLinkerAzureResourceObject { ) process { - $Object = [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.AzureResource]::New() + $Object = [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.AzureResource]::New() if ($PSBoundParameters.ContainsKey('Id')) { $Pattern = "/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/(?[^/]+)(/(?[^/]+)/(?[^/]+))+" @@ -57,7 +57,7 @@ function New-AzServiceLinkerAzureResourceObject { $Object.Id = $Id } if ($PSBoundParameters.ContainsKey('ConnectAsKubernetesCsiDriver')) { - $ResourceProperty = [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.AzureKeyVaultProperties]::New() + $ResourceProperty = [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.AzureKeyVaultProperties]::New() $ResourceProperty.ConnectAsKubernetesCsiDriver = $ConnectAsKubernetesCsiDriver $Object.ResourceProperty = $ResourceProperty } diff --git a/src/ServiceLinker/custom/New-AzServiceLinkerConfluentBootstrapServerObject.ps1 b/src/ServiceLinker/custom/New-AzServiceLinkerConfluentBootstrapServerObject.ps1 index d2f470d1bc5a..deada327a51c 100644 --- a/src/ServiceLinker/custom/New-AzServiceLinkerConfluentBootstrapServerObject.ps1 +++ b/src/ServiceLinker/custom/New-AzServiceLinkerConfluentBootstrapServerObject.ps1 @@ -21,12 +21,12 @@ Create an in-memory object for ConfluentBootstrapServer. Create an in-memory object for ConfluentBootstrapServer. .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ConfluentBootstrapServer +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfluentBootstrapServer .Link https://learn.microsoft.com/powershell/module/az.ServiceLinker/new-azservicelinkerconfluentbootstrapserverobject #> function New-AzServiceLinkerConfluentBootstrapServerObject { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ConfluentBootstrapServer')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfluentBootstrapServer')] [CmdletBinding(PositionalBinding=$false)] Param( @@ -41,7 +41,7 @@ function New-AzServiceLinkerConfluentBootstrapServerObject { ) process { - $Object = [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ConfluentBootstrapServer]::New() + $Object = [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfluentBootstrapServer]::New() if ($PSBoundParameters.ContainsKey('Endpoint')) { if($Endpoint -notmatch ".*confluent.cloud:[0-9]*") { diff --git a/src/ServiceLinker/custom/New-AzServiceLinkerConfluentSchemaRegistryObject.ps1 b/src/ServiceLinker/custom/New-AzServiceLinkerConfluentSchemaRegistryObject.ps1 index 15170ef09333..f57e78acf029 100644 --- a/src/ServiceLinker/custom/New-AzServiceLinkerConfluentSchemaRegistryObject.ps1 +++ b/src/ServiceLinker/custom/New-AzServiceLinkerConfluentSchemaRegistryObject.ps1 @@ -21,12 +21,12 @@ Create an in-memory object for ConfluentSchemaRegistry. Create an in-memory object for ConfluentSchemaRegistry. .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ConfluentSchemaRegistry +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfluentSchemaRegistry .Link https://learn.microsoft.com/powershell/module/az.ServiceLinker/new-azservicelinkerconfluentschemaregistryobject #> function New-AzServiceLinkerConfluentSchemaRegistryObject { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ConfluentSchemaRegistry')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfluentSchemaRegistry')] [CmdletBinding(PositionalBinding=$false)] Param( @@ -41,7 +41,7 @@ function New-AzServiceLinkerConfluentSchemaRegistryObject { ) process { - $Object = [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ConfluentSchemaRegistry]::New() + $Object = [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfluentSchemaRegistry]::New() if ($PSBoundParameters.ContainsKey('Endpoint')) { if($Endpoint -notmatch "https://.*\.confluent\.cloud"){ diff --git a/src/ServiceLinker/custom/New-AzServiceLinkerForContainerApp.ps1 b/src/ServiceLinker/custom/New-AzServiceLinkerForContainerApp.ps1 index b838e9fac1a3..c86b4c12f8c1 100644 --- a/src/ServiceLinker/custom/New-AzServiceLinkerForContainerApp.ps1 +++ b/src/ServiceLinker/custom/New-AzServiceLinkerForContainerApp.ps1 @@ -23,8 +23,8 @@ Create or update linker resource in container app. https://learn.microsoft.com/powershell/module/az.servicelinker/new-azservicelinkerforcontainerapp #> function New-AzServiceLinkerForContainerApp { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource])] - [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource])] + [CmdletBinding(DefaultParameterSetName = 'CreateExpanded', PositionalBinding = $false, SupportsShouldProcess, ConfirmImpact = 'Medium')] param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Path')] @@ -41,7 +41,7 @@ function New-AzServiceLinkerForContainerApp { [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.DefaultInfo(Script = '(Get-AzContext).Subscription.Id')] [System.String] # Gets subscription ID which uniquely identify the Microsoft Azure subscription. # The subscription ID forms part of the URI for every service call. @@ -56,14 +56,14 @@ function New-AzServiceLinkerForContainerApp { [Parameter()] [Alias('LinkerName')] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.DefaultInfo(Script='"connect_"+(-join ((65..90) + (97..122) | Get-Random -Count 5 | % {[char]$_}))')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.DefaultInfo(Script = '"connect_"+(-join ((65..90) + (97..122) | Get-Random -Count 5 | % {[char]$_}))')] [System.String] # The name Linker resource. ${Name}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBase] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase] # The authentication type. # To construct, see NOTES section for AUTHINFO properties and create a hash table. ${AuthInfo}, @@ -71,12 +71,72 @@ function New-AzServiceLinkerForContainerApp { [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType])] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.DefaultInfo(Script='"none"')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.DefaultInfo(Script = '"none"')] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType] # The application client type ${ClientType}, - [Parameter(Mandatory)] + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType])] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType] + # Optional, indicate whether to apply configurations on source application. + # If enable, generate configurations and applied to the source application. + # Default is enable. + # If optOut, no configuration change will be made on source. + ${ConfigurationInfoAction}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info(PossibleTypes = ([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoAdditionalConfigurations]))] + [System.Collections.Hashtable] + # A dictionary of additional configurations to be added. + # Service will auto generate a set of basic configurations and this property is to full fill more customized configurations + ${ConfigurationInfoAdditionalConfiguration}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info(PossibleTypes = ([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoCustomizedKeys]))] + [System.Collections.Hashtable] + # Optional. + # A dictionary of default key name and customized key name mapping. + # If not specified, default key name will be used for generate configurations + ${ConfigurationInfoCustomizedKey}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType])] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType] + # Allow Azure services to access the target service if true. + ${FirewallRuleAzureService}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType])] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType] + # Allow caller client IP to access the target service if true. + # the property is used when connecting local application to target service. + ${FirewallRuleCallerClientIP}, + + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [System.String[]] + # This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client IPs for a given database account. + ${FirewallRuleIPRange}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType])] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType] + # Optional. + # Indicates public network solution. + # If enable, enable public network access of target service with best try. + # Default is enable. + # If optOut, opt out public network access configuration. + ${PublicNetworkSolutionAction}, + + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] [System.String] # connection scope in source service. @@ -88,13 +148,19 @@ function New-AzServiceLinkerForContainerApp { # The key vault id to store secret ${SecretStoreKeyVaultId}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [System.String] + # The key vault secret name to store secret, only valid when storing one secret + ${SecretStoreKeyVaultSecretName}, + [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBase] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase] # The target service properties # To construct, see NOTES section for TARGETSERVICE properties and create a hash table. ${TargetService}, - + [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType])] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] @@ -175,4 +241,4 @@ function New-AzServiceLinkerForContainerApp { $PSBoundParameters = Set-Header -PSBoundParameters $PSBoundParameters Az.ServiceLinker.internal\New-AzServiceLinker @PSBoundParameters } -} \ No newline at end of file +} diff --git a/src/ServiceLinker/custom/New-AzServiceLinkerForSpringCloud.ps1 b/src/ServiceLinker/custom/New-AzServiceLinkerForSpringCloud.ps1 index b853ec36d4e3..3269055dd030 100644 --- a/src/ServiceLinker/custom/New-AzServiceLinkerForSpringCloud.ps1 +++ b/src/ServiceLinker/custom/New-AzServiceLinkerForSpringCloud.ps1 @@ -23,8 +23,8 @@ Create or update linker resource in spring cloud. https://learn.microsoft.com/powershell/module/az.servicelinker/new-azservicelinkerforspringcloud #> function New-AzServiceLinkerForSpringCloud { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource])] - [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource])] + [CmdletBinding(DefaultParameterSetName = 'CreateExpanded', PositionalBinding = $false, SupportsShouldProcess, ConfirmImpact = 'Medium')] param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Path')] @@ -46,7 +46,7 @@ function New-AzServiceLinkerForSpringCloud { [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.DefaultInfo(Script='"default"')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.DefaultInfo(Script = '"default"')] [System.String] # The deployment Name of spring cloud app to be connected. ${DeploymentName}, @@ -60,7 +60,7 @@ function New-AzServiceLinkerForSpringCloud { [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.DefaultInfo(Script = '(Get-AzContext).Subscription.Id')] [System.String] # Gets subscription ID which uniquely identify the Microsoft Azure subscription. # The subscription ID forms part of the URI for every service call. @@ -69,14 +69,14 @@ function New-AzServiceLinkerForSpringCloud { [Parameter()] [Alias('LinkerName')] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.DefaultInfo(Script='"connect_"+(-join ((65..90) + (97..122) | Get-Random -Count 5 | % {[char]$_}))')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.DefaultInfo(Script = '"connect_"+(-join ((65..90) + (97..122) | Get-Random -Count 5 | % {[char]$_}))')] [System.String] # The name Linker resource. ${Name}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBase] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase] # The authentication type. # To construct, see NOTES section for AUTHINFO properties and create a hash table. ${AuthInfo}, @@ -84,11 +84,71 @@ function New-AzServiceLinkerForSpringCloud { [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType])] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.DefaultInfo(Script='"none"')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.DefaultInfo(Script = '"none"')] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType] # The application client type ${ClientType}, + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType])] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType] + # Optional, indicate whether to apply configurations on source application. + # If enable, generate configurations and applied to the source application. + # Default is enable. + # If optOut, no configuration change will be made on source. + ${ConfigurationInfoAction}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info(PossibleTypes = ([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoAdditionalConfigurations]))] + [System.Collections.Hashtable] + # A dictionary of additional configurations to be added. + # Service will auto generate a set of basic configurations and this property is to full fill more customized configurations + ${ConfigurationInfoAdditionalConfiguration}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info(PossibleTypes = ([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoCustomizedKeys]))] + [System.Collections.Hashtable] + # Optional. + # A dictionary of default key name and customized key name mapping. + # If not specified, default key name will be used for generate configurations + ${ConfigurationInfoCustomizedKey}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType])] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType] + # Allow Azure services to access the target service if true. + ${FirewallRuleAzureService}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType])] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType] + # Allow caller client IP to access the target service if true. + # the property is used when connecting local application to target service. + ${FirewallRuleCallerClientIP}, + + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [System.String[]] + # This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client IPs for a given database account. + ${FirewallRuleIPRange}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType])] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType] + # Optional. + # Indicates public network solution. + # If enable, enable public network access of target service with best try. + # Default is enable. + # If optOut, opt out public network access configuration. + ${PublicNetworkSolutionAction}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] [System.String] @@ -101,13 +161,19 @@ function New-AzServiceLinkerForSpringCloud { # The key vault id to store secret ${SecretStoreKeyVaultId}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [System.String] + # The key vault secret name to store secret, only valid when storing one secret + ${SecretStoreKeyVaultSecretName}, + [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBase] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase] # The target service properties # To construct, see NOTES section for TARGETSERVICE properties and create a hash table. ${TargetService}, - + [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType])] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] @@ -188,4 +254,4 @@ function New-AzServiceLinkerForSpringCloud { $PSBoundParameters = Set-Header -PSBoundParameters $PSBoundParameters Az.ServiceLinker.internal\New-AzServiceLinker @PSBoundParameters } -} \ No newline at end of file +} diff --git a/src/ServiceLinker/custom/New-AzServiceLinkerForWebApp.ps1 b/src/ServiceLinker/custom/New-AzServiceLinkerForWebApp.ps1 index c00b9a69a43a..b14f4dd0a5f9 100644 --- a/src/ServiceLinker/custom/New-AzServiceLinkerForWebApp.ps1 +++ b/src/ServiceLinker/custom/New-AzServiceLinkerForWebApp.ps1 @@ -23,7 +23,7 @@ Create or update linker resource in webapp. https://learn.microsoft.com/powershell/module/az.servicelinker/new-azservicelinkerforwebapp #> function New-AzServiceLinkerForWebApp { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter()] @@ -57,14 +57,14 @@ function New-AzServiceLinkerForWebApp { [Parameter()] [Alias('LinkerName')] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.DefaultInfo(Script='"connect_"+(-join ((65..90) + (97..122) | Get-Random -Count 5 | % {[char]$_}))')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.DefaultInfo(Script = '"connect_"+(-join ((65..90) + (97..122) | Get-Random -Count 5 | % {[char]$_}))')] [System.String] # The name Linker resource. ${Name}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBase] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase] # The authentication type. # To construct, see NOTES section for AUTHINFO properties and create a hash table. ${AuthInfo}, @@ -72,11 +72,71 @@ function New-AzServiceLinkerForWebApp { [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType])] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.DefaultInfo(Script='"none"')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.DefaultInfo(Script = '"none"')] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType] # The application client type ${ClientType}, + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType])] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType] + # Optional, indicate whether to apply configurations on source application. + # If enable, generate configurations and applied to the source application. + # Default is enable. + # If optOut, no configuration change will be made on source. + ${ConfigurationInfoAction}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info(PossibleTypes = ([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoAdditionalConfigurations]))] + [System.Collections.Hashtable] + # A dictionary of additional configurations to be added. + # Service will auto generate a set of basic configurations and this property is to full fill more customized configurations + ${ConfigurationInfoAdditionalConfiguration}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info(PossibleTypes = ([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoCustomizedKeys]))] + [System.Collections.Hashtable] + # Optional. + # A dictionary of default key name and customized key name mapping. + # If not specified, default key name will be used for generate configurations + ${ConfigurationInfoCustomizedKey}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType])] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType] + # Allow Azure services to access the target service if true. + ${FirewallRuleAzureService}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType])] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType] + # Allow caller client IP to access the target service if true. + # the property is used when connecting local application to target service. + ${FirewallRuleCallerClientIP}, + + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [System.String[]] + # This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client IPs for a given database account. + ${FirewallRuleIPRange}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType])] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType] + # Optional. + # Indicates public network solution. + # If enable, enable public network access of target service with best try. + # Default is enable. + # If optOut, opt out public network access configuration. + ${PublicNetworkSolutionAction}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] [System.String] @@ -89,13 +149,19 @@ function New-AzServiceLinkerForWebApp { # The key vault id to store secret ${SecretStoreKeyVaultId}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [System.String] + # The key vault secret name to store secret, only valid when storing one secret + ${SecretStoreKeyVaultSecretName}, + [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBase] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase] # The target service properties # To construct, see NOTES section for TARGETSERVICE properties and create a hash table. ${TargetService}, - + [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType])] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] @@ -176,4 +242,4 @@ function New-AzServiceLinkerForWebApp { $PSBoundParameters = Set-Header -PSBoundParameters $PSBoundParameters Az.ServiceLinker.internal\New-AzServiceLinker @PSBoundParameters } -} \ No newline at end of file +} diff --git a/src/ServiceLinker/custom/New-AzServiceLinkerKeyVaultSecretReferenceSecretInfoObject.ps1 b/src/ServiceLinker/custom/New-AzServiceLinkerKeyVaultSecretReferenceSecretInfoObject.ps1 index e25455ab6b3a..efd8561e2270 100644 --- a/src/ServiceLinker/custom/New-AzServiceLinkerKeyVaultSecretReferenceSecretInfoObject.ps1 +++ b/src/ServiceLinker/custom/New-AzServiceLinkerKeyVaultSecretReferenceSecretInfoObject.ps1 @@ -21,13 +21,13 @@ Create an in-memory object for KeyVaultSecretReferenceSecretInfo. Create an in-memory object for KeyVaultSecretReferenceSecretInfo. .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.KeyVaultSecretReferenceSecretInfo +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.KeyVaultSecretReferenceSecretInfo .Link https://learn.microsoft.com/powershell/module/az.ServiceLinker/new-azservicelinkerkeyvaultsecretreferencesecretinfoobject #> function New-AzServiceLinkerKeyVaultSecretReferenceSecretInfoObject { [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.DoNotExportAttribute()] - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.KeyVaultSecretReferenceSecretInfo')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.KeyVaultSecretReferenceSecretInfo')] [CmdletBinding(PositionalBinding=$false)] Param( @@ -44,7 +44,7 @@ function New-AzServiceLinkerKeyVaultSecretReferenceSecretInfoObject { ) process { - $Object = [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.KeyVaultSecretReferenceSecretInfo]::New() + $Object = [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.KeyVaultSecretReferenceSecretInfo]::New() if ($PSBoundParameters.ContainsKey('Name')) { $Object.Name = $Name diff --git a/src/ServiceLinker/custom/New-AzServiceLinkerKeyVaultSecretUriSecretInfoObject.ps1 b/src/ServiceLinker/custom/New-AzServiceLinkerKeyVaultSecretUriSecretInfoObject.ps1 index 3d7d43191fc9..cc8505ef5261 100644 --- a/src/ServiceLinker/custom/New-AzServiceLinkerKeyVaultSecretUriSecretInfoObject.ps1 +++ b/src/ServiceLinker/custom/New-AzServiceLinkerKeyVaultSecretUriSecretInfoObject.ps1 @@ -21,13 +21,13 @@ Create an in-memory object for KeyVaultSecretUriSecretInfo. Create an in-memory object for KeyVaultSecretUriSecretInfo. .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.KeyVaultSecretUriSecretInfo +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.KeyVaultSecretUriSecretInfo .Link https://learn.microsoft.com/powershell/module/az.ServiceLinker/new-azservicelinkerkeyvaultsecreturisecretinfoobject #> function New-AzServiceLinkerKeyVaultSecretUriSecretInfoObject { [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.DoNotExportAttribute()] - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.KeyVaultSecretUriSecretInfo')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.KeyVaultSecretUriSecretInfo')] [CmdletBinding(PositionalBinding=$false)] Param( @@ -41,7 +41,7 @@ function New-AzServiceLinkerKeyVaultSecretUriSecretInfoObject { ) process { - $Object = [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.KeyVaultSecretUriSecretInfo]::New() + $Object = [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.KeyVaultSecretUriSecretInfo]::New() if ($PSBoundParameters.ContainsKey('Value')) { $Object.Value = $Value diff --git a/src/ServiceLinker/custom/New-AzServiceLinkerSecretAuthInfoObject.ps1 b/src/ServiceLinker/custom/New-AzServiceLinkerSecretAuthInfoObject.ps1 index cff9c1223096..c277b75ab6a9 100644 --- a/src/ServiceLinker/custom/New-AzServiceLinkerSecretAuthInfoObject.ps1 +++ b/src/ServiceLinker/custom/New-AzServiceLinkerSecretAuthInfoObject.ps1 @@ -21,12 +21,12 @@ Create an in-memory object for SecretAuthInfo. Create an in-memory object for SecretAuthInfo. .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.SecretAuthInfo +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.SecretAuthInfo .Link https://learn.microsoft.com/powershell/module/az.ServiceLinker/new-azservicelinkersecretauthinfoobject #> function New-AzServiceLinkerSecretAuthInfoObject { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.SecretAuthInfo')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.SecretAuthInfo')] [CmdletBinding(PositionalBinding=$false)] Param( @@ -34,7 +34,7 @@ function New-AzServiceLinkerSecretAuthInfoObject { [string] $Name, [Parameter(DontShow, HelpMessage="Password or key vault secret for secret auth.")] - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretInfoBase] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretInfoBase] $SecretInfo, [Parameter(HelpMessage="Raw value of secret.")] @@ -54,7 +54,7 @@ function New-AzServiceLinkerSecretAuthInfoObject { ) process { - $Object = [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.SecretAuthInfo]::New() + $Object = [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.SecretAuthInfo]::New() if ($PSBoundParameters.ContainsKey('Name')) { $Object.Name = $Name diff --git a/src/ServiceLinker/custom/New-AzServiceLinkerServicePrincipalSecretAuthInfoObject.ps1 b/src/ServiceLinker/custom/New-AzServiceLinkerServicePrincipalSecretAuthInfoObject.ps1 index 37797ad34d82..b66d451318b0 100644 --- a/src/ServiceLinker/custom/New-AzServiceLinkerServicePrincipalSecretAuthInfoObject.ps1 +++ b/src/ServiceLinker/custom/New-AzServiceLinkerServicePrincipalSecretAuthInfoObject.ps1 @@ -21,12 +21,12 @@ Create an in-memory object for ServicePrincipalSecretAuthInfo. Create an in-memory object for ServicePrincipalSecretAuthInfo. .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ServicePrincipalSecretAuthInfo +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ServicePrincipalSecretAuthInfo .Link https://learn.microsoft.com/powershell/module/az.ServiceLinker/new-azservicelinkerserviceprincipalsecretauthinfoobject #> function New-AzServiceLinkerServicePrincipalSecretAuthInfoObject { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ServicePrincipalSecretAuthInfo')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ServicePrincipalSecretAuthInfo')] [CmdletBinding(PositionalBinding=$false)] Param( @@ -47,7 +47,7 @@ function New-AzServiceLinkerServicePrincipalSecretAuthInfoObject { ) process { - $Object = [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ServicePrincipalSecretAuthInfo]::New() + $Object = [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ServicePrincipalSecretAuthInfo]::New() if ($PSBoundParameters.ContainsKey('ClientId')) { $Object.ClientId = $ClientId diff --git a/src/ServiceLinker/custom/New-AzServiceLinkerSystemAssignedIdentityAuthInfoObject.ps1 b/src/ServiceLinker/custom/New-AzServiceLinkerSystemAssignedIdentityAuthInfoObject.ps1 index 096d76d07c54..130923fa9fee 100644 --- a/src/ServiceLinker/custom/New-AzServiceLinkerSystemAssignedIdentityAuthInfoObject.ps1 +++ b/src/ServiceLinker/custom/New-AzServiceLinkerSystemAssignedIdentityAuthInfoObject.ps1 @@ -21,12 +21,12 @@ Create an in-memory object for SystemAssignedIdentityAuthInfo. Create an in-memory object for SystemAssignedIdentityAuthInfo. .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.SystemAssignedIdentityAuthInfo +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.SystemAssignedIdentityAuthInfo .Link https://learn.microsoft.com/powershell/module/az.ServiceLinker/new-azservicelinkersystemassignedidentityauthinfoobject #> function New-AzServiceLinkerSystemAssignedIdentityAuthInfoObject { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.SystemAssignedIdentityAuthInfo')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.SystemAssignedIdentityAuthInfo')] [CmdletBinding(PositionalBinding=$false)] Param( @@ -38,7 +38,7 @@ function New-AzServiceLinkerSystemAssignedIdentityAuthInfoObject { ) process { - $Object = [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.SystemAssignedIdentityAuthInfo]::New() + $Object = [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.SystemAssignedIdentityAuthInfo]::New() if ($PSBoundParameters.ContainsKey('AuthType')) { $Object.AuthType = $AuthType diff --git a/src/ServiceLinker/custom/New-AzServiceLinkerUserAssignedIdentityAuthInfoObject.ps1 b/src/ServiceLinker/custom/New-AzServiceLinkerUserAssignedIdentityAuthInfoObject.ps1 index dbe3d776c360..a4656e34acfc 100644 --- a/src/ServiceLinker/custom/New-AzServiceLinkerUserAssignedIdentityAuthInfoObject.ps1 +++ b/src/ServiceLinker/custom/New-AzServiceLinkerUserAssignedIdentityAuthInfoObject.ps1 @@ -21,12 +21,12 @@ Create an in-memory object for UserAssignedIdentityAuthInfo. Create an in-memory object for UserAssignedIdentityAuthInfo. .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.UserAssignedIdentityAuthInfo +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.UserAssignedIdentityAuthInfo .Link https://learn.microsoft.com/powershell/module/az.ServiceLinker/new-azservicelinkeruserassignedidentityauthinfoobject #> function New-AzServiceLinkerUserAssignedIdentityAuthInfoObject { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.UserAssignedIdentityAuthInfo')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.UserAssignedIdentityAuthInfo')] [CmdletBinding(PositionalBinding=$false)] Param( @@ -44,7 +44,7 @@ function New-AzServiceLinkerUserAssignedIdentityAuthInfoObject { ) process { - $Object = [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.UserAssignedIdentityAuthInfo]::New() + $Object = [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.UserAssignedIdentityAuthInfo]::New() if ($PSBoundParameters.ContainsKey('ClientId')) { $Object.ClientId = $ClientId diff --git a/src/ServiceLinker/custom/New-AzServiceLinkerValueSecretInfoObject.ps1 b/src/ServiceLinker/custom/New-AzServiceLinkerValueSecretInfoObject.ps1 index 856e64b3ecca..fe6f2836e136 100644 --- a/src/ServiceLinker/custom/New-AzServiceLinkerValueSecretInfoObject.ps1 +++ b/src/ServiceLinker/custom/New-AzServiceLinkerValueSecretInfoObject.ps1 @@ -21,13 +21,13 @@ Create an in-memory object for ValueSecretInfo. Create an in-memory object for ValueSecretInfo. .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ValueSecretInfo +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ValueSecretInfo .Link https://learn.microsoft.com/powershell/module/az.ServiceLinker/new-azservicelinkervaluesecretinfoobject #> function New-AzServiceLinkerValueSecretInfoObject { [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.DoNotExportAttribute()] - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ValueSecretInfo')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ValueSecretInfo')] [CmdletBinding(PositionalBinding=$false)] Param( @@ -41,7 +41,7 @@ function New-AzServiceLinkerValueSecretInfoObject { ) process { - $Object = [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ValueSecretInfo]::New() + $Object = [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ValueSecretInfo]::New() if ($PSBoundParameters.ContainsKey('Value')) { $Object.Value = $Value diff --git a/src/ServiceLinker/custom/README.md b/src/ServiceLinker/custom/README.md index ddb64e96493c..7b4de8a8caef 100644 --- a/src/ServiceLinker/custom/README.md +++ b/src/ServiceLinker/custom/README.md @@ -32,7 +32,7 @@ These provide functionality to our HTTP pipeline and other useful features. In s ### Attributes For processing the cmdlets, we've created some additional attributes: - `Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.DescriptionAttribute` - - Used in C# cmdlets to provide a high-level description of the cmdlet. This is propagated to reference documentation via [help comments](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_comment_based_help) in the exported scripts. + - Used in C# cmdlets to provide a high-level description of the cmdlet. This is propagated to reference documentation via [help comments](https://docs.microsoft.com/powershell/module/microsoft.powershell.core/about/about_comment_based_help) in the exported scripts. - `Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.DoNotExportAttribute` - Used in C# and script cmdlets to suppress creating an exported cmdlet at build-time. These cmdlets will *not be exposed* by `Az.ServiceLinker`. - `Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.InternalExportAttribute` diff --git a/src/ServiceLinker/custom/Remove-AzServiceLinkerForSpringCloud.ps1 b/src/ServiceLinker/custom/Remove-AzServiceLinkerForSpringCloud.ps1 index fa300333ad0e..75d17dcedba8 100644 --- a/src/ServiceLinker/custom/Remove-AzServiceLinkerForSpringCloud.ps1 +++ b/src/ServiceLinker/custom/Remove-AzServiceLinkerForSpringCloud.ps1 @@ -34,7 +34,7 @@ INPUTOBJECT : Identity Parameter .Link https://learn.microsoft.com/powershell/module/az.servicelinker/remove-azservicelinkerforspringcloud #> -function Remove-AzServiceLinkerForSpringcloud { +function Remove-AzServiceLinkerForSpringCloud { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( diff --git a/src/ServiceLinker/custom/Test-AzServiceLinkerForContainerApp.ps1 b/src/ServiceLinker/custom/Test-AzServiceLinkerForContainerApp.ps1 index b0c2e5f4173f..534918c33d54 100644 --- a/src/ServiceLinker/custom/Test-AzServiceLinkerForContainerApp.ps1 +++ b/src/ServiceLinker/custom/Test-AzServiceLinkerForContainerApp.ps1 @@ -23,7 +23,7 @@ Validate a link in container app. .Inputs Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResult +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResult .Notes COMPLEX PARAMETER PROPERTIES @@ -37,7 +37,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.servicelinker/test-azservicelinkerforcontainerapp #> function Test-AzServiceLinkerForContainerApp { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResult])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResult])] [CmdletBinding(DefaultParameterSetName='Validate', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Validate', Mandatory)] diff --git a/src/ServiceLinker/custom/Test-AzServiceLinkerForSpringCloud.ps1 b/src/ServiceLinker/custom/Test-AzServiceLinkerForSpringCloud.ps1 index c7a17662e33c..4e3a19d969f2 100644 --- a/src/ServiceLinker/custom/Test-AzServiceLinkerForSpringCloud.ps1 +++ b/src/ServiceLinker/custom/Test-AzServiceLinkerForSpringCloud.ps1 @@ -35,7 +35,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.servicelinker/test-azservicelinkerforspringcloud #> function Test-AzServiceLinkerForSpringCloud { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResult])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResult])] [CmdletBinding(DefaultParameterSetName='Validate', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Validate', Mandatory)] diff --git a/src/ServiceLinker/custom/Test-AzServiceLinkerForWebApp.ps1 b/src/ServiceLinker/custom/Test-AzServiceLinkerForWebApp.ps1 index 3cf38ac3ca14..351ad268ce9a 100644 --- a/src/ServiceLinker/custom/Test-AzServiceLinkerForWebApp.ps1 +++ b/src/ServiceLinker/custom/Test-AzServiceLinkerForWebApp.ps1 @@ -35,7 +35,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.servicelinker/test-azservicelinkerforwebapp #> function Test-AzServiceLinkerForWebApp { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResult])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResult])] [CmdletBinding(DefaultParameterSetName='Validate', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Validate', Mandatory)] diff --git a/src/ServiceLinker/custom/Update-AzServiceLinkerForContainerApp.ps1 b/src/ServiceLinker/custom/Update-AzServiceLinkerForContainerApp.ps1 index c3b5affe8866..945d86e90268 100644 --- a/src/ServiceLinker/custom/Update-AzServiceLinkerForContainerApp.ps1 +++ b/src/ServiceLinker/custom/Update-AzServiceLinkerForContainerApp.ps1 @@ -41,29 +41,29 @@ TARGETSERVICE : The target service properties https://learn.microsoft.com/powershell/module/az.servicelinker/update-azservicelinkerforcontainerapp #> function Update-AzServiceLinkerForContainerApp { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource])] -[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource])] +[CmdletBinding(DefaultParameterSetName = 'UpdateExpanded', PositionalBinding = $false, SupportsShouldProcess, ConfirmImpact = 'Medium')] param( - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(ParameterSetName = 'UpdateExpanded', Mandatory)] [Alias('LinkerName')] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Path')] [System.String] # The name Linker resource. ${Name}, - [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName = 'UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Path')] [System.String] # The fully qualified Azure Resource manager identifier of the resource to be connected. ${ResourceUri}, - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(ParameterSetName = 'UpdateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] [System.String] # The Name of container app of the resource to be connected. ${ContainerApp}, - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(ParameterSetName = 'UpdateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] [System.String] # The resource group of the resource to be connected. @@ -71,13 +71,13 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.DefaultInfo(Script = '(Get-AzContext).Subscription.Id')] [System.String] # Gets subscription ID which uniquely identify the Microsoft Azure subscription. # The subscription ID forms part of the URI for every service call. ${SubscriptionId}, - [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName = 'UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentity] # Identity Parameter @@ -86,7 +86,7 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBase] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase] # The authentication type. # To construct, see NOTES section for AUTHINFO properties and create a hash table. ${AuthInfo}, @@ -112,7 +112,7 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBase] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase] # The target service properties # To construct, see NOTES section for TARGETSERVICE properties and create a hash table. ${TargetService}, diff --git a/src/ServiceLinker/custom/Update-AzServiceLinkerForSpringCloud.ps1 b/src/ServiceLinker/custom/Update-AzServiceLinkerForSpringCloud.ps1 index 1ed419af49d6..ece80e6e8af9 100644 --- a/src/ServiceLinker/custom/Update-AzServiceLinkerForSpringCloud.ps1 +++ b/src/ServiceLinker/custom/Update-AzServiceLinkerForSpringCloud.ps1 @@ -41,7 +41,7 @@ TARGETSERVICE : The target service properties https://learn.microsoft.com/powershell/module/az.servicelinker/update-azservicelinkerforspringcloud #> function Update-AzServiceLinkerForSpringCloud { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -99,7 +99,7 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBase] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase] # The authentication type. # To construct, see NOTES section for AUTHINFO properties and create a hash table. ${AuthInfo}, @@ -125,7 +125,7 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBase] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase] # The target service properties # To construct, see NOTES section for TARGETSERVICE properties and create a hash table. ${TargetService}, diff --git a/src/ServiceLinker/custom/Update-AzServiceLinkerForWebApp.ps1 b/src/ServiceLinker/custom/Update-AzServiceLinkerForWebApp.ps1 index 1825accfbbc6..9f83765fbc58 100644 --- a/src/ServiceLinker/custom/Update-AzServiceLinkerForWebApp.ps1 +++ b/src/ServiceLinker/custom/Update-AzServiceLinkerForWebApp.ps1 @@ -41,7 +41,7 @@ TARGETSERVICE : The target service properties https://learn.microsoft.com/powershell/module/az.servicelinker/update-azservicelinkerforwebapp #> function Update-AzServiceLinkerForWebApp { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -86,7 +86,7 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBase] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase] # The authentication type. # To construct, see NOTES section for AUTHINFO properties and create a hash table. ${AuthInfo}, @@ -112,7 +112,7 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBase] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase] # The target service properties # To construct, see NOTES section for TARGETSERVICE properties and create a hash table. ${TargetService}, diff --git a/src/ServiceLinker/examples/Get-AzServiceLinkerConfigurationForContainerApp.md b/src/ServiceLinker/examples/Get-AzServiceLinkerConfigurationForContainerApp.md index d09a4c081464..94dea83e26f4 100644 --- a/src/ServiceLinker/examples/Get-AzServiceLinkerConfigurationForContainerApp.md +++ b/src/ServiceLinker/examples/Get-AzServiceLinkerConfigurationForContainerApp.md @@ -1,6 +1,6 @@ ### Example 1: Get container app's linker configuration list ```powershell -Get-AzServiceLinkerConfigurationForContainerApp -ContainerApp servicelinker-containerapp -ResourceGroupName servicelinker-test-group -LinkerName postgresql_linker |fl +Get-AzServiceLinkerConfigurationForContainerApp -ContainerApp servicelinker-containerapp -ResourceGroupName servicelinker-test-group -LinkerName postgresql_linker | Format-List ``` ```output diff --git a/src/ServiceLinker/examples/Get-AzServiceLinkerConfigurationForSpringCloud.md b/src/ServiceLinker/examples/Get-AzServiceLinkerConfigurationForSpringCloud.md index 8490fd6a14e4..d085b9a5eaac 100644 --- a/src/ServiceLinker/examples/Get-AzServiceLinkerConfigurationForSpringCloud.md +++ b/src/ServiceLinker/examples/Get-AzServiceLinkerConfigurationForSpringCloud.md @@ -1,6 +1,6 @@ ### Example 1: Get spring cloud's linker configuration list ```powershell -Get-AzServiceLinkerConfigurationForSpringCloud -ServiceName servicelinker-springcloud -AppName appconfiguration -ResourceGroupName servicelinker-test-group -LinkerName postgresql_linker |fl +Get-AzServiceLinkerConfigurationForSpringCloud -ServiceName servicelinker-springcloud -AppName appconfiguration -ResourceGroupName servicelinker-test-group -LinkerName postgresql_linker | Format-List ``` ```output diff --git a/src/ServiceLinker/examples/Get-AzServiceLinkerConfigurationForWebApp.md b/src/ServiceLinker/examples/Get-AzServiceLinkerConfigurationForWebApp.md index dbfeddec55e9..ec2e4a5adb39 100644 --- a/src/ServiceLinker/examples/Get-AzServiceLinkerConfigurationForWebApp.md +++ b/src/ServiceLinker/examples/Get-AzServiceLinkerConfigurationForWebApp.md @@ -1,6 +1,6 @@ ### Example 1: Get webapp's linker configuration list ```powershell -Get-AzServiceLinkerConfigurationForWebApp -WebApp servicelinker-webapp -ResourceGroupName servicelinker-test-group -LinkerName postgresql_linker |fl +Get-AzServiceLinkerConfigurationForWebApp -WebApp servicelinker-webapp -ResourceGroupName servicelinker-test-group -LinkerName postgresql_linker | Format-List ``` ```output diff --git a/src/ServiceLinker/examples/Get-AzServiceLinkerConfigurationName.md b/src/ServiceLinker/examples/Get-AzServiceLinkerConfigurationName.md new file mode 100644 index 000000000000..b07bf7823a5b --- /dev/null +++ b/src/ServiceLinker/examples/Get-AzServiceLinkerConfigurationName.md @@ -0,0 +1,14 @@ +### Example 1: Get expected configuration names of difference connection +```powershell +Get-AzServiceLinkerConfigurationName +``` + +```output +systemAssignedIdentity none {Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.Config… +userAssignedIdentity none {Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.Config… +servicePrincipalSecret none {Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.Config… +secret none {Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.Config… +accessKey none {Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.Config… +``` + +Get the expected configuration names of connection with each auth type and client type. diff --git a/src/ServiceLinker/examples/Get-AzServiceLinkerForContainerApp.md b/src/ServiceLinker/examples/Get-AzServiceLinkerForContainerApp.md index a7395e11bf28..003726854a34 100644 --- a/src/ServiceLinker/examples/Get-AzServiceLinkerForContainerApp.md +++ b/src/ServiceLinker/examples/Get-AzServiceLinkerForContainerApp.md @@ -1,6 +1,6 @@ ### Example 1: List all linkers in a container app ```powershell -Get-AzServiceLinkerForContainerApp -ContainerApp servicelinker-app -ResourceGroupName servicelinker-test-group -Scope 'simple-hello-world-container' +Get-AzServiceLinkerForContainerApp -ContainerApp servicelinker-app -ResourceGroupName servicelinker-test-group ``` ```output @@ -16,12 +16,12 @@ List all linkers in the container app ### Example 2: Get linker by name ```powershell -Get-AzServiceLinkerForContainerApp -ContainerApp servicelinker-app -ResourceGroupName servicelinker-test-group -Name postgresql_connection | fl +Get-AzServiceLinkerForContainerApp -ContainerApp servicelinker-app -ResourceGroupName servicelinker-test-group -Name postgresql_connection | Format-List ``` ```output AuthInfo : Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Model - s.Api20220501.SecretAuthInfo + s.Api20221101Preview.SecretAuthInfo ClientType : dotnet Id : /subscriptions/00000000-0000-0000-0000-000000000000/re sourceGroups/servicelinker-test-group/providers/ @@ -38,7 +38,7 @@ SystemDataLastModifiedAt : SystemDataLastModifiedBy : SystemDataLastModifiedByType : TargetService : Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Model - s.Api20220501.AzureResource + s.Api20221101Preview.AzureResource Type : microsoft.servicelinker/linkers VNetSolutionType : serviceEndpoint @@ -52,12 +52,12 @@ $identity = @{ ResourceUri = '/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-app' LinkerName = 'postgresql_connection'} -$identity | Get-AzServiceLinkerForContainerApp |fl +$identity | Get-AzServiceLinkerForContainerApp | Format-List ``` ```output AuthInfo : Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Model - s.Api20220501.SecretAuthInfo + s.Api20221101Preview.SecretAuthInfo ClientType : dotnet Id : /subscriptions/00000000-0000-0000-0000-000000000000/re sourceGroups/servicelinker-test-group/providers/ @@ -74,7 +74,7 @@ SystemDataLastModifiedAt : SystemDataLastModifiedBy : SystemDataLastModifiedByType : TargetService : Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Model - s.Api20220501.AzureResource + s.Api20221101Preview.AzureResource Type : microsoft.servicelinker/linkers VNetSolutionType : serviceEndpoint diff --git a/src/ServiceLinker/examples/Get-AzServiceLinkerForSpringCloud.md b/src/ServiceLinker/examples/Get-AzServiceLinkerForSpringCloud.md index feedf63cf5a5..ec111a4bdab4 100644 --- a/src/ServiceLinker/examples/Get-AzServiceLinkerForSpringCloud.md +++ b/src/ServiceLinker/examples/Get-AzServiceLinkerForSpringCloud.md @@ -16,12 +16,12 @@ List all linkers in a spring cloud app's deployment ### Example 2: Get linker by name ```powershell -Get-AzServiceLinkerForSpringCloud -ServiceName servicelinker-springcloud -AppName appconfiguration -DeploymentName "default" -ResourceGroupName servicelinker-test-group -Name postgresql_connection | fl +Get-AzServiceLinkerForSpringCloud -ServiceName servicelinker-springcloud -AppName appconfiguration -DeploymentName "default" -ResourceGroupName servicelinker-test-group -Name postgresql_connection | Format-List ``` ```output AuthInfo : Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Model - s.Api20220501.SecretAuthInfo + s.Api20221101Preview.SecretAuthInfo ClientType : dotnet Id : /subscriptions/00000000-0000-0000-0000-000000000000/re sourceGroups/servicelinker-test-group/providers/ @@ -38,7 +38,7 @@ SystemDataLastModifiedAt : SystemDataLastModifiedBy : SystemDataLastModifiedByType : TargetService : Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Model - s.Api20220501.AzureResource + s.Api20221101Preview.AzureResource Type : microsoft.servicelinker/linkers VNetSolutionType : serviceEndpoint @@ -52,12 +52,12 @@ $identity = @{ ResourceUri = '/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/appconfiguration/deployments/default' LinkerName = 'postgresql_connection'} -$identity | Get-AzServiceLinkerForSpringCloud |fl +$identity | Get-AzServiceLinkerForSpringCloud | Format-List ``` ```output AuthInfo : Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Model - s.Api20220501.SecretAuthInfo + s.Api20221101Preview.SecretAuthInfo ClientType : dotnet Id : /subscriptions/00000000-0000-0000-0000-000000000000/re sourceGroups/servicelinker-test-group/providers/ @@ -74,7 +74,7 @@ SystemDataLastModifiedAt : SystemDataLastModifiedBy : SystemDataLastModifiedByType : TargetService : Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Model - s.Api20220501.AzureResource + s.Api20221101Preview.AzureResource Type : microsoft.servicelinker/linkers VNetSolutionType : serviceEndpoint diff --git a/src/ServiceLinker/examples/Get-AzServiceLinkerForWebApp.md b/src/ServiceLinker/examples/Get-AzServiceLinkerForWebApp.md index 40def6f8ee92..8d2c2efb1566 100644 --- a/src/ServiceLinker/examples/Get-AzServiceLinkerForWebApp.md +++ b/src/ServiceLinker/examples/Get-AzServiceLinkerForWebApp.md @@ -16,12 +16,12 @@ List all linkers in the webapp ### Example 2: Get linker by name ```powershell -Get-AzServiceLinkerForWebApp -WebApp servicelinker-webapp -ResourceGroupName servicelinker-test-group -Name postgresql_connection | fl +Get-AzServiceLinkerForWebApp -WebApp servicelinker-webapp -ResourceGroupName servicelinker-test-group -Name postgresql_connection | Format-List ``` ```output AuthInfo : Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Model - s.Api20220501.SecretAuthInfo + s.Api20221101Preview.SecretAuthInfo ClientType : dotnet Id : /subscriptions/00000000-0000-0000-0000-000000000000/re sourceGroups/servicelinker-test-group/providers/ @@ -38,7 +38,7 @@ SystemDataLastModifiedAt : SystemDataLastModifiedBy : SystemDataLastModifiedByType : TargetService : Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Model - s.Api20220501.AzureResource + s.Api20221101Preview.AzureResource Type : microsoft.servicelinker/linkers VNetSolutionType : serviceEndpoint @@ -52,12 +52,12 @@ $identity = @{ ResourceUri = '/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-webapp' LinkerName = 'postgresql_connection'} -$identity | Get-AzServiceLinkerForWebApp |fl +$identity | Get-AzServiceLinkerForWebApp | Format-List ``` ```output AuthInfo : Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Model - s.Api20220501.SecretAuthInfo + s.Api20221101Preview.SecretAuthInfo ClientType : dotnet Id : /subscriptions/00000000-0000-0000-0000-000000000000/re sourceGroups/servicelinker-test-group/providers/ @@ -74,7 +74,7 @@ SystemDataLastModifiedAt : SystemDataLastModifiedBy : SystemDataLastModifiedByType : TargetService : Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Model - s.Api20220501.AzureResource + s.Api20221101Preview.AzureResource Type : microsoft.servicelinker/linkers VNetSolutionType : serviceEndpoint diff --git a/src/ServiceLinker/examples/Test-AzServiceLinkerForContainerApp.md b/src/ServiceLinker/examples/Test-AzServiceLinkerForContainerApp.md index 22cbcd179bdc..e3a3794155e9 100644 --- a/src/ServiceLinker/examples/Test-AzServiceLinkerForContainerApp.md +++ b/src/ServiceLinker/examples/Test-AzServiceLinkerForContainerApp.md @@ -1,6 +1,6 @@ ### Example 1: Test Linker ```powershell -Test-AzServiceLinkerForContainerApp -ContainerApp servicelinker-app -ResourceGroupName servicelinker-test-group -Name postgresql_connection | fl +Test-AzServiceLinkerForContainerApp -ContainerApp servicelinker-app -ResourceGroupName servicelinker-test-group -Name postgresql_connection | Format-List ``` ```output diff --git a/src/ServiceLinker/examples/Test-AzServiceLinkerForSpringCloud.md b/src/ServiceLinker/examples/Test-AzServiceLinkerForSpringCloud.md index 06cbad1e8e96..3228b471cfd4 100644 --- a/src/ServiceLinker/examples/Test-AzServiceLinkerForSpringCloud.md +++ b/src/ServiceLinker/examples/Test-AzServiceLinkerForSpringCloud.md @@ -1,6 +1,6 @@ ### Example 1: Test Linker ```powershell -Test-AzServiceLinkerForSpringCloud -ServiceName servicelinker-springcloud -AppName appconfiguration -DeploymentName "default" -ResourceGroupName servicelinker-test-group -Name postgresql_connection | fl +Test-AzServiceLinkerForSpringCloud -ServiceName servicelinker-springcloud -AppName appconfiguration -DeploymentName "default" -ResourceGroupName servicelinker-test-group -Name postgresql_connection | Format-List ``` ```output diff --git a/src/ServiceLinker/examples/Test-AzServiceLinkerForWebApp.md b/src/ServiceLinker/examples/Test-AzServiceLinkerForWebApp.md index ed9db0172aba..b8380164689c 100644 --- a/src/ServiceLinker/examples/Test-AzServiceLinkerForWebApp.md +++ b/src/ServiceLinker/examples/Test-AzServiceLinkerForWebApp.md @@ -1,6 +1,6 @@ ### Example 1: Test Linker ```powershell -Test-AzServiceLinkerForWebApp -WebApp servicelinker-webapp -ResourceGroupName servicelinker-test-group -Name postgresql_connection | fl +Test-AzServiceLinkerForWebApp -WebApp servicelinker-webapp -ResourceGroupName servicelinker-test-group -Name postgresql_connection | Format-List ``` ```output diff --git a/src/ServiceLinker/exports/Get-AzServiceLinkerConfigurationForContainerApp.ps1 b/src/ServiceLinker/exports/Get-AzServiceLinkerConfigurationForContainerApp.ps1 index 64a123ff62ea..11dba22b0881 100644 --- a/src/ServiceLinker/exports/Get-AzServiceLinkerConfigurationForContainerApp.ps1 +++ b/src/ServiceLinker/exports/Get-AzServiceLinkerConfigurationForContainerApp.ps1 @@ -20,15 +20,15 @@ list source configurations for a linker in container app. .Description list source configurations for a linker in container app. .Example -Get-AzServiceLinkerConfigurationForContainerApp -ContainerApp servicelinker-containerapp -ResourceGroupName servicelinker-test-group -LinkerName postgresql_linker |fl +Get-AzServiceLinkerConfigurationForContainerApp -ContainerApp servicelinker-containerapp -ResourceGroupName servicelinker-test-group -LinkerName postgresql_linker | Format-List .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISourceConfiguration +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISourceConfiguration .Link https://learn.microsoft.com/powershell/module/az.servicelinker/get-azservicelinkerconfigurationforcontainerapp #> function Get-AzServiceLinkerConfigurationForContainerApp { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISourceConfiguration])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISourceConfiguration])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -120,7 +120,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/ServiceLinker/exports/Get-AzServiceLinkerConfigurationForSpringCloud.ps1 b/src/ServiceLinker/exports/Get-AzServiceLinkerConfigurationForSpringCloud.ps1 index 8d838b5767af..793645453462 100644 --- a/src/ServiceLinker/exports/Get-AzServiceLinkerConfigurationForSpringCloud.ps1 +++ b/src/ServiceLinker/exports/Get-AzServiceLinkerConfigurationForSpringCloud.ps1 @@ -20,15 +20,15 @@ list source configurations for a linker in spring cloud. .Description list source configurations for a linker in spring cloud. .Example -Get-AzServiceLinkerConfigurationForSpringCloud -ServiceName servicelinker-springcloud -AppName appconfiguration -ResourceGroupName servicelinker-test-group -LinkerName postgresql_linker |fl +Get-AzServiceLinkerConfigurationForSpringCloud -ServiceName servicelinker-springcloud -AppName appconfiguration -ResourceGroupName servicelinker-test-group -LinkerName postgresql_linker | Format-List .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISourceConfiguration +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISourceConfiguration .Link https://learn.microsoft.com/powershell/module/az.servicelinker/get-azservicelinkerconfigurationforspringcloud #> function Get-AzServiceLinkerConfigurationForSpringCloud { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISourceConfiguration])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISourceConfiguration])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -133,7 +133,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/ServiceLinker/exports/Get-AzServiceLinkerConfigurationForWebApp.ps1 b/src/ServiceLinker/exports/Get-AzServiceLinkerConfigurationForWebApp.ps1 index b3e966083a46..10d69695e35b 100644 --- a/src/ServiceLinker/exports/Get-AzServiceLinkerConfigurationForWebApp.ps1 +++ b/src/ServiceLinker/exports/Get-AzServiceLinkerConfigurationForWebApp.ps1 @@ -20,15 +20,15 @@ list source configurations for a linker in webapp. .Description list source configurations for a linker in webapp. .Example -Get-AzServiceLinkerConfigurationForWebApp -WebApp servicelinker-webapp -ResourceGroupName servicelinker-test-group -LinkerName postgresql_linker |fl +Get-AzServiceLinkerConfigurationForWebApp -WebApp servicelinker-webapp -ResourceGroupName servicelinker-test-group -LinkerName postgresql_linker | Format-List .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISourceConfiguration +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISourceConfiguration .Link https://learn.microsoft.com/powershell/module/az.servicelinker/get-azservicelinkerconfigurationforwebapp #> function Get-AzServiceLinkerConfigurationForWebApp { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISourceConfiguration])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISourceConfiguration])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -120,7 +120,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/ServiceLinker/exports/Get-AzServiceLinkerConfigurationName.ps1 b/src/ServiceLinker/exports/Get-AzServiceLinkerConfigurationName.ps1 new file mode 100644 index 000000000000..ed05175c804e --- /dev/null +++ b/src/ServiceLinker/exports/Get-AzServiceLinkerConfigurationName.ps1 @@ -0,0 +1,166 @@ + +# ---------------------------------------------------------------------------------- +# 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 +Lists the configuration names generated by Service Connector for all target, client types, auth types. +.Description +Lists the configuration names generated by Service Connector for all target, client types, auth types. +.Example +Get-AzServiceLinkerConfigurationName + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameItem +.Link +https://learn.microsoft.com/powershell/module/az.servicelinker/get-azservicelinkerconfigurationname +#> +function Get-AzServiceLinkerConfigurationName { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameItem])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +param( + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Query')] + [System.String] + # OData filter options. + ${Filter}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Query')] + [System.String] + # OData skipToken option for pagination. + ${SkipToken}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + List = 'Az.ServiceLinker.private\Get-AzServiceLinkerConfigurationName_List'; + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/src/ServiceLinker/exports/Get-AzServiceLinkerForContainerApp.ps1 b/src/ServiceLinker/exports/Get-AzServiceLinkerForContainerApp.ps1 index f8178ad6eacc..e94d5ccdac04 100644 --- a/src/ServiceLinker/exports/Get-AzServiceLinkerForContainerApp.ps1 +++ b/src/ServiceLinker/exports/Get-AzServiceLinkerForContainerApp.ps1 @@ -20,34 +20,39 @@ Returns Linker resource for a given name in container app. .Description Returns Linker resource for a given name in container app. .Example -Get-AzServiceLinkerForContainerApp -ContainerApp servicelinker-app -ResourceGroupName servicelinker-test-group -Scope 'simple-hello-world-container' +Get-AzServiceLinkerForContainerApp -ContainerApp servicelinker-app -ResourceGroupName servicelinker-test-group .Example -Get-AzServiceLinkerForContainerApp -ContainerApp servicelinker-app -ResourceGroupName servicelinker-test-group -Name postgresql_connection | fl +Get-AzServiceLinkerForContainerApp -ContainerApp servicelinker-app -ResourceGroupName servicelinker-test-group -Name postgresql_connection | Format-List .Example $identity = @{ ResourceUri = '/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-app' LinkerName = 'postgresql_connection'} -$identity | Get-AzServiceLinkerForContainerApp |fl +$identity | Get-AzServiceLinkerForContainerApp | Format-List .Inputs Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter + [ConnectorName ]: The name of resource. + [DryrunName ]: The name of dryrun. [Id ]: Resource identity path [LinkerName ]: The name Linker resource. + [Location ]: The name of Azure region. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ResourceUri ]: The fully qualified Azure Resource manager identifier of the resource to be connected. + [SubscriptionId ]: The ID of the target subscription. .Link https://learn.microsoft.com/powershell/module/az.servicelinker/get-azservicelinkerforcontainerapp #> function Get-AzServiceLinkerForContainerApp { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='List')] @@ -150,7 +155,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/ServiceLinker/exports/Get-AzServiceLinkerForSpringCloud.ps1 b/src/ServiceLinker/exports/Get-AzServiceLinkerForSpringCloud.ps1 index f0fc6a6990cb..e84477991cff 100644 --- a/src/ServiceLinker/exports/Get-AzServiceLinkerForSpringCloud.ps1 +++ b/src/ServiceLinker/exports/Get-AzServiceLinkerForSpringCloud.ps1 @@ -22,32 +22,37 @@ Returns Linker resource for a given name in spring cloud. .Example Get-AzServiceLinkerForSpringCloud -ServiceName servicelinker-springcloud -AppName appconfiguration -ResourceGroupName servicelinker-test-group -DeploymentName "default" .Example -Get-AzServiceLinkerForSpringCloud -ServiceName servicelinker-springcloud -AppName appconfiguration -DeploymentName "default" -ResourceGroupName servicelinker-test-group -Name postgresql_connection | fl +Get-AzServiceLinkerForSpringCloud -ServiceName servicelinker-springcloud -AppName appconfiguration -DeploymentName "default" -ResourceGroupName servicelinker-test-group -Name postgresql_connection | Format-List .Example $identity = @{ ResourceUri = '/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/appconfiguration/deployments/default' LinkerName = 'postgresql_connection'} -$identity | Get-AzServiceLinkerForSpringCloud |fl +$identity | Get-AzServiceLinkerForSpringCloud | Format-List .Inputs Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter + [ConnectorName ]: The name of resource. + [DryrunName ]: The name of dryrun. [Id ]: Resource identity path [LinkerName ]: The name Linker resource. + [Location ]: The name of Azure region. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ResourceUri ]: The fully qualified Azure Resource manager identifier of the resource to be connected. + [SubscriptionId ]: The ID of the target subscription. .Link https://learn.microsoft.com/powershell/module/az.servicelinker/get-azservicelinkerforspringcloud #> function Get-AzServiceLinkerForSpringCloud { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='List')] @@ -165,7 +170,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/ServiceLinker/exports/Get-AzServiceLinkerForWebApp.ps1 b/src/ServiceLinker/exports/Get-AzServiceLinkerForWebApp.ps1 index c289d5427791..e41a3ea3e230 100644 --- a/src/ServiceLinker/exports/Get-AzServiceLinkerForWebApp.ps1 +++ b/src/ServiceLinker/exports/Get-AzServiceLinkerForWebApp.ps1 @@ -22,32 +22,37 @@ Returns Linker resource for a given name in webapp. .Example Get-AzServiceLinkerForWebApp -WebApp servicelinker-webapp -ResourceGroupName servicelinker-test-group .Example -Get-AzServiceLinkerForWebApp -WebApp servicelinker-webapp -ResourceGroupName servicelinker-test-group -Name postgresql_connection | fl +Get-AzServiceLinkerForWebApp -WebApp servicelinker-webapp -ResourceGroupName servicelinker-test-group -Name postgresql_connection | Format-List .Example $identity = @{ ResourceUri = '/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-webapp' LinkerName = 'postgresql_connection'} -$identity | Get-AzServiceLinkerForWebApp |fl +$identity | Get-AzServiceLinkerForWebApp | Format-List .Inputs Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter + [ConnectorName ]: The name of resource. + [DryrunName ]: The name of dryrun. [Id ]: Resource identity path [LinkerName ]: The name Linker resource. + [Location ]: The name of Azure region. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ResourceUri ]: The fully qualified Azure Resource manager identifier of the resource to be connected. + [SubscriptionId ]: The ID of the target subscription. .Link https://learn.microsoft.com/powershell/module/az.servicelinker/get-azservicelinkerforwebapp #> function Get-AzServiceLinkerForWebApp { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='List')] @@ -150,7 +155,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/ServiceLinker/exports/New-AzServiceLinkerAzureResourceObject.ps1 b/src/ServiceLinker/exports/New-AzServiceLinkerAzureResourceObject.ps1 index 5b9ea86156fd..0c8e16636d7a 100644 --- a/src/ServiceLinker/exports/New-AzServiceLinkerAzureResourceObject.ps1 +++ b/src/ServiceLinker/exports/New-AzServiceLinkerAzureResourceObject.ps1 @@ -23,12 +23,12 @@ Create an in-memory object for AzureResource. New-AzServiceLinkerAzureResourceObject -Id /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/servicelinker-test-group/providers/Microsoft.KeyVault/vaults/servicelinker-test-kv -ConnectAsKubernetesCsiDriver 1 .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.AzureResource +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.AzureResource .Link https://learn.microsoft.com/powershell/module/az.ServiceLinker/new-azservicelinkerazureresourceobject #> function New-AzServiceLinkerAzureResourceObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.AzureResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.AzureResource])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -62,7 +62,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/ServiceLinker/exports/New-AzServiceLinkerConfluentBootstrapServerObject.ps1 b/src/ServiceLinker/exports/New-AzServiceLinkerConfluentBootstrapServerObject.ps1 index 6db49bd353f9..5572210df2ea 100644 --- a/src/ServiceLinker/exports/New-AzServiceLinkerConfluentBootstrapServerObject.ps1 +++ b/src/ServiceLinker/exports/New-AzServiceLinkerConfluentBootstrapServerObject.ps1 @@ -23,12 +23,12 @@ Create an in-memory object for ConfluentBootstrapServer. New-AzServiceLinkerConfluentBootstrapServerObject -Endpoint "pkc-xxxx.eastus.azure.confluent.cloud:9092" .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ConfluentBootstrapServer +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfluentBootstrapServer .Link https://learn.microsoft.com/powershell/module/az.ServiceLinker/new-azservicelinkerconfluentbootstrapserverobject #> function New-AzServiceLinkerConfluentBootstrapServerObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ConfluentBootstrapServer])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfluentBootstrapServer])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -55,7 +55,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/ServiceLinker/exports/New-AzServiceLinkerConfluentSchemaRegistryObject.ps1 b/src/ServiceLinker/exports/New-AzServiceLinkerConfluentSchemaRegistryObject.ps1 index 3b6ed567b51b..a1ea400cb68c 100644 --- a/src/ServiceLinker/exports/New-AzServiceLinkerConfluentSchemaRegistryObject.ps1 +++ b/src/ServiceLinker/exports/New-AzServiceLinkerConfluentSchemaRegistryObject.ps1 @@ -23,12 +23,12 @@ Create an in-memory object for ConfluentSchemaRegistry. New-AzServiceLinkerConfluentSchemaRegistryObject -Endpoint "https://psrc-xxxx.westus2.azure.confluent.cloud" .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ConfluentSchemaRegistry +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfluentSchemaRegistry .Link https://learn.microsoft.com/powershell/module/az.ServiceLinker/new-azservicelinkerconfluentschemaregistryobject #> function New-AzServiceLinkerConfluentSchemaRegistryObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ConfluentSchemaRegistry])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfluentSchemaRegistry])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -55,7 +55,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/ServiceLinker/exports/New-AzServiceLinkerForContainerApp.ps1 b/src/ServiceLinker/exports/New-AzServiceLinkerForContainerApp.ps1 index 1602033c6bd6..5a9091497fd3 100644 --- a/src/ServiceLinker/exports/New-AzServiceLinkerForContainerApp.ps1 +++ b/src/ServiceLinker/exports/New-AzServiceLinkerForContainerApp.ps1 @@ -27,7 +27,7 @@ $authInfo=New-AzServiceLinkerSecretAuthInfoObject -Name testUser -SecretValue ** New-AzServiceLinkerForContainerApp -TargetService $target -AuthInfo $auth -ClientType dotnet -LinkerName testLinker -ContainerApp servicelinker-app -ResourceGroupName servicelinker-test-linux-group -Scope 'simple-hello-world-container' .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource .Notes COMPLEX PARAMETER PROPERTIES @@ -42,7 +42,7 @@ TARGETSERVICE : The target service properties https://learn.microsoft.com/powershell/module/az.servicelinker/new-azservicelinkerforcontainerapp #> function New-AzServiceLinkerForContainerApp { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter()] @@ -67,20 +67,14 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBase] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase] # The authentication type. # To construct, see NOTES section for AUTHINFO properties and create a hash table. ${AuthInfo}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] - [System.String] - # connection scope in source service. - ${Scope}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBase] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase] # The target service properties # To construct, see NOTES section for TARGETSERVICE properties and create a hash table. ${TargetService}, @@ -93,12 +87,84 @@ param( # The application client type ${ClientType}, + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType])] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType] + # Optional, indicate whether to apply configurations on source application. + # If enable, generate configurations and applied to the source application. + # Default is enable. + # If optOut, no configuration change will be made on source. + ${ConfigurationInfoAction}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoAdditionalConfigurations]))] + [System.Collections.Hashtable] + # A dictionary of additional configurations to be added. + # Service will auto generate a set of basic configurations and this property is to full fill more customized configurations + ${ConfigurationInfoAdditionalConfiguration}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoCustomizedKeys]))] + [System.Collections.Hashtable] + # Optional. + # A dictionary of default key name and customized key name mapping. + # If not specified, default key name will be used for generate configurations + ${ConfigurationInfoCustomizedKey}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType])] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType] + # Allow Azure services to access the target service if true. + ${FirewallRuleAzureService}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType])] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType] + # Allow caller client IP to access the target service if true. + # the property is used when connecting local application to target service. + ${FirewallRuleCallerClientIP}, + + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [System.String[]] + # This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client IPs for a given database account. + ${FirewallRuleIPRange}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType])] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType] + # Optional. + # Indicates public network solution. + # If enable, enable public network access of target service with best try. + # Default is enable. + # If optOut, opt out public network access configuration. + ${PublicNetworkSolutionAction}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [System.String] + # connection scope in source service. + ${Scope}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] [System.String] # The key vault id to store secret ${SecretStoreKeyVaultId}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [System.String] + # The key vault secret name to store secret, only valid when storing one secret + ${SecretStoreKeyVaultSecretName}, + [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType])] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] @@ -196,7 +262,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/ServiceLinker/exports/New-AzServiceLinkerForSpringCloud.ps1 b/src/ServiceLinker/exports/New-AzServiceLinkerForSpringCloud.ps1 index 17c75dfdeb05..002048ff2a97 100644 --- a/src/ServiceLinker/exports/New-AzServiceLinkerForSpringCloud.ps1 +++ b/src/ServiceLinker/exports/New-AzServiceLinkerForSpringCloud.ps1 @@ -29,7 +29,7 @@ New-AzServiceLinkerForSpringCloud -TargetService $target -AuthInfo $auth -Client .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource .Notes COMPLEX PARAMETER PROPERTIES @@ -44,7 +44,7 @@ TARGETSERVICE : The target service properties https://learn.microsoft.com/powershell/module/az.servicelinker/new-azservicelinkerforspringcloud #> function New-AzServiceLinkerForSpringCloud { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter()] @@ -69,14 +69,14 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBase] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase] # The authentication type. # To construct, see NOTES section for AUTHINFO properties and create a hash table. ${AuthInfo}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBase] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase] # The target service properties # To construct, see NOTES section for TARGETSERVICE properties and create a hash table. ${TargetService}, @@ -89,6 +89,66 @@ param( # The application client type ${ClientType}, + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType])] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType] + # Optional, indicate whether to apply configurations on source application. + # If enable, generate configurations and applied to the source application. + # Default is enable. + # If optOut, no configuration change will be made on source. + ${ConfigurationInfoAction}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoAdditionalConfigurations]))] + [System.Collections.Hashtable] + # A dictionary of additional configurations to be added. + # Service will auto generate a set of basic configurations and this property is to full fill more customized configurations + ${ConfigurationInfoAdditionalConfiguration}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoCustomizedKeys]))] + [System.Collections.Hashtable] + # Optional. + # A dictionary of default key name and customized key name mapping. + # If not specified, default key name will be used for generate configurations + ${ConfigurationInfoCustomizedKey}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType])] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType] + # Allow Azure services to access the target service if true. + ${FirewallRuleAzureService}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType])] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType] + # Allow caller client IP to access the target service if true. + # the property is used when connecting local application to target service. + ${FirewallRuleCallerClientIP}, + + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [System.String[]] + # This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client IPs for a given database account. + ${FirewallRuleIPRange}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType])] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType] + # Optional. + # Indicates public network solution. + # If enable, enable public network access of target service with best try. + # Default is enable. + # If optOut, opt out public network access configuration. + ${PublicNetworkSolutionAction}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] [System.String] @@ -101,6 +161,12 @@ param( # The key vault id to store secret ${SecretStoreKeyVaultId}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [System.String] + # The key vault secret name to store secret, only valid when storing one secret + ${SecretStoreKeyVaultSecretName}, + [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType])] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] @@ -211,7 +277,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/ServiceLinker/exports/New-AzServiceLinkerForWebApp.ps1 b/src/ServiceLinker/exports/New-AzServiceLinkerForWebApp.ps1 index fc290b985424..466bf4013876 100644 --- a/src/ServiceLinker/exports/New-AzServiceLinkerForWebApp.ps1 +++ b/src/ServiceLinker/exports/New-AzServiceLinkerForWebApp.ps1 @@ -27,7 +27,7 @@ $authInfo=New-AzServiceLinkerSecretAuthInfoObject -Name testUser -SecretValue ** New-AzServiceLinkerForWebApp -TargetService $target -AuthInfo $auth -ClientType dotnet -LinkerName testLinker -WebApp servicelinker-app -ResourceGroupName servicelinker-test-group .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource .Notes COMPLEX PARAMETER PROPERTIES @@ -42,7 +42,7 @@ TARGETSERVICE : The target service properties https://learn.microsoft.com/powershell/module/az.servicelinker/new-azservicelinkerforwebapp #> function New-AzServiceLinkerForWebApp { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter()] @@ -67,14 +67,14 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBase] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase] # The authentication type. # To construct, see NOTES section for AUTHINFO properties and create a hash table. ${AuthInfo}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBase] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase] # The target service properties # To construct, see NOTES section for TARGETSERVICE properties and create a hash table. ${TargetService}, @@ -87,6 +87,66 @@ param( # The application client type ${ClientType}, + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType])] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType] + # Optional, indicate whether to apply configurations on source application. + # If enable, generate configurations and applied to the source application. + # Default is enable. + # If optOut, no configuration change will be made on source. + ${ConfigurationInfoAction}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoAdditionalConfigurations]))] + [System.Collections.Hashtable] + # A dictionary of additional configurations to be added. + # Service will auto generate a set of basic configurations and this property is to full fill more customized configurations + ${ConfigurationInfoAdditionalConfiguration}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoCustomizedKeys]))] + [System.Collections.Hashtable] + # Optional. + # A dictionary of default key name and customized key name mapping. + # If not specified, default key name will be used for generate configurations + ${ConfigurationInfoCustomizedKey}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType])] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType] + # Allow Azure services to access the target service if true. + ${FirewallRuleAzureService}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType])] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType] + # Allow caller client IP to access the target service if true. + # the property is used when connecting local application to target service. + ${FirewallRuleCallerClientIP}, + + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [System.String[]] + # This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client IPs for a given database account. + ${FirewallRuleIPRange}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType])] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType] + # Optional. + # Indicates public network solution. + # If enable, enable public network access of target service with best try. + # Default is enable. + # If optOut, opt out public network access configuration. + ${PublicNetworkSolutionAction}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] [System.String] @@ -99,6 +159,12 @@ param( # The key vault id to store secret ${SecretStoreKeyVaultId}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [System.String] + # The key vault secret name to store secret, only valid when storing one secret + ${SecretStoreKeyVaultSecretName}, + [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType])] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] @@ -197,7 +263,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/ServiceLinker/exports/New-AzServiceLinkerSecretAuthInfoObject.ps1 b/src/ServiceLinker/exports/New-AzServiceLinkerSecretAuthInfoObject.ps1 index 90737ed7ce85..7c394a7b0d60 100644 --- a/src/ServiceLinker/exports/New-AzServiceLinkerSecretAuthInfoObject.ps1 +++ b/src/ServiceLinker/exports/New-AzServiceLinkerSecretAuthInfoObject.ps1 @@ -27,12 +27,12 @@ New-AzServiceLinkerSecretAuthInfoObject -Name user -SecretKeyVaultUri "https://s New-AzServiceLinkerSecretAuthInfoObject -Name user -SecretNameInKeyVault test-secret .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.SecretAuthInfo +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.SecretAuthInfo .Link https://learn.microsoft.com/powershell/module/az.ServiceLinker/new-azservicelinkersecretauthinfoobject #> function New-AzServiceLinkerSecretAuthInfoObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.SecretAuthInfo])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.SecretAuthInfo])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter()] @@ -43,7 +43,7 @@ param( [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretInfoBase] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretInfoBase] # Password or key vault secret for secret auth. # To construct, see NOTES section for SECRETINFO properties and create a hash table. ${SecretInfo}, @@ -84,7 +84,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/ServiceLinker/exports/New-AzServiceLinkerServicePrincipalSecretAuthInfoObject.ps1 b/src/ServiceLinker/exports/New-AzServiceLinkerServicePrincipalSecretAuthInfoObject.ps1 index d0e12925f6e6..d8b4877c36c2 100644 --- a/src/ServiceLinker/exports/New-AzServiceLinkerServicePrincipalSecretAuthInfoObject.ps1 +++ b/src/ServiceLinker/exports/New-AzServiceLinkerServicePrincipalSecretAuthInfoObject.ps1 @@ -23,12 +23,12 @@ Create an in-memory object for ServicePrincipalSecretAuthInfo. New-AzServiceLinkerServicePrincipalSecretAuthInfoObject -ClientId 00000000-0000-0000-0000-000000000000 -PrincipalId 00000000-0000-0000-0000-000000000000 -Secret secret .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ServicePrincipalSecretAuthInfo +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ServicePrincipalSecretAuthInfo .Link https://learn.microsoft.com/powershell/module/az.ServiceLinker/new-azservicelinkerserviceprincipalsecretauthinfoobject #> function New-AzServiceLinkerServicePrincipalSecretAuthInfoObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ServicePrincipalSecretAuthInfo])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ServicePrincipalSecretAuthInfo])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -67,7 +67,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/ServiceLinker/exports/New-AzServiceLinkerSystemAssignedIdentityAuthInfoObject.ps1 b/src/ServiceLinker/exports/New-AzServiceLinkerSystemAssignedIdentityAuthInfoObject.ps1 index 40f4ae092d69..086112f730b1 100644 --- a/src/ServiceLinker/exports/New-AzServiceLinkerSystemAssignedIdentityAuthInfoObject.ps1 +++ b/src/ServiceLinker/exports/New-AzServiceLinkerSystemAssignedIdentityAuthInfoObject.ps1 @@ -23,12 +23,12 @@ Create an in-memory object for SystemAssignedIdentityAuthInfo. New-AzServiceLinkerSystemAssignedIdentityAuthInfoObject .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.SystemAssignedIdentityAuthInfo +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.SystemAssignedIdentityAuthInfo .Link https://learn.microsoft.com/powershell/module/az.ServiceLinker/new-azservicelinkersystemassignedidentityauthinfoobject #> function New-AzServiceLinkerSystemAssignedIdentityAuthInfoObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.SystemAssignedIdentityAuthInfo])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.SystemAssignedIdentityAuthInfo])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(DontShow)] @@ -49,7 +49,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/ServiceLinker/exports/New-AzServiceLinkerUserAssignedIdentityAuthInfoObject.ps1 b/src/ServiceLinker/exports/New-AzServiceLinkerUserAssignedIdentityAuthInfoObject.ps1 index 58d8b44cd8df..060f7937b068 100644 --- a/src/ServiceLinker/exports/New-AzServiceLinkerUserAssignedIdentityAuthInfoObject.ps1 +++ b/src/ServiceLinker/exports/New-AzServiceLinkerUserAssignedIdentityAuthInfoObject.ps1 @@ -23,12 +23,12 @@ Create an in-memory object for UserAssignedIdentityAuthInfo. New-AzServiceLinkerUserAssignedIdentityAuthInfoObject -ClientId 00000000-0000-0000-0000-000000000000 -SubscriptionId 00000000-0000-0000-0000-000000000000 .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.UserAssignedIdentityAuthInfo +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.UserAssignedIdentityAuthInfo .Link https://learn.microsoft.com/powershell/module/az.ServiceLinker/new-azservicelinkeruserassignedidentityauthinfoobject #> function New-AzServiceLinkerUserAssignedIdentityAuthInfoObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.UserAssignedIdentityAuthInfo])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.UserAssignedIdentityAuthInfo])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter()] @@ -61,7 +61,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/ServiceLinker/exports/ProxyCmdletDefinitions.ps1 b/src/ServiceLinker/exports/ProxyCmdletDefinitions.ps1 index 0954dbd53ce2..2bc680499312 100644 --- a/src/ServiceLinker/exports/ProxyCmdletDefinitions.ps1 +++ b/src/ServiceLinker/exports/ProxyCmdletDefinitions.ps1 @@ -14,21 +14,172 @@ # is regenerated. # ---------------------------------------------------------------------------------- +<# +.Synopsis +Lists the configuration names generated by Service Connector for all target, client types, auth types. +.Description +Lists the configuration names generated by Service Connector for all target, client types, auth types. +.Example +Get-AzServiceLinkerConfigurationName + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameItem +.Link +https://learn.microsoft.com/powershell/module/az.servicelinker/get-azservicelinkerconfigurationname +#> +function Get-AzServiceLinkerConfigurationName { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameItem])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +param( + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Query')] + [System.String] + # OData filter options. + ${Filter}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Query')] + [System.String] + # OData skipToken option for pagination. + ${SkipToken}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + List = 'Az.ServiceLinker.private\Get-AzServiceLinkerConfigurationName_List'; + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + <# .Synopsis list source configurations for a linker in container app. .Description list source configurations for a linker in container app. .Example -Get-AzServiceLinkerConfigurationForContainerApp -ContainerApp servicelinker-containerapp -ResourceGroupName servicelinker-test-group -LinkerName postgresql_linker |fl +Get-AzServiceLinkerConfigurationForContainerApp -ContainerApp servicelinker-containerapp -ResourceGroupName servicelinker-test-group -LinkerName postgresql_linker | Format-List .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISourceConfiguration +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISourceConfiguration .Link https://learn.microsoft.com/powershell/module/az.servicelinker/get-azservicelinkerconfigurationforcontainerapp #> function Get-AzServiceLinkerConfigurationForContainerApp { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISourceConfiguration])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISourceConfiguration])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -120,7 +271,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -194,15 +345,15 @@ list source configurations for a linker in spring cloud. .Description list source configurations for a linker in spring cloud. .Example -Get-AzServiceLinkerConfigurationForSpringCloud -ServiceName servicelinker-springcloud -AppName appconfiguration -ResourceGroupName servicelinker-test-group -LinkerName postgresql_linker |fl +Get-AzServiceLinkerConfigurationForSpringCloud -ServiceName servicelinker-springcloud -AppName appconfiguration -ResourceGroupName servicelinker-test-group -LinkerName postgresql_linker | Format-List .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISourceConfiguration +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISourceConfiguration .Link https://learn.microsoft.com/powershell/module/az.servicelinker/get-azservicelinkerconfigurationforspringcloud #> function Get-AzServiceLinkerConfigurationForSpringCloud { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISourceConfiguration])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISourceConfiguration])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -307,7 +458,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -384,15 +535,15 @@ list source configurations for a linker in webapp. .Description list source configurations for a linker in webapp. .Example -Get-AzServiceLinkerConfigurationForWebApp -WebApp servicelinker-webapp -ResourceGroupName servicelinker-test-group -LinkerName postgresql_linker |fl +Get-AzServiceLinkerConfigurationForWebApp -WebApp servicelinker-webapp -ResourceGroupName servicelinker-test-group -LinkerName postgresql_linker | Format-List .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISourceConfiguration +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISourceConfiguration .Link https://learn.microsoft.com/powershell/module/az.servicelinker/get-azservicelinkerconfigurationforwebapp #> function Get-AzServiceLinkerConfigurationForWebApp { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISourceConfiguration])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISourceConfiguration])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -484,7 +635,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -558,34 +709,39 @@ Returns Linker resource for a given name in container app. .Description Returns Linker resource for a given name in container app. .Example -Get-AzServiceLinkerForContainerApp -ContainerApp servicelinker-app -ResourceGroupName servicelinker-test-group -Scope 'simple-hello-world-container' +Get-AzServiceLinkerForContainerApp -ContainerApp servicelinker-app -ResourceGroupName servicelinker-test-group .Example -Get-AzServiceLinkerForContainerApp -ContainerApp servicelinker-app -ResourceGroupName servicelinker-test-group -Name postgresql_connection | fl +Get-AzServiceLinkerForContainerApp -ContainerApp servicelinker-app -ResourceGroupName servicelinker-test-group -Name postgresql_connection | Format-List .Example $identity = @{ ResourceUri = '/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-app' LinkerName = 'postgresql_connection'} -$identity | Get-AzServiceLinkerForContainerApp |fl +$identity | Get-AzServiceLinkerForContainerApp | Format-List .Inputs Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter + [ConnectorName ]: The name of resource. + [DryrunName ]: The name of dryrun. [Id ]: Resource identity path [LinkerName ]: The name Linker resource. + [Location ]: The name of Azure region. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ResourceUri ]: The fully qualified Azure Resource manager identifier of the resource to be connected. + [SubscriptionId ]: The ID of the target subscription. .Link https://learn.microsoft.com/powershell/module/az.servicelinker/get-azservicelinkerforcontainerapp #> function Get-AzServiceLinkerForContainerApp { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='List')] @@ -688,7 +844,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -766,32 +922,37 @@ Returns Linker resource for a given name in spring cloud. .Example Get-AzServiceLinkerForSpringCloud -ServiceName servicelinker-springcloud -AppName appconfiguration -ResourceGroupName servicelinker-test-group -DeploymentName "default" .Example -Get-AzServiceLinkerForSpringCloud -ServiceName servicelinker-springcloud -AppName appconfiguration -DeploymentName "default" -ResourceGroupName servicelinker-test-group -Name postgresql_connection | fl +Get-AzServiceLinkerForSpringCloud -ServiceName servicelinker-springcloud -AppName appconfiguration -DeploymentName "default" -ResourceGroupName servicelinker-test-group -Name postgresql_connection | Format-List .Example $identity = @{ ResourceUri = '/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/appconfiguration/deployments/default' LinkerName = 'postgresql_connection'} -$identity | Get-AzServiceLinkerForSpringCloud |fl +$identity | Get-AzServiceLinkerForSpringCloud | Format-List .Inputs Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter + [ConnectorName ]: The name of resource. + [DryrunName ]: The name of dryrun. [Id ]: Resource identity path [LinkerName ]: The name Linker resource. + [Location ]: The name of Azure region. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ResourceUri ]: The fully qualified Azure Resource manager identifier of the resource to be connected. + [SubscriptionId ]: The ID of the target subscription. .Link https://learn.microsoft.com/powershell/module/az.servicelinker/get-azservicelinkerforspringcloud #> function Get-AzServiceLinkerForSpringCloud { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='List')] @@ -909,7 +1070,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -990,32 +1151,37 @@ Returns Linker resource for a given name in webapp. .Example Get-AzServiceLinkerForWebApp -WebApp servicelinker-webapp -ResourceGroupName servicelinker-test-group .Example -Get-AzServiceLinkerForWebApp -WebApp servicelinker-webapp -ResourceGroupName servicelinker-test-group -Name postgresql_connection | fl +Get-AzServiceLinkerForWebApp -WebApp servicelinker-webapp -ResourceGroupName servicelinker-test-group -Name postgresql_connection | Format-List .Example $identity = @{ ResourceUri = '/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-webapp' LinkerName = 'postgresql_connection'} -$identity | Get-AzServiceLinkerForWebApp |fl +$identity | Get-AzServiceLinkerForWebApp | Format-List .Inputs Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter + [ConnectorName ]: The name of resource. + [DryrunName ]: The name of dryrun. [Id ]: Resource identity path [LinkerName ]: The name Linker resource. + [Location ]: The name of Azure region. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ResourceUri ]: The fully qualified Azure Resource manager identifier of the resource to be connected. + [SubscriptionId ]: The ID of the target subscription. .Link https://learn.microsoft.com/powershell/module/az.servicelinker/get-azservicelinkerforwebapp #> function Get-AzServiceLinkerForWebApp { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='List')] @@ -1118,7 +1284,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -1197,12 +1363,12 @@ Create an in-memory object for AzureResource. New-AzServiceLinkerAzureResourceObject -Id /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/servicelinker-test-group/providers/Microsoft.KeyVault/vaults/servicelinker-test-kv -ConnectAsKubernetesCsiDriver 1 .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.AzureResource +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.AzureResource .Link https://learn.microsoft.com/powershell/module/az.ServiceLinker/new-azservicelinkerazureresourceobject #> function New-AzServiceLinkerAzureResourceObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.AzureResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.AzureResource])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -1236,7 +1402,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -1313,12 +1479,12 @@ Create an in-memory object for ConfluentBootstrapServer. New-AzServiceLinkerConfluentBootstrapServerObject -Endpoint "pkc-xxxx.eastus.azure.confluent.cloud:9092" .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ConfluentBootstrapServer +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfluentBootstrapServer .Link https://learn.microsoft.com/powershell/module/az.ServiceLinker/new-azservicelinkerconfluentbootstrapserverobject #> function New-AzServiceLinkerConfluentBootstrapServerObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ConfluentBootstrapServer])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfluentBootstrapServer])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -1345,7 +1511,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -1422,12 +1588,12 @@ Create an in-memory object for ConfluentSchemaRegistry. New-AzServiceLinkerConfluentSchemaRegistryObject -Endpoint "https://psrc-xxxx.westus2.azure.confluent.cloud" .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ConfluentSchemaRegistry +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfluentSchemaRegistry .Link https://learn.microsoft.com/powershell/module/az.ServiceLinker/new-azservicelinkerconfluentschemaregistryobject #> function New-AzServiceLinkerConfluentSchemaRegistryObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ConfluentSchemaRegistry])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfluentSchemaRegistry])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -1454,7 +1620,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -1535,7 +1701,7 @@ $authInfo=New-AzServiceLinkerSecretAuthInfoObject -Name testUser -SecretValue ** New-AzServiceLinkerForContainerApp -TargetService $target -AuthInfo $auth -ClientType dotnet -LinkerName testLinker -ContainerApp servicelinker-app -ResourceGroupName servicelinker-test-linux-group -Scope 'simple-hello-world-container' .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource .Notes COMPLEX PARAMETER PROPERTIES @@ -1550,7 +1716,7 @@ TARGETSERVICE : The target service properties https://learn.microsoft.com/powershell/module/az.servicelinker/new-azservicelinkerforcontainerapp #> function New-AzServiceLinkerForContainerApp { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter()] @@ -1575,20 +1741,14 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBase] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase] # The authentication type. # To construct, see NOTES section for AUTHINFO properties and create a hash table. ${AuthInfo}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] - [System.String] - # connection scope in source service. - ${Scope}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBase] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase] # The target service properties # To construct, see NOTES section for TARGETSERVICE properties and create a hash table. ${TargetService}, @@ -1601,12 +1761,84 @@ param( # The application client type ${ClientType}, + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType])] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType] + # Optional, indicate whether to apply configurations on source application. + # If enable, generate configurations and applied to the source application. + # Default is enable. + # If optOut, no configuration change will be made on source. + ${ConfigurationInfoAction}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoAdditionalConfigurations]))] + [System.Collections.Hashtable] + # A dictionary of additional configurations to be added. + # Service will auto generate a set of basic configurations and this property is to full fill more customized configurations + ${ConfigurationInfoAdditionalConfiguration}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoCustomizedKeys]))] + [System.Collections.Hashtable] + # Optional. + # A dictionary of default key name and customized key name mapping. + # If not specified, default key name will be used for generate configurations + ${ConfigurationInfoCustomizedKey}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType])] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType] + # Allow Azure services to access the target service if true. + ${FirewallRuleAzureService}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType])] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType] + # Allow caller client IP to access the target service if true. + # the property is used when connecting local application to target service. + ${FirewallRuleCallerClientIP}, + + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [System.String[]] + # This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client IPs for a given database account. + ${FirewallRuleIPRange}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType])] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType] + # Optional. + # Indicates public network solution. + # If enable, enable public network access of target service with best try. + # Default is enable. + # If optOut, opt out public network access configuration. + ${PublicNetworkSolutionAction}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [System.String] + # connection scope in source service. + ${Scope}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] [System.String] # The key vault id to store secret ${SecretStoreKeyVaultId}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [System.String] + # The key vault secret name to store secret, only valid when storing one secret + ${SecretStoreKeyVaultSecretName}, + [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType])] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] @@ -1704,7 +1936,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -1793,7 +2025,7 @@ New-AzServiceLinkerForSpringCloud -TargetService $target -AuthInfo $auth -Client .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource .Notes COMPLEX PARAMETER PROPERTIES @@ -1808,7 +2040,7 @@ TARGETSERVICE : The target service properties https://learn.microsoft.com/powershell/module/az.servicelinker/new-azservicelinkerforspringcloud #> function New-AzServiceLinkerForSpringCloud { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter()] @@ -1833,14 +2065,14 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBase] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase] # The authentication type. # To construct, see NOTES section for AUTHINFO properties and create a hash table. ${AuthInfo}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBase] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase] # The target service properties # To construct, see NOTES section for TARGETSERVICE properties and create a hash table. ${TargetService}, @@ -1853,6 +2085,66 @@ param( # The application client type ${ClientType}, + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType])] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType] + # Optional, indicate whether to apply configurations on source application. + # If enable, generate configurations and applied to the source application. + # Default is enable. + # If optOut, no configuration change will be made on source. + ${ConfigurationInfoAction}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoAdditionalConfigurations]))] + [System.Collections.Hashtable] + # A dictionary of additional configurations to be added. + # Service will auto generate a set of basic configurations and this property is to full fill more customized configurations + ${ConfigurationInfoAdditionalConfiguration}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoCustomizedKeys]))] + [System.Collections.Hashtable] + # Optional. + # A dictionary of default key name and customized key name mapping. + # If not specified, default key name will be used for generate configurations + ${ConfigurationInfoCustomizedKey}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType])] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType] + # Allow Azure services to access the target service if true. + ${FirewallRuleAzureService}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType])] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType] + # Allow caller client IP to access the target service if true. + # the property is used when connecting local application to target service. + ${FirewallRuleCallerClientIP}, + + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [System.String[]] + # This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client IPs for a given database account. + ${FirewallRuleIPRange}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType])] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType] + # Optional. + # Indicates public network solution. + # If enable, enable public network access of target service with best try. + # Default is enable. + # If optOut, opt out public network access configuration. + ${PublicNetworkSolutionAction}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] [System.String] @@ -1865,6 +2157,12 @@ param( # The key vault id to store secret ${SecretStoreKeyVaultId}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [System.String] + # The key vault secret name to store secret, only valid when storing one secret + ${SecretStoreKeyVaultSecretName}, + [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType])] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] @@ -1975,7 +2273,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -2065,7 +2363,7 @@ $authInfo=New-AzServiceLinkerSecretAuthInfoObject -Name testUser -SecretValue ** New-AzServiceLinkerForWebApp -TargetService $target -AuthInfo $auth -ClientType dotnet -LinkerName testLinker -WebApp servicelinker-app -ResourceGroupName servicelinker-test-group .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource .Notes COMPLEX PARAMETER PROPERTIES @@ -2080,7 +2378,7 @@ TARGETSERVICE : The target service properties https://learn.microsoft.com/powershell/module/az.servicelinker/new-azservicelinkerforwebapp #> function New-AzServiceLinkerForWebApp { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter()] @@ -2105,14 +2403,14 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBase] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase] # The authentication type. # To construct, see NOTES section for AUTHINFO properties and create a hash table. ${AuthInfo}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBase] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase] # The target service properties # To construct, see NOTES section for TARGETSERVICE properties and create a hash table. ${TargetService}, @@ -2125,6 +2423,66 @@ param( # The application client type ${ClientType}, + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType])] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType] + # Optional, indicate whether to apply configurations on source application. + # If enable, generate configurations and applied to the source application. + # Default is enable. + # If optOut, no configuration change will be made on source. + ${ConfigurationInfoAction}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoAdditionalConfigurations]))] + [System.Collections.Hashtable] + # A dictionary of additional configurations to be added. + # Service will auto generate a set of basic configurations and this property is to full fill more customized configurations + ${ConfigurationInfoAdditionalConfiguration}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoCustomizedKeys]))] + [System.Collections.Hashtable] + # Optional. + # A dictionary of default key name and customized key name mapping. + # If not specified, default key name will be used for generate configurations + ${ConfigurationInfoCustomizedKey}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType])] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType] + # Allow Azure services to access the target service if true. + ${FirewallRuleAzureService}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType])] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType] + # Allow caller client IP to access the target service if true. + # the property is used when connecting local application to target service. + ${FirewallRuleCallerClientIP}, + + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [System.String[]] + # This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client IPs for a given database account. + ${FirewallRuleIPRange}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType])] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType] + # Optional. + # Indicates public network solution. + # If enable, enable public network access of target service with best try. + # Default is enable. + # If optOut, opt out public network access configuration. + ${PublicNetworkSolutionAction}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] [System.String] @@ -2137,6 +2495,12 @@ param( # The key vault id to store secret ${SecretStoreKeyVaultId}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [System.String] + # The key vault secret name to store secret, only valid when storing one secret + ${SecretStoreKeyVaultSecretName}, + [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType])] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] @@ -2235,7 +2599,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -2322,12 +2686,12 @@ New-AzServiceLinkerSecretAuthInfoObject -Name user -SecretKeyVaultUri "https://s New-AzServiceLinkerSecretAuthInfoObject -Name user -SecretNameInKeyVault test-secret .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.SecretAuthInfo +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.SecretAuthInfo .Link https://learn.microsoft.com/powershell/module/az.ServiceLinker/new-azservicelinkersecretauthinfoobject #> function New-AzServiceLinkerSecretAuthInfoObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.SecretAuthInfo])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.SecretAuthInfo])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter()] @@ -2338,7 +2702,7 @@ param( [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretInfoBase] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretInfoBase] # Password or key vault secret for secret auth. # To construct, see NOTES section for SECRETINFO properties and create a hash table. ${SecretInfo}, @@ -2379,7 +2743,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -2456,12 +2820,12 @@ Create an in-memory object for ServicePrincipalSecretAuthInfo. New-AzServiceLinkerServicePrincipalSecretAuthInfoObject -ClientId 00000000-0000-0000-0000-000000000000 -PrincipalId 00000000-0000-0000-0000-000000000000 -Secret secret .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ServicePrincipalSecretAuthInfo +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ServicePrincipalSecretAuthInfo .Link https://learn.microsoft.com/powershell/module/az.ServiceLinker/new-azservicelinkerserviceprincipalsecretauthinfoobject #> function New-AzServiceLinkerServicePrincipalSecretAuthInfoObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ServicePrincipalSecretAuthInfo])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ServicePrincipalSecretAuthInfo])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -2500,7 +2864,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -2577,12 +2941,12 @@ Create an in-memory object for SystemAssignedIdentityAuthInfo. New-AzServiceLinkerSystemAssignedIdentityAuthInfoObject .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.SystemAssignedIdentityAuthInfo +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.SystemAssignedIdentityAuthInfo .Link https://learn.microsoft.com/powershell/module/az.ServiceLinker/new-azservicelinkersystemassignedidentityauthinfoobject #> function New-AzServiceLinkerSystemAssignedIdentityAuthInfoObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.SystemAssignedIdentityAuthInfo])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.SystemAssignedIdentityAuthInfo])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(DontShow)] @@ -2603,7 +2967,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -2680,12 +3044,12 @@ Create an in-memory object for UserAssignedIdentityAuthInfo. New-AzServiceLinkerUserAssignedIdentityAuthInfoObject -ClientId 00000000-0000-0000-0000-000000000000 -SubscriptionId 00000000-0000-0000-0000-000000000000 .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.UserAssignedIdentityAuthInfo +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.UserAssignedIdentityAuthInfo .Link https://learn.microsoft.com/powershell/module/az.ServiceLinker/new-azservicelinkeruserassignedidentityauthinfoobject #> function New-AzServiceLinkerUserAssignedIdentityAuthInfoObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.UserAssignedIdentityAuthInfo])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.UserAssignedIdentityAuthInfo])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter()] @@ -2718,7 +3082,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -2804,9 +3168,14 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter + [ConnectorName ]: The name of resource. + [DryrunName ]: The name of dryrun. [Id ]: Resource identity path [LinkerName ]: The name Linker resource. + [Location ]: The name of Azure region. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ResourceUri ]: The fully qualified Azure Resource manager identifier of the resource to be connected. + [SubscriptionId ]: The ID of the target subscription. .Link https://learn.microsoft.com/powershell/module/az.servicelinker/remove-azservicelinkerforcontainerapp #> @@ -2929,7 +3298,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -3016,13 +3385,18 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter + [ConnectorName ]: The name of resource. + [DryrunName ]: The name of dryrun. [Id ]: Resource identity path [LinkerName ]: The name Linker resource. + [Location ]: The name of Azure region. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ResourceUri ]: The fully qualified Azure Resource manager identifier of the resource to be connected. + [SubscriptionId ]: The ID of the target subscription. .Link https://learn.microsoft.com/powershell/module/az.servicelinker/remove-azservicelinkerforspringcloud #> -function Remove-AzServiceLinkerForSpringcloud { +function Remove-AzServiceLinkerForSpringCloud { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( @@ -3154,7 +3528,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -3171,8 +3545,8 @@ begin { } $mapping = @{ - Delete = 'Az.ServiceLinker.custom\Remove-AzServiceLinkerForSpringcloud'; - DeleteViaIdentity = 'Az.ServiceLinker.custom\Remove-AzServiceLinkerForSpringcloud'; + Delete = 'Az.ServiceLinker.custom\Remove-AzServiceLinkerForSpringCloud'; + DeleteViaIdentity = 'Az.ServiceLinker.custom\Remove-AzServiceLinkerForSpringCloud'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('DeploymentName')) { $PSBoundParameters['DeploymentName'] = "default" @@ -3244,9 +3618,14 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter + [ConnectorName ]: The name of resource. + [DryrunName ]: The name of dryrun. [Id ]: Resource identity path [LinkerName ]: The name Linker resource. + [Location ]: The name of Azure region. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ResourceUri ]: The fully qualified Azure Resource manager identifier of the resource to be connected. + [SubscriptionId ]: The ID of the target subscription. .Link https://learn.microsoft.com/powershell/module/az.servicelinker/remove-azservicelinkerforwebapp #> @@ -3369,7 +3748,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -3444,26 +3823,31 @@ Validate a link. .Description Validate a link in container app. .Example -Test-AzServiceLinkerForContainerApp -ContainerApp servicelinker-app -ResourceGroupName servicelinker-test-group -Name postgresql_connection | fl +Test-AzServiceLinkerForContainerApp -ContainerApp servicelinker-app -ResourceGroupName servicelinker-test-group -Name postgresql_connection | Format-List .Inputs Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResult +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResult .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter + [ConnectorName ]: The name of resource. + [DryrunName ]: The name of dryrun. [Id ]: Resource identity path [LinkerName ]: The name Linker resource. + [Location ]: The name of Azure region. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ResourceUri ]: The fully qualified Azure Resource manager identifier of the resource to be connected. + [SubscriptionId ]: The ID of the target subscription. .Link https://learn.microsoft.com/powershell/module/az.servicelinker/test-azservicelinkerforcontainerapp #> function Test-AzServiceLinkerForContainerApp { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResult])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResult])] [CmdletBinding(DefaultParameterSetName='Validate', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Validate', Mandatory)] @@ -3575,7 +3959,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -3650,26 +4034,31 @@ Validate a link in spring cloud. .Description Validate a link in spring cloud. .Example -Test-AzServiceLinkerForSpringCloud -ServiceName servicelinker-springcloud -AppName appconfiguration -DeploymentName "default" -ResourceGroupName servicelinker-test-group -Name postgresql_connection | fl +Test-AzServiceLinkerForSpringCloud -ServiceName servicelinker-springcloud -AppName appconfiguration -DeploymentName "default" -ResourceGroupName servicelinker-test-group -Name postgresql_connection | Format-List .Inputs Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResult +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResult .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter + [ConnectorName ]: The name of resource. + [DryrunName ]: The name of dryrun. [Id ]: Resource identity path [LinkerName ]: The name Linker resource. + [Location ]: The name of Azure region. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ResourceUri ]: The fully qualified Azure Resource manager identifier of the resource to be connected. + [SubscriptionId ]: The ID of the target subscription. .Link https://learn.microsoft.com/powershell/module/az.servicelinker/test-azservicelinkerforspringcloud #> function Test-AzServiceLinkerForSpringCloud { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResult])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResult])] [CmdletBinding(DefaultParameterSetName='Validate', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Validate', Mandatory)] @@ -3794,7 +4183,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -3872,26 +4261,31 @@ Validate a link in webapp. .Description Validate a link in webapp. .Example -Test-AzServiceLinkerForWebApp -WebApp servicelinker-webapp -ResourceGroupName servicelinker-test-group -Name postgresql_connection | fl +Test-AzServiceLinkerForWebApp -WebApp servicelinker-webapp -ResourceGroupName servicelinker-test-group -Name postgresql_connection | Format-List .Inputs Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResult +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResult .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter + [ConnectorName ]: The name of resource. + [DryrunName ]: The name of dryrun. [Id ]: Resource identity path [LinkerName ]: The name Linker resource. + [Location ]: The name of Azure region. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ResourceUri ]: The fully qualified Azure Resource manager identifier of the resource to be connected. + [SubscriptionId ]: The ID of the target subscription. .Link https://learn.microsoft.com/powershell/module/az.servicelinker/test-azservicelinkerforwebapp #> function Test-AzServiceLinkerForWebApp { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResult])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResult])] [CmdletBinding(DefaultParameterSetName='Validate', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Validate', Mandatory)] @@ -4003,7 +4397,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -4085,7 +4479,7 @@ Update-AzServiceLinkerForContainerApp -ResourceGroupName servicelinker-test-linu .Inputs Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource .Notes COMPLEX PARAMETER PROPERTIES @@ -4095,9 +4489,14 @@ AUTHINFO : The authentication type. AuthType : The authentication type. INPUTOBJECT : Identity Parameter + [ConnectorName ]: The name of resource. + [DryrunName ]: The name of dryrun. [Id ]: Resource identity path [LinkerName ]: The name Linker resource. + [Location ]: The name of Azure region. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ResourceUri ]: The fully qualified Azure Resource manager identifier of the resource to be connected. + [SubscriptionId ]: The ID of the target subscription. TARGETSERVICE : The target service properties Type : The target service type. @@ -4105,7 +4504,7 @@ TARGETSERVICE : The target service properties https://learn.microsoft.com/powershell/module/az.servicelinker/update-azservicelinkerforcontainerapp #> function Update-AzServiceLinkerForContainerApp { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -4136,7 +4535,7 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBase] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase] # The authentication type. # To construct, see NOTES section for AUTHINFO properties and create a hash table. ${AuthInfo}, @@ -4156,7 +4555,7 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBase] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase] # The target service properties # To construct, see NOTES section for TARGETSERVICE properties and create a hash table. ${TargetService}, @@ -4263,7 +4662,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -4345,7 +4744,7 @@ Update-AzServiceLinkerForSpringCloud -ServiceName servicelinker-springcloud -App .Inputs Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource .Notes COMPLEX PARAMETER PROPERTIES @@ -4355,9 +4754,14 @@ AUTHINFO : The authentication type. AuthType : The authentication type. INPUTOBJECT : Identity Parameter + [ConnectorName ]: The name of resource. + [DryrunName ]: The name of dryrun. [Id ]: Resource identity path [LinkerName ]: The name Linker resource. + [Location ]: The name of Azure region. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ResourceUri ]: The fully qualified Azure Resource manager identifier of the resource to be connected. + [SubscriptionId ]: The ID of the target subscription. TARGETSERVICE : The target service properties Type : The target service type. @@ -4365,7 +4769,7 @@ TARGETSERVICE : The target service properties https://learn.microsoft.com/powershell/module/az.servicelinker/update-azservicelinkerforspringcloud #> function Update-AzServiceLinkerForSpringCloud { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -4396,7 +4800,7 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBase] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase] # The authentication type. # To construct, see NOTES section for AUTHINFO properties and create a hash table. ${AuthInfo}, @@ -4410,7 +4814,7 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBase] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase] # The target service properties # To construct, see NOTES section for TARGETSERVICE properties and create a hash table. ${TargetService}, @@ -4536,7 +4940,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -4621,7 +5025,7 @@ Update-AzServiceLinkerForWebApp -ResourceGroupName servicelinker-test-linux-grou .Inputs Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource .Notes COMPLEX PARAMETER PROPERTIES @@ -4631,9 +5035,14 @@ AUTHINFO : The authentication type. AuthType : The authentication type. INPUTOBJECT : Identity Parameter + [ConnectorName ]: The name of resource. + [DryrunName ]: The name of dryrun. [Id ]: Resource identity path [LinkerName ]: The name Linker resource. + [Location ]: The name of Azure region. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ResourceUri ]: The fully qualified Azure Resource manager identifier of the resource to be connected. + [SubscriptionId ]: The ID of the target subscription. TARGETSERVICE : The target service properties Type : The target service type. @@ -4641,7 +5050,7 @@ TARGETSERVICE : The target service properties https://learn.microsoft.com/powershell/module/az.servicelinker/update-azservicelinkerforwebapp #> function Update-AzServiceLinkerForWebApp { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -4672,7 +5081,7 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBase] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase] # The authentication type. # To construct, see NOTES section for AUTHINFO properties and create a hash table. ${AuthInfo}, @@ -4686,7 +5095,7 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBase] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase] # The target service properties # To construct, see NOTES section for TARGETSERVICE properties and create a hash table. ${TargetService}, @@ -4799,7 +5208,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/ServiceLinker/exports/README.md b/src/ServiceLinker/exports/README.md index 0e8209403a94..b5959c261318 100644 --- a/src/ServiceLinker/exports/README.md +++ b/src/ServiceLinker/exports/README.md @@ -1,5 +1,5 @@ # Exports -This directory contains the cmdlets *exported by* `Az.ServiceLinker`. No other cmdlets in this repository are directly exported. What that means is the `Az.ServiceLinker` module will run [Export-ModuleMember](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/export-modulemember) on the cmldets in this directory. The cmdlets in this directory are generated at **build-time**. Do not put any custom code, files, cmdlets, etc. into this directory. Please use `..\custom` for all custom implementation. +This directory contains the cmdlets *exported by* `Az.ServiceLinker`. No other cmdlets in this repository are directly exported. What that means is the `Az.ServiceLinker` module will run [Export-ModuleMember](https://docs.microsoft.com/powershell/module/microsoft.powershell.core/export-modulemember) on the cmldets in this directory. The cmdlets in this directory are generated at **build-time**. Do not put any custom code, files, cmdlets, etc. into this directory. Please use `..\custom` for all custom implementation. ## Info - Modifiable: no diff --git a/src/ServiceLinker/exports/Remove-AzServiceLinkerForContainerApp.ps1 b/src/ServiceLinker/exports/Remove-AzServiceLinkerForContainerApp.ps1 index 8c5f3a172456..bd53094bbf2a 100644 --- a/src/ServiceLinker/exports/Remove-AzServiceLinkerForContainerApp.ps1 +++ b/src/ServiceLinker/exports/Remove-AzServiceLinkerForContainerApp.ps1 @@ -32,9 +32,14 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter + [ConnectorName ]: The name of resource. + [DryrunName ]: The name of dryrun. [Id ]: Resource identity path [LinkerName ]: The name Linker resource. + [Location ]: The name of Azure region. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ResourceUri ]: The fully qualified Azure Resource manager identifier of the resource to be connected. + [SubscriptionId ]: The ID of the target subscription. .Link https://learn.microsoft.com/powershell/module/az.servicelinker/remove-azservicelinkerforcontainerapp #> @@ -157,7 +162,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/ServiceLinker/exports/Remove-AzServiceLinkerForSpringcloud.ps1 b/src/ServiceLinker/exports/Remove-AzServiceLinkerForSpringcloud.ps1 index a6c4834503c0..3a96123afb66 100644 --- a/src/ServiceLinker/exports/Remove-AzServiceLinkerForSpringcloud.ps1 +++ b/src/ServiceLinker/exports/Remove-AzServiceLinkerForSpringcloud.ps1 @@ -32,13 +32,18 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter + [ConnectorName ]: The name of resource. + [DryrunName ]: The name of dryrun. [Id ]: Resource identity path [LinkerName ]: The name Linker resource. + [Location ]: The name of Azure region. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ResourceUri ]: The fully qualified Azure Resource manager identifier of the resource to be connected. + [SubscriptionId ]: The ID of the target subscription. .Link https://learn.microsoft.com/powershell/module/az.servicelinker/remove-azservicelinkerforspringcloud #> -function Remove-AzServiceLinkerForSpringcloud { +function Remove-AzServiceLinkerForSpringCloud { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( @@ -170,7 +175,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -187,8 +192,8 @@ begin { } $mapping = @{ - Delete = 'Az.ServiceLinker.custom\Remove-AzServiceLinkerForSpringcloud'; - DeleteViaIdentity = 'Az.ServiceLinker.custom\Remove-AzServiceLinkerForSpringcloud'; + Delete = 'Az.ServiceLinker.custom\Remove-AzServiceLinkerForSpringCloud'; + DeleteViaIdentity = 'Az.ServiceLinker.custom\Remove-AzServiceLinkerForSpringCloud'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('DeploymentName')) { $PSBoundParameters['DeploymentName'] = "default" diff --git a/src/ServiceLinker/exports/Remove-AzServiceLinkerForWebApp.ps1 b/src/ServiceLinker/exports/Remove-AzServiceLinkerForWebApp.ps1 index d134c141c3d7..47b0b4d439a6 100644 --- a/src/ServiceLinker/exports/Remove-AzServiceLinkerForWebApp.ps1 +++ b/src/ServiceLinker/exports/Remove-AzServiceLinkerForWebApp.ps1 @@ -32,9 +32,14 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter + [ConnectorName ]: The name of resource. + [DryrunName ]: The name of dryrun. [Id ]: Resource identity path [LinkerName ]: The name Linker resource. + [Location ]: The name of Azure region. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ResourceUri ]: The fully qualified Azure Resource manager identifier of the resource to be connected. + [SubscriptionId ]: The ID of the target subscription. .Link https://learn.microsoft.com/powershell/module/az.servicelinker/remove-azservicelinkerforwebapp #> @@ -157,7 +162,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/ServiceLinker/exports/Test-AzServiceLinkerForContainerApp.ps1 b/src/ServiceLinker/exports/Test-AzServiceLinkerForContainerApp.ps1 index 0f8189166a84..fc287a854354 100644 --- a/src/ServiceLinker/exports/Test-AzServiceLinkerForContainerApp.ps1 +++ b/src/ServiceLinker/exports/Test-AzServiceLinkerForContainerApp.ps1 @@ -20,26 +20,31 @@ Validate a link. .Description Validate a link in container app. .Example -Test-AzServiceLinkerForContainerApp -ContainerApp servicelinker-app -ResourceGroupName servicelinker-test-group -Name postgresql_connection | fl +Test-AzServiceLinkerForContainerApp -ContainerApp servicelinker-app -ResourceGroupName servicelinker-test-group -Name postgresql_connection | Format-List .Inputs Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResult +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResult .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter + [ConnectorName ]: The name of resource. + [DryrunName ]: The name of dryrun. [Id ]: Resource identity path [LinkerName ]: The name Linker resource. + [Location ]: The name of Azure region. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ResourceUri ]: The fully qualified Azure Resource manager identifier of the resource to be connected. + [SubscriptionId ]: The ID of the target subscription. .Link https://learn.microsoft.com/powershell/module/az.servicelinker/test-azservicelinkerforcontainerapp #> function Test-AzServiceLinkerForContainerApp { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResult])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResult])] [CmdletBinding(DefaultParameterSetName='Validate', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Validate', Mandatory)] @@ -151,7 +156,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/ServiceLinker/exports/Test-AzServiceLinkerForSpringCloud.ps1 b/src/ServiceLinker/exports/Test-AzServiceLinkerForSpringCloud.ps1 index 92d1e06c7e7e..314052d71cef 100644 --- a/src/ServiceLinker/exports/Test-AzServiceLinkerForSpringCloud.ps1 +++ b/src/ServiceLinker/exports/Test-AzServiceLinkerForSpringCloud.ps1 @@ -20,26 +20,31 @@ Validate a link in spring cloud. .Description Validate a link in spring cloud. .Example -Test-AzServiceLinkerForSpringCloud -ServiceName servicelinker-springcloud -AppName appconfiguration -DeploymentName "default" -ResourceGroupName servicelinker-test-group -Name postgresql_connection | fl +Test-AzServiceLinkerForSpringCloud -ServiceName servicelinker-springcloud -AppName appconfiguration -DeploymentName "default" -ResourceGroupName servicelinker-test-group -Name postgresql_connection | Format-List .Inputs Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResult +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResult .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter + [ConnectorName ]: The name of resource. + [DryrunName ]: The name of dryrun. [Id ]: Resource identity path [LinkerName ]: The name Linker resource. + [Location ]: The name of Azure region. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ResourceUri ]: The fully qualified Azure Resource manager identifier of the resource to be connected. + [SubscriptionId ]: The ID of the target subscription. .Link https://learn.microsoft.com/powershell/module/az.servicelinker/test-azservicelinkerforspringcloud #> function Test-AzServiceLinkerForSpringCloud { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResult])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResult])] [CmdletBinding(DefaultParameterSetName='Validate', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Validate', Mandatory)] @@ -164,7 +169,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/ServiceLinker/exports/Test-AzServiceLinkerForWebApp.ps1 b/src/ServiceLinker/exports/Test-AzServiceLinkerForWebApp.ps1 index 7fb498ab8206..fd51648c9d16 100644 --- a/src/ServiceLinker/exports/Test-AzServiceLinkerForWebApp.ps1 +++ b/src/ServiceLinker/exports/Test-AzServiceLinkerForWebApp.ps1 @@ -20,26 +20,31 @@ Validate a link in webapp. .Description Validate a link in webapp. .Example -Test-AzServiceLinkerForWebApp -WebApp servicelinker-webapp -ResourceGroupName servicelinker-test-group -Name postgresql_connection | fl +Test-AzServiceLinkerForWebApp -WebApp servicelinker-webapp -ResourceGroupName servicelinker-test-group -Name postgresql_connection | Format-List .Inputs Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResult +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResult .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter + [ConnectorName ]: The name of resource. + [DryrunName ]: The name of dryrun. [Id ]: Resource identity path [LinkerName ]: The name Linker resource. + [Location ]: The name of Azure region. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ResourceUri ]: The fully qualified Azure Resource manager identifier of the resource to be connected. + [SubscriptionId ]: The ID of the target subscription. .Link https://learn.microsoft.com/powershell/module/az.servicelinker/test-azservicelinkerforwebapp #> function Test-AzServiceLinkerForWebApp { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResult])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResult])] [CmdletBinding(DefaultParameterSetName='Validate', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Validate', Mandatory)] @@ -151,7 +156,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/ServiceLinker/exports/Update-AzServiceLinkerForContainerApp.ps1 b/src/ServiceLinker/exports/Update-AzServiceLinkerForContainerApp.ps1 index 786cd437ae65..f7d39bf04742 100644 --- a/src/ServiceLinker/exports/Update-AzServiceLinkerForContainerApp.ps1 +++ b/src/ServiceLinker/exports/Update-AzServiceLinkerForContainerApp.ps1 @@ -27,7 +27,7 @@ Update-AzServiceLinkerForContainerApp -ResourceGroupName servicelinker-test-linu .Inputs Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource .Notes COMPLEX PARAMETER PROPERTIES @@ -37,9 +37,14 @@ AUTHINFO : The authentication type. AuthType : The authentication type. INPUTOBJECT : Identity Parameter + [ConnectorName ]: The name of resource. + [DryrunName ]: The name of dryrun. [Id ]: Resource identity path [LinkerName ]: The name Linker resource. + [Location ]: The name of Azure region. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ResourceUri ]: The fully qualified Azure Resource manager identifier of the resource to be connected. + [SubscriptionId ]: The ID of the target subscription. TARGETSERVICE : The target service properties Type : The target service type. @@ -47,7 +52,7 @@ TARGETSERVICE : The target service properties https://learn.microsoft.com/powershell/module/az.servicelinker/update-azservicelinkerforcontainerapp #> function Update-AzServiceLinkerForContainerApp { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -78,7 +83,7 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBase] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase] # The authentication type. # To construct, see NOTES section for AUTHINFO properties and create a hash table. ${AuthInfo}, @@ -98,7 +103,7 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBase] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase] # The target service properties # To construct, see NOTES section for TARGETSERVICE properties and create a hash table. ${TargetService}, @@ -205,7 +210,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/ServiceLinker/exports/Update-AzServiceLinkerForSpringCloud.ps1 b/src/ServiceLinker/exports/Update-AzServiceLinkerForSpringCloud.ps1 index baa31322a1cf..20359e2976a3 100644 --- a/src/ServiceLinker/exports/Update-AzServiceLinkerForSpringCloud.ps1 +++ b/src/ServiceLinker/exports/Update-AzServiceLinkerForSpringCloud.ps1 @@ -27,7 +27,7 @@ Update-AzServiceLinkerForSpringCloud -ServiceName servicelinker-springcloud -App .Inputs Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource .Notes COMPLEX PARAMETER PROPERTIES @@ -37,9 +37,14 @@ AUTHINFO : The authentication type. AuthType : The authentication type. INPUTOBJECT : Identity Parameter + [ConnectorName ]: The name of resource. + [DryrunName ]: The name of dryrun. [Id ]: Resource identity path [LinkerName ]: The name Linker resource. + [Location ]: The name of Azure region. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ResourceUri ]: The fully qualified Azure Resource manager identifier of the resource to be connected. + [SubscriptionId ]: The ID of the target subscription. TARGETSERVICE : The target service properties Type : The target service type. @@ -47,7 +52,7 @@ TARGETSERVICE : The target service properties https://learn.microsoft.com/powershell/module/az.servicelinker/update-azservicelinkerforspringcloud #> function Update-AzServiceLinkerForSpringCloud { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -78,7 +83,7 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBase] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase] # The authentication type. # To construct, see NOTES section for AUTHINFO properties and create a hash table. ${AuthInfo}, @@ -92,7 +97,7 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBase] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase] # The target service properties # To construct, see NOTES section for TARGETSERVICE properties and create a hash table. ${TargetService}, @@ -218,7 +223,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/ServiceLinker/exports/Update-AzServiceLinkerForWebApp.ps1 b/src/ServiceLinker/exports/Update-AzServiceLinkerForWebApp.ps1 index ecf820f60d13..291e4e65ef22 100644 --- a/src/ServiceLinker/exports/Update-AzServiceLinkerForWebApp.ps1 +++ b/src/ServiceLinker/exports/Update-AzServiceLinkerForWebApp.ps1 @@ -27,7 +27,7 @@ Update-AzServiceLinkerForWebApp -ResourceGroupName servicelinker-test-linux-grou .Inputs Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource .Notes COMPLEX PARAMETER PROPERTIES @@ -37,9 +37,14 @@ AUTHINFO : The authentication type. AuthType : The authentication type. INPUTOBJECT : Identity Parameter + [ConnectorName ]: The name of resource. + [DryrunName ]: The name of dryrun. [Id ]: Resource identity path [LinkerName ]: The name Linker resource. + [Location ]: The name of Azure region. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ResourceUri ]: The fully qualified Azure Resource manager identifier of the resource to be connected. + [SubscriptionId ]: The ID of the target subscription. TARGETSERVICE : The target service properties Type : The target service type. @@ -47,7 +52,7 @@ TARGETSERVICE : The target service properties https://learn.microsoft.com/powershell/module/az.servicelinker/update-azservicelinkerforwebapp #> function Update-AzServiceLinkerForWebApp { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -78,7 +83,7 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBase] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase] # The authentication type. # To construct, see NOTES section for AUTHINFO properties and create a hash table. ${AuthInfo}, @@ -92,7 +97,7 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBase] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase] # The target service properties # To construct, see NOTES section for TARGETSERVICE properties and create a hash table. ${TargetService}, @@ -205,7 +210,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/ServiceLinker/generate-info.json b/src/ServiceLinker/generate-info.json index d1cc7510b40b..2977747ab846 100644 --- a/src/ServiceLinker/generate-info.json +++ b/src/ServiceLinker/generate-info.json @@ -1,8 +1,8 @@ { + "swagger_commit": "71e8a754d34d1af32bf81f23445f286422ca4c40", "node": "v14.15.5", "autorest": "`-- (empty)", - "autorest_powershell": "3.0.486", - "swagger_commit": "4fd842fb73656039ec94ce367bcedee25a57bd18", + "autorest_core": "3.9.4", "autorest_modelerfour": "4.15.414", - "autorest_core": "3.8.4" + "autorest_powershell": "3.0.498" } diff --git a/src/ServiceLinker/generated/Module.cs b/src/ServiceLinker/generated/Module.cs index 3180a673488b..a29bb8cbd72d 100644 --- a/src/ServiceLinker/generated/Module.cs +++ b/src/ServiceLinker/generated/Module.cs @@ -125,7 +125,7 @@ public void Init() /// Creates the module instance. private Module() { - /// constructor + // constructor ClientAPI = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ServiceLinker(); _handler.Proxy = _webProxy; _pipeline = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.HttpPipeline(new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.HttpClientFactory(new global::System.Net.Http.HttpClient())); diff --git a/src/ServiceLinker/generated/api/Models/Any.PowerShell.cs b/src/ServiceLinker/generated/api/Models/Any.PowerShell.cs index 71e2a36d0e20..d38d950319f5 100644 --- a/src/ServiceLinker/generated/api/Models/Any.PowerShell.cs +++ b/src/ServiceLinker/generated/api/Models/Any.PowerShell.cs @@ -31,7 +31,8 @@ public partial class Any /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class Any /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/src/ServiceLinker/generated/api/Models/Any.TypeConverter.cs b/src/ServiceLinker/generated/api/Models/Any.TypeConverter.cs index 1dd06c352c22..183ba37a60b5 100644 --- a/src/ServiceLinker/generated/api/Models/Any.TypeConverter.cs +++ b/src/ServiceLinker/generated/api/Models/Any.TypeConverter.cs @@ -14,19 +14,19 @@ public partial class AnyTypeConverter : global::System.Management.Automation.PST { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the . + /// Determines if the converter can convert the parameter to the type. /// /// the instance to check if it can be converted to the type. @@ -74,19 +74,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -98,8 +99,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/ServiceLinker/generated/api/Models/Api20/ProxyResource.cs b/src/ServiceLinker/generated/api/Models/Api20/ProxyResource.cs deleted file mode 100644 index 7bb8d981903e..000000000000 --- a/src/ServiceLinker/generated/api/Models/Api20/ProxyResource.cs +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; - - /// - /// The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location - /// - public partial class ProxyResource : - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IProxyResource, - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IProxyResourceInternal, - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.Resource(); - - /// - /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - /// - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResourceInternal)__resource).Id; } - - /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResourceInternal)__resource).Id = value; } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResourceInternal)__resource).Name = value; } - - /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResourceInternal)__resource).Type = value; } - - /// The name of the resource - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResourceInternal)__resource).Name; } - - /// - /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - /// - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResourceInternal)__resource).Type; } - - /// Creates an new instance. - public ProxyResource() - { - - } - - /// Validates that this object meets the validation criteria. - /// an instance that will receive validation - /// events. - /// - /// A that will be complete when validation is completed. - /// - public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__resource), __resource); - await eventListener.AssertObjectIsValid(nameof(__resource), __resource); - } - } - /// The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location - public partial interface IProxyResource : - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResource - { - - } - /// The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location - internal partial interface IProxyResourceInternal : - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResourceInternal - { - - } -} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20/Resource.cs b/src/ServiceLinker/generated/api/Models/Api20/Resource.cs deleted file mode 100644 index 0b9bfb0dfcfb..000000000000 --- a/src/ServiceLinker/generated/api/Models/Api20/Resource.cs +++ /dev/null @@ -1,108 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; - - /// - /// Common fields that are returned in the response for all Azure Resource Manager resources - /// - public partial class Resource : - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResource, - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResourceInternal - { - - /// Backing field for property. - private string _id; - - /// - /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - /// - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] - public string Id { get => this._id; } - - /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResourceInternal.Id { get => this._id; set { {_id = value;} } } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResourceInternal.Name { get => this._name; set { {_name = value;} } } - - /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResourceInternal.Type { get => this._type; set { {_type = value;} } } - - /// Backing field for property. - private string _name; - - /// The name of the resource - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] - public string Name { get => this._name; } - - /// Backing field for property. - private string _type; - - /// - /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - /// - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] - public string Type { get => this._type; } - - /// Creates an new instance. - public Resource() - { - - } - } - /// Common fields that are returned in the response for all Azure Resource Manager resources - public partial interface IResource : - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IJsonSerializable - { - /// - /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - /// - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}", - SerializedName = @"id", - PossibleTypes = new [] { typeof(string) })] - string Id { get; } - /// The name of the resource - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The name of the resource", - SerializedName = @"name", - PossibleTypes = new [] { typeof(string) })] - string Name { get; } - /// - /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - /// - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The type of the resource. E.g. ""Microsoft.Compute/virtualMachines"" or ""Microsoft.Storage/storageAccounts""", - SerializedName = @"type", - PossibleTypes = new [] { typeof(string) })] - string Type { get; } - - } - /// Common fields that are returned in the response for all Azure Resource Manager resources - internal partial interface IResourceInternal - - { - /// - /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - /// - string Id { get; set; } - /// The name of the resource - string Name { get; set; } - /// - /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - /// - string Type { get; set; } - - } -} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/LinkerPatch.PowerShell.cs b/src/ServiceLinker/generated/api/Models/Api20220501/LinkerPatch.PowerShell.cs deleted file mode 100644 index c45428ef1853..000000000000 --- a/src/ServiceLinker/generated/api/Models/Api20220501/LinkerPatch.PowerShell.cs +++ /dev/null @@ -1,214 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; - - /// A linker to be updated. - [System.ComponentModel.TypeConverter(typeof(LinkerPatchTypeConverter))] - public partial class LinkerPatch - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPatch DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new LinkerPatch(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPatch DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new LinkerPatch(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPatch FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal LinkerPatch(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPatchInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPatchInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.LinkerPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("SecretStore")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPatchInternal)this).SecretStore = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretStore) content.GetValueForProperty("SecretStore",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPatchInternal)this).SecretStore, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.SecretStoreTypeConverter.ConvertFrom); - } - if (content.Contains("ClientType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPatchInternal)this).ClientType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType?) content.GetValueForProperty("ClientType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPatchInternal)this).ClientType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType.CreateFrom); - } - if (content.Contains("VNetSolution")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPatchInternal)this).VNetSolution = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IVNetSolution) content.GetValueForProperty("VNetSolution",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPatchInternal)this).VNetSolution, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.VNetSolutionTypeConverter.ConvertFrom); - } - if (content.Contains("TargetService")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPatchInternal)this).TargetService = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBase) content.GetValueForProperty("TargetService",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPatchInternal)this).TargetService, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.TargetServiceBaseTypeConverter.ConvertFrom); - } - if (content.Contains("AuthInfo")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPatchInternal)this).AuthInfo = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBase) content.GetValueForProperty("AuthInfo",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPatchInternal)this).AuthInfo, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.AuthInfoBaseTypeConverter.ConvertFrom); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPatchInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPatchInternal)this).ProvisioningState, global::System.Convert.ToString); - } - if (content.Contains("Scope")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPatchInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPatchInternal)this).Scope, global::System.Convert.ToString); - } - if (content.Contains("VNetSolutionType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPatchInternal)this).VNetSolutionType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType?) content.GetValueForProperty("VNetSolutionType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPatchInternal)this).VNetSolutionType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType.CreateFrom); - } - if (content.Contains("SecretStoreKeyVaultId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPatchInternal)this).SecretStoreKeyVaultId = (string) content.GetValueForProperty("SecretStoreKeyVaultId",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPatchInternal)this).SecretStoreKeyVaultId, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal LinkerPatch(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPatchInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPatchInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.LinkerPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("SecretStore")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPatchInternal)this).SecretStore = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretStore) content.GetValueForProperty("SecretStore",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPatchInternal)this).SecretStore, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.SecretStoreTypeConverter.ConvertFrom); - } - if (content.Contains("ClientType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPatchInternal)this).ClientType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType?) content.GetValueForProperty("ClientType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPatchInternal)this).ClientType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType.CreateFrom); - } - if (content.Contains("VNetSolution")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPatchInternal)this).VNetSolution = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IVNetSolution) content.GetValueForProperty("VNetSolution",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPatchInternal)this).VNetSolution, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.VNetSolutionTypeConverter.ConvertFrom); - } - if (content.Contains("TargetService")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPatchInternal)this).TargetService = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBase) content.GetValueForProperty("TargetService",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPatchInternal)this).TargetService, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.TargetServiceBaseTypeConverter.ConvertFrom); - } - if (content.Contains("AuthInfo")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPatchInternal)this).AuthInfo = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBase) content.GetValueForProperty("AuthInfo",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPatchInternal)this).AuthInfo, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.AuthInfoBaseTypeConverter.ConvertFrom); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPatchInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPatchInternal)this).ProvisioningState, global::System.Convert.ToString); - } - if (content.Contains("Scope")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPatchInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPatchInternal)this).Scope, global::System.Convert.ToString); - } - if (content.Contains("VNetSolutionType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPatchInternal)this).VNetSolutionType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType?) content.GetValueForProperty("VNetSolutionType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPatchInternal)this).VNetSolutionType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType.CreateFrom); - } - if (content.Contains("SecretStoreKeyVaultId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPatchInternal)this).SecretStoreKeyVaultId = (string) content.GetValueForProperty("SecretStoreKeyVaultId",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPatchInternal)this).SecretStoreKeyVaultId, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// A linker to be updated. - [System.ComponentModel.TypeConverter(typeof(LinkerPatchTypeConverter))] - public partial interface ILinkerPatch - - { - - } -} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/LinkerPatch.cs b/src/ServiceLinker/generated/api/Models/Api20220501/LinkerPatch.cs deleted file mode 100644 index 0e1bf05892db..000000000000 --- a/src/ServiceLinker/generated/api/Models/Api20220501/LinkerPatch.cs +++ /dev/null @@ -1,157 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; - - /// A linker to be updated. - public partial class LinkerPatch : - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPatch, - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPatchInternal - { - - /// The authentication type. - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBase AuthInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal)Property).AuthInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal)Property).AuthInfo = value ?? null /* model class */; } - - /// The application client type - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType? ClientType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal)Property).ClientType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal)Property).ClientType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType)""); } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerProperties Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPatchInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.LinkerProperties()); set { {_property = value;} } } - - /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPatchInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal)Property).ProvisioningState = value; } - - /// Internal Acessors for SecretStore - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretStore Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPatchInternal.SecretStore { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal)Property).SecretStore; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal)Property).SecretStore = value; } - - /// Internal Acessors for VNetSolution - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IVNetSolution Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPatchInternal.VNetSolution { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal)Property).VNetSolution; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal)Property).VNetSolution = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerProperties _property; - - /// Linker properties - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.LinkerProperties()); set => this._property = value; } - - /// The provisioning state. - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] - public string ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal)Property).ProvisioningState; } - - /// connection scope in source service. - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] - public string Scope { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal)Property).Scope; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal)Property).Scope = value ?? null; } - - /// The key vault id to store secret - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] - public string SecretStoreKeyVaultId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal)Property).SecretStoreKeyVaultId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal)Property).SecretStoreKeyVaultId = value ?? null; } - - /// The target service properties - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBase TargetService { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal)Property).TargetService; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal)Property).TargetService = value ?? null /* model class */; } - - /// Type of VNet solution. - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType? VNetSolutionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal)Property).VNetSolutionType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal)Property).VNetSolutionType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType)""); } - - /// Creates an new instance. - public LinkerPatch() - { - - } - } - /// A linker to be updated. - public partial interface ILinkerPatch : - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IJsonSerializable - { - /// The authentication type. - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The authentication type.", - SerializedName = @"authInfo", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBase) })] - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBase AuthInfo { get; set; } - /// The application client type - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The application client type", - SerializedName = @"clientType", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType) })] - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType? ClientType { get; set; } - /// The provisioning state. - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The provisioning state. ", - SerializedName = @"provisioningState", - PossibleTypes = new [] { typeof(string) })] - string ProvisioningState { get; } - /// connection scope in source service. - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"connection scope in source service.", - SerializedName = @"scope", - PossibleTypes = new [] { typeof(string) })] - string Scope { get; set; } - /// The key vault id to store secret - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The key vault id to store secret", - SerializedName = @"keyVaultId", - PossibleTypes = new [] { typeof(string) })] - string SecretStoreKeyVaultId { get; set; } - /// The target service properties - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The target service properties", - SerializedName = @"targetService", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBase) })] - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBase TargetService { get; set; } - /// Type of VNet solution. - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Type of VNet solution.", - SerializedName = @"type", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType) })] - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType? VNetSolutionType { get; set; } - - } - /// A linker to be updated. - internal partial interface ILinkerPatchInternal - - { - /// The authentication type. - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBase AuthInfo { get; set; } - /// The application client type - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType? ClientType { get; set; } - /// Linker properties - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerProperties Property { get; set; } - /// The provisioning state. - string ProvisioningState { get; set; } - /// connection scope in source service. - string Scope { get; set; } - /// An option to store secret value in secure place - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretStore SecretStore { get; set; } - /// The key vault id to store secret - string SecretStoreKeyVaultId { get; set; } - /// The target service properties - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBase TargetService { get; set; } - /// The VNet solution. - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IVNetSolution VNetSolution { get; set; } - /// Type of VNet solution. - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType? VNetSolutionType { get; set; } - - } -} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/LinkerProperties.PowerShell.cs b/src/ServiceLinker/generated/api/Models/Api20220501/LinkerProperties.PowerShell.cs deleted file mode 100644 index 62ef62d28422..000000000000 --- a/src/ServiceLinker/generated/api/Models/Api20220501/LinkerProperties.PowerShell.cs +++ /dev/null @@ -1,206 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; - - /// The properties of the linker. - [System.ComponentModel.TypeConverter(typeof(LinkerPropertiesTypeConverter))] - public partial class LinkerProperties - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new LinkerProperties(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new LinkerProperties(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal LinkerProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("VNetSolution")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal)this).VNetSolution = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IVNetSolution) content.GetValueForProperty("VNetSolution",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal)this).VNetSolution, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.VNetSolutionTypeConverter.ConvertFrom); - } - if (content.Contains("SecretStore")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal)this).SecretStore = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretStore) content.GetValueForProperty("SecretStore",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal)this).SecretStore, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.SecretStoreTypeConverter.ConvertFrom); - } - if (content.Contains("TargetService")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal)this).TargetService = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBase) content.GetValueForProperty("TargetService",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal)this).TargetService, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.TargetServiceBaseTypeConverter.ConvertFrom); - } - if (content.Contains("AuthInfo")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal)this).AuthInfo = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBase) content.GetValueForProperty("AuthInfo",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal)this).AuthInfo, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.AuthInfoBaseTypeConverter.ConvertFrom); - } - if (content.Contains("ClientType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal)this).ClientType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType?) content.GetValueForProperty("ClientType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal)this).ClientType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType.CreateFrom); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); - } - if (content.Contains("Scope")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal)this).Scope, global::System.Convert.ToString); - } - if (content.Contains("VNetSolutionType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal)this).VNetSolutionType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType?) content.GetValueForProperty("VNetSolutionType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal)this).VNetSolutionType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType.CreateFrom); - } - if (content.Contains("SecretStoreKeyVaultId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal)this).SecretStoreKeyVaultId = (string) content.GetValueForProperty("SecretStoreKeyVaultId",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal)this).SecretStoreKeyVaultId, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal LinkerProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("VNetSolution")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal)this).VNetSolution = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IVNetSolution) content.GetValueForProperty("VNetSolution",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal)this).VNetSolution, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.VNetSolutionTypeConverter.ConvertFrom); - } - if (content.Contains("SecretStore")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal)this).SecretStore = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretStore) content.GetValueForProperty("SecretStore",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal)this).SecretStore, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.SecretStoreTypeConverter.ConvertFrom); - } - if (content.Contains("TargetService")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal)this).TargetService = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBase) content.GetValueForProperty("TargetService",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal)this).TargetService, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.TargetServiceBaseTypeConverter.ConvertFrom); - } - if (content.Contains("AuthInfo")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal)this).AuthInfo = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBase) content.GetValueForProperty("AuthInfo",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal)this).AuthInfo, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.AuthInfoBaseTypeConverter.ConvertFrom); - } - if (content.Contains("ClientType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal)this).ClientType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType?) content.GetValueForProperty("ClientType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal)this).ClientType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType.CreateFrom); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); - } - if (content.Contains("Scope")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal)this).Scope, global::System.Convert.ToString); - } - if (content.Contains("VNetSolutionType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal)this).VNetSolutionType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType?) content.GetValueForProperty("VNetSolutionType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal)this).VNetSolutionType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType.CreateFrom); - } - if (content.Contains("SecretStoreKeyVaultId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal)this).SecretStoreKeyVaultId = (string) content.GetValueForProperty("SecretStoreKeyVaultId",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal)this).SecretStoreKeyVaultId, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// The properties of the linker. - [System.ComponentModel.TypeConverter(typeof(LinkerPropertiesTypeConverter))] - public partial interface ILinkerProperties - - { - - } -} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/LinkerProperties.cs b/src/ServiceLinker/generated/api/Models/Api20220501/LinkerProperties.cs deleted file mode 100644 index 7fe0443b02f2..000000000000 --- a/src/ServiceLinker/generated/api/Models/Api20220501/LinkerProperties.cs +++ /dev/null @@ -1,174 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; - - /// The properties of the linker. - public partial class LinkerProperties : - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerProperties, - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal - { - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBase _authInfo; - - /// The authentication type. - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBase AuthInfo { get => (this._authInfo = this._authInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.AuthInfoBase()); set => this._authInfo = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType? _clientType; - - /// The application client type - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType? ClientType { get => this._clientType; set => this._clientType = value; } - - /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } - - /// Internal Acessors for SecretStore - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretStore Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal.SecretStore { get => (this._secretStore = this._secretStore ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.SecretStore()); set { {_secretStore = value;} } } - - /// Internal Acessors for VNetSolution - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IVNetSolution Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal.VNetSolution { get => (this._vNetSolution = this._vNetSolution ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.VNetSolution()); set { {_vNetSolution = value;} } } - - /// Backing field for property. - private string _provisioningState; - - /// The provisioning state. - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] - public string ProvisioningState { get => this._provisioningState; } - - /// Backing field for property. - private string _scope; - - /// connection scope in source service. - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] - public string Scope { get => this._scope; set => this._scope = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretStore _secretStore; - - /// An option to store secret value in secure place - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretStore SecretStore { get => (this._secretStore = this._secretStore ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.SecretStore()); set => this._secretStore = value; } - - /// The key vault id to store secret - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] - public string SecretStoreKeyVaultId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretStoreInternal)SecretStore).KeyVaultId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretStoreInternal)SecretStore).KeyVaultId = value ?? null; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBase _targetService; - - /// The target service properties - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBase TargetService { get => (this._targetService = this._targetService ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.TargetServiceBase()); set => this._targetService = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IVNetSolution _vNetSolution; - - /// The VNet solution. - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IVNetSolution VNetSolution { get => (this._vNetSolution = this._vNetSolution ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.VNetSolution()); set => this._vNetSolution = value; } - - /// Type of VNet solution. - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType? VNetSolutionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IVNetSolutionInternal)VNetSolution).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IVNetSolutionInternal)VNetSolution).Type = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType)""); } - - /// Creates an new instance. - public LinkerProperties() - { - - } - } - /// The properties of the linker. - public partial interface ILinkerProperties : - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IJsonSerializable - { - /// The authentication type. - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The authentication type.", - SerializedName = @"authInfo", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBase) })] - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBase AuthInfo { get; set; } - /// The application client type - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The application client type", - SerializedName = @"clientType", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType) })] - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType? ClientType { get; set; } - /// The provisioning state. - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The provisioning state. ", - SerializedName = @"provisioningState", - PossibleTypes = new [] { typeof(string) })] - string ProvisioningState { get; } - /// connection scope in source service. - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"connection scope in source service.", - SerializedName = @"scope", - PossibleTypes = new [] { typeof(string) })] - string Scope { get; set; } - /// The key vault id to store secret - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The key vault id to store secret", - SerializedName = @"keyVaultId", - PossibleTypes = new [] { typeof(string) })] - string SecretStoreKeyVaultId { get; set; } - /// The target service properties - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The target service properties", - SerializedName = @"targetService", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBase) })] - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBase TargetService { get; set; } - /// Type of VNet solution. - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Type of VNet solution.", - SerializedName = @"type", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType) })] - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType? VNetSolutionType { get; set; } - - } - /// The properties of the linker. - internal partial interface ILinkerPropertiesInternal - - { - /// The authentication type. - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBase AuthInfo { get; set; } - /// The application client type - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType? ClientType { get; set; } - /// The provisioning state. - string ProvisioningState { get; set; } - /// connection scope in source service. - string Scope { get; set; } - /// An option to store secret value in secure place - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretStore SecretStore { get; set; } - /// The key vault id to store secret - string SecretStoreKeyVaultId { get; set; } - /// The target service properties - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBase TargetService { get; set; } - /// The VNet solution. - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IVNetSolution VNetSolution { get; set; } - /// Type of VNet solution. - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType? VNetSolutionType { get; set; } - - } -} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/LinkerResource.PowerShell.cs b/src/ServiceLinker/generated/api/Models/Api20220501/LinkerResource.PowerShell.cs deleted file mode 100644 index 99493526bbe8..000000000000 --- a/src/ServiceLinker/generated/api/Models/Api20220501/LinkerResource.PowerShell.cs +++ /dev/null @@ -1,294 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; - - /// Linker of source and target resource - [System.ComponentModel.TypeConverter(typeof(LinkerResourceTypeConverter))] - public partial class LinkerResource - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new LinkerResource(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new LinkerResource(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal LinkerResource(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.LinkerPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("SystemData")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.SystemDataTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("SecretStore")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResourceInternal)this).SecretStore = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretStore) content.GetValueForProperty("SecretStore",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResourceInternal)this).SecretStore, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.SecretStoreTypeConverter.ConvertFrom); - } - if (content.Contains("ClientType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResourceInternal)this).ClientType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType?) content.GetValueForProperty("ClientType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResourceInternal)this).ClientType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType.CreateFrom); - } - if (content.Contains("SystemDataCreatedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataCreatedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("VNetSolution")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResourceInternal)this).VNetSolution = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IVNetSolution) content.GetValueForProperty("VNetSolution",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResourceInternal)this).VNetSolution, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.VNetSolutionTypeConverter.ConvertFrom); - } - if (content.Contains("TargetService")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResourceInternal)this).TargetService = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBase) content.GetValueForProperty("TargetService",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResourceInternal)this).TargetService, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.TargetServiceBaseTypeConverter.ConvertFrom); - } - if (content.Contains("AuthInfo")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResourceInternal)this).AuthInfo = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBase) content.GetValueForProperty("AuthInfo",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResourceInternal)this).AuthInfo, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.AuthInfoBaseTypeConverter.ConvertFrom); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResourceInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResourceInternal)this).ProvisioningState, global::System.Convert.ToString); - } - if (content.Contains("Scope")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResourceInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResourceInternal)this).Scope, global::System.Convert.ToString); - } - if (content.Contains("VNetSolutionType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResourceInternal)this).VNetSolutionType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType?) content.GetValueForProperty("VNetSolutionType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResourceInternal)this).VNetSolutionType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType.CreateFrom); - } - if (content.Contains("SystemDataCreatedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataLastModifiedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("SecretStoreKeyVaultId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResourceInternal)this).SecretStoreKeyVaultId = (string) content.GetValueForProperty("SecretStoreKeyVaultId",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResourceInternal)this).SecretStoreKeyVaultId, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal LinkerResource(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.LinkerPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("SystemData")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.SystemDataTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("SecretStore")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResourceInternal)this).SecretStore = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretStore) content.GetValueForProperty("SecretStore",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResourceInternal)this).SecretStore, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.SecretStoreTypeConverter.ConvertFrom); - } - if (content.Contains("ClientType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResourceInternal)this).ClientType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType?) content.GetValueForProperty("ClientType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResourceInternal)this).ClientType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType.CreateFrom); - } - if (content.Contains("SystemDataCreatedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataCreatedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("VNetSolution")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResourceInternal)this).VNetSolution = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IVNetSolution) content.GetValueForProperty("VNetSolution",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResourceInternal)this).VNetSolution, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.VNetSolutionTypeConverter.ConvertFrom); - } - if (content.Contains("TargetService")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResourceInternal)this).TargetService = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBase) content.GetValueForProperty("TargetService",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResourceInternal)this).TargetService, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.TargetServiceBaseTypeConverter.ConvertFrom); - } - if (content.Contains("AuthInfo")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResourceInternal)this).AuthInfo = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBase) content.GetValueForProperty("AuthInfo",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResourceInternal)this).AuthInfo, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.AuthInfoBaseTypeConverter.ConvertFrom); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResourceInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResourceInternal)this).ProvisioningState, global::System.Convert.ToString); - } - if (content.Contains("Scope")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResourceInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResourceInternal)this).Scope, global::System.Convert.ToString); - } - if (content.Contains("VNetSolutionType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResourceInternal)this).VNetSolutionType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType?) content.GetValueForProperty("VNetSolutionType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResourceInternal)this).VNetSolutionType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType.CreateFrom); - } - if (content.Contains("SystemDataCreatedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataLastModifiedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("SecretStoreKeyVaultId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResourceInternal)this).SecretStoreKeyVaultId = (string) content.GetValueForProperty("SecretStoreKeyVaultId",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResourceInternal)this).SecretStoreKeyVaultId, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Linker of source and target resource - [System.ComponentModel.TypeConverter(typeof(LinkerResourceTypeConverter))] - public partial interface ILinkerResource - - { - - } -} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/LinkerResource.cs b/src/ServiceLinker/generated/api/Models/Api20220501/LinkerResource.cs deleted file mode 100644 index e4b534bb665a..000000000000 --- a/src/ServiceLinker/generated/api/Models/Api20220501/LinkerResource.cs +++ /dev/null @@ -1,297 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; - - /// Linker of source and target resource - public partial class LinkerResource : - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource, - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResourceInternal, - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.Resource(); - - /// The authentication type. - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBase AuthInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal)Property).AuthInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal)Property).AuthInfo = value ?? null /* model class */; } - - /// The application client type - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType? ClientType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal)Property).ClientType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal)Property).ClientType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType)""); } - - /// - /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - /// - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResourceInternal)__resource).Id; } - - /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResourceInternal)__resource).Id = value; } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResourceInternal)__resource).Name = value; } - - /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResourceInternal)__resource).Type = value; } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerProperties Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.LinkerProperties()); set { {_property = value;} } } - - /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResourceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal)Property).ProvisioningState = value; } - - /// Internal Acessors for SecretStore - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretStore Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResourceInternal.SecretStore { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal)Property).SecretStore; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal)Property).SecretStore = value; } - - /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResourceInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.SystemData()); set { {_systemData = value;} } } - - /// Internal Acessors for VNetSolution - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IVNetSolution Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResourceInternal.VNetSolution { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal)Property).VNetSolution; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal)Property).VNetSolution = value; } - - /// The name of the resource - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResourceInternal)__resource).Name; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerProperties _property; - - /// The properties of the linker. - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.LinkerProperties()); set => this._property = value; } - - /// The provisioning state. - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] - public string ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal)Property).ProvisioningState; } - - /// connection scope in source service. - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] - public string Scope { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal)Property).Scope; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal)Property).Scope = value ?? null; } - - /// The key vault id to store secret - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] - public string SecretStoreKeyVaultId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal)Property).SecretStoreKeyVaultId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal)Property).SecretStoreKeyVaultId = value ?? null; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ISystemData _systemData; - - /// The system data. - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ISystemData SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.SystemData()); } - - /// The timestamp of resource creation (UTC). - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } - - /// The identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } - - /// The type of identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ISystemDataInternal)SystemData).CreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType)""); } - - /// The timestamp of resource last modification (UTC) - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } - - /// The identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } - - /// The type of identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ISystemDataInternal)SystemData).LastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType)""); } - - /// The target service properties - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBase TargetService { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal)Property).TargetService; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal)Property).TargetService = value ?? null /* model class */; } - - /// - /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - /// - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResourceInternal)__resource).Type; } - - /// Type of VNet solution. - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType? VNetSolutionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal)Property).VNetSolutionType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPropertiesInternal)Property).VNetSolutionType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType)""); } - - /// Creates an new instance. - public LinkerResource() - { - - } - - /// Validates that this object meets the validation criteria. - /// an instance that will receive validation - /// events. - /// - /// A that will be complete when validation is completed. - /// - public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__resource), __resource); - await eventListener.AssertObjectIsValid(nameof(__resource), __resource); - } - } - /// Linker of source and target resource - public partial interface ILinkerResource : - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResource - { - /// The authentication type. - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The authentication type.", - SerializedName = @"authInfo", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBase) })] - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBase AuthInfo { get; set; } - /// The application client type - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The application client type", - SerializedName = @"clientType", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType) })] - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType? ClientType { get; set; } - /// The provisioning state. - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The provisioning state. ", - SerializedName = @"provisioningState", - PossibleTypes = new [] { typeof(string) })] - string ProvisioningState { get; } - /// connection scope in source service. - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"connection scope in source service.", - SerializedName = @"scope", - PossibleTypes = new [] { typeof(string) })] - string Scope { get; set; } - /// The key vault id to store secret - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The key vault id to store secret", - SerializedName = @"keyVaultId", - PossibleTypes = new [] { typeof(string) })] - string SecretStoreKeyVaultId { get; set; } - /// The timestamp of resource creation (UTC). - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The timestamp of resource creation (UTC).", - SerializedName = @"createdAt", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? SystemDataCreatedAt { get; set; } - /// The identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The identity that created the resource.", - SerializedName = @"createdBy", - PossibleTypes = new [] { typeof(string) })] - string SystemDataCreatedBy { get; set; } - /// The type of identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The type of identity that created the resource.", - SerializedName = @"createdByType", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType) })] - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType? SystemDataCreatedByType { get; set; } - /// The timestamp of resource last modification (UTC) - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The timestamp of resource last modification (UTC)", - SerializedName = @"lastModifiedAt", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? SystemDataLastModifiedAt { get; set; } - /// The identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The identity that last modified the resource.", - SerializedName = @"lastModifiedBy", - PossibleTypes = new [] { typeof(string) })] - string SystemDataLastModifiedBy { get; set; } - /// The type of identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The type of identity that last modified the resource.", - SerializedName = @"lastModifiedByType", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType) })] - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType? SystemDataLastModifiedByType { get; set; } - /// The target service properties - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The target service properties", - SerializedName = @"targetService", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBase) })] - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBase TargetService { get; set; } - /// Type of VNet solution. - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Type of VNet solution.", - SerializedName = @"type", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType) })] - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType? VNetSolutionType { get; set; } - - } - /// Linker of source and target resource - internal partial interface ILinkerResourceInternal : - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResourceInternal - { - /// The authentication type. - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBase AuthInfo { get; set; } - /// The application client type - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType? ClientType { get; set; } - /// The properties of the linker. - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerProperties Property { get; set; } - /// The provisioning state. - string ProvisioningState { get; set; } - /// connection scope in source service. - string Scope { get; set; } - /// An option to store secret value in secure place - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretStore SecretStore { get; set; } - /// The key vault id to store secret - string SecretStoreKeyVaultId { get; set; } - /// The system data. - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ISystemData SystemData { get; set; } - /// The timestamp of resource creation (UTC). - global::System.DateTime? SystemDataCreatedAt { get; set; } - /// The identity that created the resource. - string SystemDataCreatedBy { get; set; } - /// The type of identity that created the resource. - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType? SystemDataCreatedByType { get; set; } - /// The timestamp of resource last modification (UTC) - global::System.DateTime? SystemDataLastModifiedAt { get; set; } - /// The identity that last modified the resource. - string SystemDataLastModifiedBy { get; set; } - /// The type of identity that last modified the resource. - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType? SystemDataLastModifiedByType { get; set; } - /// The target service properties - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBase TargetService { get; set; } - /// The VNet solution. - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IVNetSolution VNetSolution { get; set; } - /// Type of VNet solution. - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType? VNetSolutionType { get; set; } - - } -} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/SystemAssignedIdentityAuthInfo.cs b/src/ServiceLinker/generated/api/Models/Api20220501/SystemAssignedIdentityAuthInfo.cs deleted file mode 100644 index 7853841aa2a8..000000000000 --- a/src/ServiceLinker/generated/api/Models/Api20220501/SystemAssignedIdentityAuthInfo.cs +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; - - /// The authentication info when authType is systemAssignedIdentity - public partial class SystemAssignedIdentityAuthInfo : - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISystemAssignedIdentityAuthInfo, - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISystemAssignedIdentityAuthInfoInternal, - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBase __authInfoBase = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.AuthInfoBase(); - - /// The authentication type. - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType AuthType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBaseInternal)__authInfoBase).AuthType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBaseInternal)__authInfoBase).AuthType = value ; } - - /// Creates an new instance. - public SystemAssignedIdentityAuthInfo() - { - - } - - /// Validates that this object meets the validation criteria. - /// an instance that will receive validation - /// events. - /// - /// A that will be complete when validation is completed. - /// - public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__authInfoBase), __authInfoBase); - await eventListener.AssertObjectIsValid(nameof(__authInfoBase), __authInfoBase); - } - } - /// The authentication info when authType is systemAssignedIdentity - public partial interface ISystemAssignedIdentityAuthInfo : - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBase - { - - } - /// The authentication info when authType is systemAssignedIdentity - internal partial interface ISystemAssignedIdentityAuthInfoInternal : - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBaseInternal - { - - } -} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/UserAssignedIdentityAuthInfo.cs b/src/ServiceLinker/generated/api/Models/Api20220501/UserAssignedIdentityAuthInfo.cs deleted file mode 100644 index 3227575f7792..000000000000 --- a/src/ServiceLinker/generated/api/Models/Api20220501/UserAssignedIdentityAuthInfo.cs +++ /dev/null @@ -1,91 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; - - /// The authentication info when authType is userAssignedIdentity - public partial class UserAssignedIdentityAuthInfo : - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IUserAssignedIdentityAuthInfo, - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IUserAssignedIdentityAuthInfoInternal, - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBase __authInfoBase = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.AuthInfoBase(); - - /// The authentication type. - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType AuthType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBaseInternal)__authInfoBase).AuthType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBaseInternal)__authInfoBase).AuthType = value ; } - - /// Backing field for property. - private string _clientId; - - /// Client Id for userAssignedIdentity. - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] - public string ClientId { get => this._clientId; set => this._clientId = value; } - - /// Backing field for property. - private string _subscriptionId; - - /// Subscription id for userAssignedIdentity. - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] - public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } - - /// Creates an new instance. - public UserAssignedIdentityAuthInfo() - { - - } - - /// Validates that this object meets the validation criteria. - /// an instance that will receive validation - /// events. - /// - /// A that will be complete when validation is completed. - /// - public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__authInfoBase), __authInfoBase); - await eventListener.AssertObjectIsValid(nameof(__authInfoBase), __authInfoBase); - } - } - /// The authentication info when authType is userAssignedIdentity - public partial interface IUserAssignedIdentityAuthInfo : - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBase - { - /// Client Id for userAssignedIdentity. - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Client Id for userAssignedIdentity.", - SerializedName = @"clientId", - PossibleTypes = new [] { typeof(string) })] - string ClientId { get; set; } - /// Subscription id for userAssignedIdentity. - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Subscription id for userAssignedIdentity.", - SerializedName = @"subscriptionId", - PossibleTypes = new [] { typeof(string) })] - string SubscriptionId { get; set; } - - } - /// The authentication info when authType is userAssignedIdentity - internal partial interface IUserAssignedIdentityAuthInfoInternal : - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBaseInternal - { - /// Client Id for userAssignedIdentity. - string ClientId { get; set; } - /// Subscription id for userAssignedIdentity. - string SubscriptionId { get; set; } - - } -} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/AccessKeyInfoBase.PowerShell.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/AccessKeyInfoBase.PowerShell.cs new file mode 100644 index 000000000000..1207022000ec --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/AccessKeyInfoBase.PowerShell.cs @@ -0,0 +1,156 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; + + /// + /// The access key directly from target resource properties, which target service is Azure Resource, such as Microsoft.Storage + /// + [System.ComponentModel.TypeConverter(typeof(AccessKeyInfoBaseTypeConverter))] + public partial class AccessKeyInfoBase + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal AccessKeyInfoBase(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Permission")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAccessKeyInfoBaseInternal)this).Permission = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AccessKeyPermissions[]) content.GetValueForProperty("Permission",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAccessKeyInfoBaseInternal)this).Permission, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AccessKeyPermissions.CreateFrom)); + } + if (content.Contains("AuthType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBaseInternal)this).AuthType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType) content.GetValueForProperty("AuthType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBaseInternal)this).AuthType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType.CreateFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal AccessKeyInfoBase(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Permission")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAccessKeyInfoBaseInternal)this).Permission = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AccessKeyPermissions[]) content.GetValueForProperty("Permission",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAccessKeyInfoBaseInternal)this).Permission, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AccessKeyPermissions.CreateFrom)); + } + if (content.Contains("AuthType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBaseInternal)this).AuthType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType) content.GetValueForProperty("AuthType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBaseInternal)this).AuthType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType.CreateFrom); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAccessKeyInfoBase DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new AccessKeyInfoBase(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAccessKeyInfoBase DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new AccessKeyInfoBase(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAccessKeyInfoBase FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The access key directly from target resource properties, which target service is Azure Resource, such as Microsoft.Storage + [System.ComponentModel.TypeConverter(typeof(AccessKeyInfoBaseTypeConverter))] + public partial interface IAccessKeyInfoBase + + { + + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/AccessKeyInfoBase.TypeConverter.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/AccessKeyInfoBase.TypeConverter.cs new file mode 100644 index 000000000000..e2c2d8940c92 --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/AccessKeyInfoBase.TypeConverter.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class AccessKeyInfoBaseTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAccessKeyInfoBase ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAccessKeyInfoBase).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return AccessKeyInfoBase.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return AccessKeyInfoBase.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return AccessKeyInfoBase.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/AccessKeyInfoBase.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/AccessKeyInfoBase.cs new file mode 100644 index 000000000000..4401f3036b93 --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/AccessKeyInfoBase.cs @@ -0,0 +1,85 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; + + /// + /// The access key directly from target resource properties, which target service is Azure Resource, such as Microsoft.Storage + /// + public partial class AccessKeyInfoBase : + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAccessKeyInfoBase, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAccessKeyInfoBaseInternal, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase __authInfoBase = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.AuthInfoBase(); + + /// The authentication type. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType AuthType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBaseInternal)__authInfoBase).AuthType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBaseInternal)__authInfoBase).AuthType = value ; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AccessKeyPermissions[] _permission; + + /// + /// Permissions of the accessKey. `Read` and `Write` are for Azure Cosmos DB and Azure App Configuration, `Listen`, `Send` + /// and `Manage` are for Azure Event Hub and Azure Service Bus. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AccessKeyPermissions[] Permission { get => this._permission; set => this._permission = value; } + + /// Creates an new instance. + public AccessKeyInfoBase() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__authInfoBase), __authInfoBase); + await eventListener.AssertObjectIsValid(nameof(__authInfoBase), __authInfoBase); + } + } + /// The access key directly from target resource properties, which target service is Azure Resource, such as Microsoft.Storage + public partial interface IAccessKeyInfoBase : + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase + { + /// + /// Permissions of the accessKey. `Read` and `Write` are for Azure Cosmos DB and Azure App Configuration, `Listen`, `Send` + /// and `Manage` are for Azure Event Hub and Azure Service Bus. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Permissions of the accessKey. `Read` and `Write` are for Azure Cosmos DB and Azure App Configuration, `Listen`, `Send` and `Manage` are for Azure Event Hub and Azure Service Bus.", + SerializedName = @"permissions", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AccessKeyPermissions) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AccessKeyPermissions[] Permission { get; set; } + + } + /// The access key directly from target resource properties, which target service is Azure Resource, such as Microsoft.Storage + internal partial interface IAccessKeyInfoBaseInternal : + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBaseInternal + { + /// + /// Permissions of the accessKey. `Read` and `Write` are for Azure Cosmos DB and Azure App Configuration, `Listen`, `Send` + /// and `Manage` are for Azure Event Hub and Azure Service Bus. + /// + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AccessKeyPermissions[] Permission { get; set; } + + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/AccessKeyInfoBase.json.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/AccessKeyInfoBase.json.cs new file mode 100644 index 000000000000..a27131093baa --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/AccessKeyInfoBase.json.cs @@ -0,0 +1,120 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; + + /// + /// The access key directly from target resource properties, which target service is Azure Resource, such as Microsoft.Storage + /// + public partial class AccessKeyInfoBase + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject instance to deserialize from. + internal AccessKeyInfoBase(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __authInfoBase = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.AuthInfoBase(json); + {_permission = If( json?.PropertyT("permissions"), out var __jsonPermissions) ? If( __jsonPermissions as Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AccessKeyPermissions) (__u is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonString __t ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AccessKeyPermissions)(__t.ToString()) : ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AccessKeyPermissions)""))) ))() : null : Permission;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAccessKeyInfoBase. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAccessKeyInfoBase. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAccessKeyInfoBase FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json ? new AccessKeyInfoBase(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + __authInfoBase?.ToJson(container, serializationMode); + if (null != this._permission) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.XNodeArray(); + foreach( var __x in this._permission ) + { + AddIf(null != (((object)__x)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonString(__x.ToString()) : null ,__w.Add); + } + container.Add("permissions",__w); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/AuthInfoBase.PowerShell.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/AuthInfoBase.PowerShell.cs similarity index 79% rename from src/ServiceLinker/generated/api/Models/Api20220501/AuthInfoBase.PowerShell.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/AuthInfoBase.PowerShell.cs index d87122d42dff..6c6a7aeaad2f 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/AuthInfoBase.PowerShell.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/AuthInfoBase.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class AuthInfoBase /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class AuthInfoBase /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,7 +55,7 @@ public partial class AuthInfoBase partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -68,13 +70,13 @@ internal AuthInfoBase(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("AuthType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBaseInternal)this).AuthType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType) content.GetValueForProperty("AuthType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBaseInternal)this).AuthType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBaseInternal)this).AuthType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType) content.GetValueForProperty("AuthType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBaseInternal)this).AuthType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -89,33 +91,33 @@ internal AuthInfoBase(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("AuthType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBaseInternal)this).AuthType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType) content.GetValueForProperty("AuthType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBaseInternal)this).AuthType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBaseInternal)this).AuthType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType) content.GetValueForProperty("AuthType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBaseInternal)this).AuthType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType.CreateFrom); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBase DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new AuthInfoBase(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBase DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AuthInfoBase(content); } @@ -125,7 +127,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api2022050 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBase FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/AuthInfoBase.TypeConverter.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/AuthInfoBase.TypeConverter.cs similarity index 82% rename from src/ServiceLinker/generated/api/Models/Api20220501/AuthInfoBase.TypeConverter.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/AuthInfoBase.TypeConverter.cs index 65c12dfde814..daa19eca4867 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/AuthInfoBase.TypeConverter.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/AuthInfoBase.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; @@ -14,19 +14,20 @@ public partial class AuthInfoBaseTypeConverter : global::System.Management.Autom { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the . + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -74,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -98,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBase ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBase).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/AuthInfoBase.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/AuthInfoBase.cs similarity index 95% rename from src/ServiceLinker/generated/api/Models/Api20220501/AuthInfoBase.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/AuthInfoBase.cs index e8b4a9056eb5..ba1d3a29b322 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/AuthInfoBase.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/AuthInfoBase.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; /// The authentication info public partial class AuthInfoBase : - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBase, - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBaseInternal + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBaseInternal { /// Backing field for property. diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/AuthInfoBase.json.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/AuthInfoBase.json.cs similarity index 93% rename from src/ServiceLinker/generated/api/Models/Api20220501/AuthInfoBase.json.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/AuthInfoBase.json.cs index 2161ec63a4c3..0f743254b1bb 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/AuthInfoBase.json.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/AuthInfoBase.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; @@ -70,15 +70,15 @@ internal AuthInfoBase(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.J } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBase. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBase interface is polymorphic, + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase interface is polymorphic, /// and the precise model class that will get deserialized is determined at runtime based on the payload. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBase. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBase FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json)) { @@ -88,6 +88,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api2022050 switch ( json.StringProperty("authType") ) { + case "accessKey": + { + return new AccessKeyInfoBase(json); + } case "secret": { return new SecretAuthInfo(json); @@ -108,6 +112,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api2022050 { return new ServicePrincipalCertificateAuthInfo(json); } + case "userAccount": + { + return new UserAccountAuthInfo(json); + } } return new AuthInfoBase(json); } diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/AzureKeyVaultProperties.PowerShell.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/AzureKeyVaultProperties.PowerShell.cs similarity index 74% rename from src/ServiceLinker/generated/api/Models/Api20220501/AzureKeyVaultProperties.PowerShell.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/AzureKeyVaultProperties.PowerShell.cs index 0c88749abf60..14d449e1e709 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/AzureKeyVaultProperties.PowerShell.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/AzureKeyVaultProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class AzureKeyVaultProperties /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class AzureKeyVaultProperties /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,7 +55,7 @@ public partial class AzureKeyVaultProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -68,17 +70,17 @@ internal AzureKeyVaultProperties(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("ConnectAsKubernetesCsiDriver")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAzureKeyVaultPropertiesInternal)this).ConnectAsKubernetesCsiDriver = (bool?) content.GetValueForProperty("ConnectAsKubernetesCsiDriver",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAzureKeyVaultPropertiesInternal)this).ConnectAsKubernetesCsiDriver, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAzureKeyVaultPropertiesInternal)this).ConnectAsKubernetesCsiDriver = (bool?) content.GetValueForProperty("ConnectAsKubernetesCsiDriver",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAzureKeyVaultPropertiesInternal)this).ConnectAsKubernetesCsiDriver, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAzureResourcePropertiesBaseInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAzureResourcePropertiesBaseInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAzureResourcePropertiesBaseInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAzureResourcePropertiesBaseInternal)this).Type, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -93,39 +95,39 @@ internal AzureKeyVaultProperties(global::System.Management.Automation.PSObject c // actually deserialize if (content.Contains("ConnectAsKubernetesCsiDriver")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAzureKeyVaultPropertiesInternal)this).ConnectAsKubernetesCsiDriver = (bool?) content.GetValueForProperty("ConnectAsKubernetesCsiDriver",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAzureKeyVaultPropertiesInternal)this).ConnectAsKubernetesCsiDriver, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAzureKeyVaultPropertiesInternal)this).ConnectAsKubernetesCsiDriver = (bool?) content.GetValueForProperty("ConnectAsKubernetesCsiDriver",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAzureKeyVaultPropertiesInternal)this).ConnectAsKubernetesCsiDriver, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAzureResourcePropertiesBaseInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAzureResourcePropertiesBaseInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAzureResourcePropertiesBaseInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAzureResourcePropertiesBaseInternal)this).Type, global::System.Convert.ToString); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAzureKeyVaultProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAzureKeyVaultProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new AzureKeyVaultProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAzureKeyVaultProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAzureKeyVaultProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AzureKeyVaultProperties(content); } @@ -135,7 +137,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api2022050 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAzureKeyVaultProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAzureKeyVaultProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/AzureKeyVaultProperties.TypeConverter.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/AzureKeyVaultProperties.TypeConverter.cs similarity index 81% rename from src/ServiceLinker/generated/api/Models/Api20220501/AzureKeyVaultProperties.TypeConverter.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/AzureKeyVaultProperties.TypeConverter.cs index 9a8f6ce78eb0..589c8529738f 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/AzureKeyVaultProperties.TypeConverter.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/AzureKeyVaultProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class AzureKeyVaultPropertiesTypeConverter : global::System.Manag { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the . + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAzureKeyVaultProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAzureKeyVaultProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAzureKeyVaultProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAzureKeyVaultProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/AzureKeyVaultProperties.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/AzureKeyVaultProperties.cs similarity index 79% rename from src/ServiceLinker/generated/api/Models/Api20220501/AzureKeyVaultProperties.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/AzureKeyVaultProperties.cs index ef21e6f37cc4..276f924f534a 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/AzureKeyVaultProperties.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/AzureKeyVaultProperties.cs @@ -3,21 +3,21 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; /// The resource properties when type is Azure Key Vault public partial class AzureKeyVaultProperties : - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAzureKeyVaultProperties, - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAzureKeyVaultPropertiesInternal, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAzureKeyVaultProperties, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAzureKeyVaultPropertiesInternal, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAzureResourcePropertiesBase __azureResourcePropertiesBase = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.AzureResourcePropertiesBase(); + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAzureResourcePropertiesBase __azureResourcePropertiesBase = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.AzureResourcePropertiesBase(); /// Backing field for property. private bool? _connectAsKubernetesCsiDriver; @@ -27,11 +27,11 @@ public partial class AzureKeyVaultProperties : public bool? ConnectAsKubernetesCsiDriver { get => this._connectAsKubernetesCsiDriver; set => this._connectAsKubernetesCsiDriver = value; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAzureResourcePropertiesBaseInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAzureResourcePropertiesBaseInternal)__azureResourcePropertiesBase).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAzureResourcePropertiesBaseInternal)__azureResourcePropertiesBase).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAzureResourcePropertiesBaseInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAzureResourcePropertiesBaseInternal)__azureResourcePropertiesBase).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAzureResourcePropertiesBaseInternal)__azureResourcePropertiesBase).Type = value; } /// The azure resource type. [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAzureResourcePropertiesBaseInternal)__azureResourcePropertiesBase).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAzureResourcePropertiesBaseInternal)__azureResourcePropertiesBase).Type; } /// Creates an new instance. public AzureKeyVaultProperties() @@ -54,7 +54,7 @@ public AzureKeyVaultProperties() /// The resource properties when type is Azure Key Vault public partial interface IAzureKeyVaultProperties : Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAzureResourcePropertiesBase + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAzureResourcePropertiesBase { /// True if connect via Kubernetes CSI Driver. [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( @@ -68,7 +68,7 @@ public partial interface IAzureKeyVaultProperties : } /// The resource properties when type is Azure Key Vault internal partial interface IAzureKeyVaultPropertiesInternal : - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAzureResourcePropertiesBaseInternal + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAzureResourcePropertiesBaseInternal { /// True if connect via Kubernetes CSI Driver. bool? ConnectAsKubernetesCsiDriver { get; set; } diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/AzureKeyVaultProperties.json.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/AzureKeyVaultProperties.json.cs similarity index 95% rename from src/ServiceLinker/generated/api/Models/Api20220501/AzureKeyVaultProperties.json.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/AzureKeyVaultProperties.json.cs index 774c2ffdddb8..04eca9d7fb0c 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/AzureKeyVaultProperties.json.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/AzureKeyVaultProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; @@ -65,19 +65,19 @@ internal AzureKeyVaultProperties(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinke { return; } - __azureResourcePropertiesBase = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.AzureResourcePropertiesBase(json); + __azureResourcePropertiesBase = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.AzureResourcePropertiesBase(json); {_connectAsKubernetesCsiDriver = If( json?.PropertyT("connectAsKubernetesCsiDriver"), out var __jsonConnectAsKubernetesCsiDriver) ? (bool?)__jsonConnectAsKubernetesCsiDriver : ConnectAsKubernetesCsiDriver;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAzureKeyVaultProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAzureKeyVaultProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAzureKeyVaultProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAzureKeyVaultProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAzureKeyVaultProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAzureKeyVaultProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json ? new AzureKeyVaultProperties(json) : null; } diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/AzureResource.PowerShell.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/AzureResource.PowerShell.cs similarity index 69% rename from src/ServiceLinker/generated/api/Models/Api20220501/AzureResource.PowerShell.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/AzureResource.PowerShell.cs index d2147482d181..6377091c7842 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/AzureResource.PowerShell.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/AzureResource.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class AzureResource /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class AzureResource /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,7 +55,7 @@ public partial class AzureResource partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -68,21 +70,21 @@ internal AzureResource(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAzureResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAzureResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAzureResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAzureResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("ResourceProperty")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAzureResourceInternal)this).ResourceProperty = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAzureResourcePropertiesBase) content.GetValueForProperty("ResourceProperty",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAzureResourceInternal)this).ResourceProperty, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.AzureResourcePropertiesBaseTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAzureResourceInternal)this).ResourceProperty = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAzureResourcePropertiesBase) content.GetValueForProperty("ResourceProperty",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAzureResourceInternal)this).ResourceProperty, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.AzureResourcePropertiesBaseTypeConverter.ConvertFrom); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBaseInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.TargetServiceType) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBaseInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.TargetServiceType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBaseInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.TargetServiceType) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBaseInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.TargetServiceType.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -97,41 +99,41 @@ internal AzureResource(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAzureResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAzureResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAzureResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAzureResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("ResourceProperty")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAzureResourceInternal)this).ResourceProperty = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAzureResourcePropertiesBase) content.GetValueForProperty("ResourceProperty",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAzureResourceInternal)this).ResourceProperty, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.AzureResourcePropertiesBaseTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAzureResourceInternal)this).ResourceProperty = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAzureResourcePropertiesBase) content.GetValueForProperty("ResourceProperty",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAzureResourceInternal)this).ResourceProperty, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.AzureResourcePropertiesBaseTypeConverter.ConvertFrom); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBaseInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.TargetServiceType) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBaseInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.TargetServiceType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBaseInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.TargetServiceType) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBaseInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.TargetServiceType.CreateFrom); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAzureResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAzureResource DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new AzureResource(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAzureResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAzureResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AzureResource(content); } @@ -141,7 +143,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api2022050 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAzureResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAzureResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/AzureResource.TypeConverter.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/AzureResource.TypeConverter.cs similarity index 82% rename from src/ServiceLinker/generated/api/Models/Api20220501/AzureResource.TypeConverter.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/AzureResource.TypeConverter.cs index b5bab6246887..797cd2476829 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/AzureResource.TypeConverter.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/AzureResource.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; @@ -14,19 +14,20 @@ public partial class AzureResourceTypeConverter : global::System.Management.Auto { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the . + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -74,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -98,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAzureResource ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAzureResource ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAzureResource).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAzureResource).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/AzureResource.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/AzureResource.cs similarity index 78% rename from src/ServiceLinker/generated/api/Models/Api20220501/AzureResource.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/AzureResource.cs index 9952c99c91e9..695cc29bd18f 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/AzureResource.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/AzureResource.cs @@ -3,21 +3,21 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; /// The azure resource info when target service type is AzureResource public partial class AzureResource : - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAzureResource, - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAzureResourceInternal, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAzureResource, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAzureResourceInternal, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBase __targetServiceBase = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.TargetServiceBase(); + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase __targetServiceBase = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.TargetServiceBase(); /// Backing field for property. private string _id; @@ -27,15 +27,15 @@ public partial class AzureResource : public string Id { get => this._id; set => this._id = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAzureResourcePropertiesBase _resourceProperty; + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAzureResourcePropertiesBase _resourceProperty; /// The azure resource connection related properties. [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAzureResourcePropertiesBase ResourceProperty { get => (this._resourceProperty = this._resourceProperty ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.AzureResourcePropertiesBase()); set => this._resourceProperty = value; } + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAzureResourcePropertiesBase ResourceProperty { get => (this._resourceProperty = this._resourceProperty ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.AzureResourcePropertiesBase()); set => this._resourceProperty = value; } /// The target service type. [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.TargetServiceType Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBaseInternal)__targetServiceBase).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBaseInternal)__targetServiceBase).Type = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.TargetServiceType Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBaseInternal)__targetServiceBase).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBaseInternal)__targetServiceBase).Type = value ; } /// Creates an new instance. public AzureResource() @@ -58,7 +58,7 @@ public AzureResource() /// The azure resource info when target service type is AzureResource public partial interface IAzureResource : Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBase + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase { /// The Id of azure resource. [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( @@ -74,18 +74,18 @@ public partial interface IAzureResource : ReadOnly = false, Description = @"The azure resource connection related properties.", SerializedName = @"resourceProperties", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAzureResourcePropertiesBase) })] - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAzureResourcePropertiesBase ResourceProperty { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAzureResourcePropertiesBase) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAzureResourcePropertiesBase ResourceProperty { get; set; } } /// The azure resource info when target service type is AzureResource internal partial interface IAzureResourceInternal : - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBaseInternal + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBaseInternal { /// The Id of azure resource. string Id { get; set; } /// The azure resource connection related properties. - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAzureResourcePropertiesBase ResourceProperty { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAzureResourcePropertiesBase ResourceProperty { get; set; } } } \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/AzureResource.json.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/AzureResource.json.cs similarity index 94% rename from src/ServiceLinker/generated/api/Models/Api20220501/AzureResource.json.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/AzureResource.json.cs index 74bca5fc314f..610a6d2b96d7 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/AzureResource.json.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/AzureResource.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; @@ -65,20 +65,20 @@ internal AzureResource(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime. { return; } - __targetServiceBase = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.TargetServiceBase(json); + __targetServiceBase = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.TargetServiceBase(json); {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} - {_resourceProperty = If( json?.PropertyT("resourceProperties"), out var __jsonResourceProperties) ? Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.AzureResourcePropertiesBase.FromJson(__jsonResourceProperties) : ResourceProperty;} + {_resourceProperty = If( json?.PropertyT("resourceProperties"), out var __jsonResourceProperties) ? Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.AzureResourcePropertiesBase.FromJson(__jsonResourceProperties) : ResourceProperty;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAzureResource. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAzureResource. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAzureResource. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAzureResource. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAzureResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAzureResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json ? new AzureResource(json) : null; } diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/AzureResourcePropertiesBase.PowerShell.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/AzureResourcePropertiesBase.PowerShell.cs similarity index 80% rename from src/ServiceLinker/generated/api/Models/Api20220501/AzureResourcePropertiesBase.PowerShell.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/AzureResourcePropertiesBase.PowerShell.cs index 059a3dbdb177..5735e79a024b 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/AzureResourcePropertiesBase.PowerShell.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/AzureResourcePropertiesBase.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class AzureResourcePropertiesBase /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class AzureResourcePropertiesBase /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,7 +55,7 @@ public partial class AzureResourcePropertiesBase partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -68,13 +70,13 @@ internal AzureResourcePropertiesBase(global::System.Collections.IDictionary cont // actually deserialize if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAzureResourcePropertiesBaseInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAzureResourcePropertiesBaseInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAzureResourcePropertiesBaseInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAzureResourcePropertiesBaseInternal)this).Type, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -89,35 +91,35 @@ internal AzureResourcePropertiesBase(global::System.Management.Automation.PSObje // actually deserialize if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAzureResourcePropertiesBaseInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAzureResourcePropertiesBaseInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAzureResourcePropertiesBaseInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAzureResourcePropertiesBaseInternal)this).Type, global::System.Convert.ToString); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAzureResourcePropertiesBase DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAzureResourcePropertiesBase DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new AzureResourcePropertiesBase(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAzureResourcePropertiesBase DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAzureResourcePropertiesBase DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AzureResourcePropertiesBase(content); } @@ -127,7 +129,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api2022050 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAzureResourcePropertiesBase FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAzureResourcePropertiesBase FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/AzureResourcePropertiesBase.TypeConverter.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/AzureResourcePropertiesBase.TypeConverter.cs similarity index 81% rename from src/ServiceLinker/generated/api/Models/Api20220501/AzureResourcePropertiesBase.TypeConverter.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/AzureResourcePropertiesBase.TypeConverter.cs index a99eee09f8fb..603f92d0188b 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/AzureResourcePropertiesBase.TypeConverter.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/AzureResourcePropertiesBase.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class AzureResourcePropertiesBaseTypeConverter : global::System.M { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the . + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAzureResourcePropertiesBase ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAzureResourcePropertiesBase ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAzureResourcePropertiesBase).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAzureResourcePropertiesBase).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/AzureResourcePropertiesBase.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/AzureResourcePropertiesBase.cs similarity index 89% rename from src/ServiceLinker/generated/api/Models/Api20220501/AzureResourcePropertiesBase.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/AzureResourcePropertiesBase.cs index a218338b52e3..cb0240d990ee 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/AzureResourcePropertiesBase.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/AzureResourcePropertiesBase.cs @@ -3,18 +3,18 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; /// The azure resource properties public partial class AzureResourcePropertiesBase : - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAzureResourcePropertiesBase, - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAzureResourcePropertiesBaseInternal + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAzureResourcePropertiesBase, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAzureResourcePropertiesBaseInternal { /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAzureResourcePropertiesBaseInternal.Type { get => this._type; set { {_type = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAzureResourcePropertiesBaseInternal.Type { get => this._type; set { {_type = value;} } } /// Backing field for property. private string _type= @"KeyVault"; diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/AzureResourcePropertiesBase.json.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/AzureResourcePropertiesBase.json.cs similarity index 93% rename from src/ServiceLinker/generated/api/Models/Api20220501/AzureResourcePropertiesBase.json.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/AzureResourcePropertiesBase.json.cs index 5b58d5b702e0..b40ac68e7ac0 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/AzureResourcePropertiesBase.json.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/AzureResourcePropertiesBase.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; @@ -70,15 +70,15 @@ internal AzureResourcePropertiesBase(Microsoft.Azure.PowerShell.Cmdlets.ServiceL } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAzureResourcePropertiesBase. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAzureResourcePropertiesBase interface is - /// polymorphic, and the precise model class that will get deserialized is determined at runtime based on the payload. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAzureResourcePropertiesBase. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAzureResourcePropertiesBase interface + /// is polymorphic, and the precise model class that will get deserialized is determined at runtime based on the payload. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAzureResourcePropertiesBase. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAzureResourcePropertiesBase. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAzureResourcePropertiesBase FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAzureResourcePropertiesBase FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json)) { diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/UserAssignedIdentityAuthInfo.PowerShell.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/BasicErrorDryrunPrerequisiteResult.PowerShell.cs similarity index 57% rename from src/ServiceLinker/generated/api/Models/Api20220501/UserAssignedIdentityAuthInfo.PowerShell.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/BasicErrorDryrunPrerequisiteResult.PowerShell.cs index 3bbcbefc709b..1b0264870e30 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/UserAssignedIdentityAuthInfo.PowerShell.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/BasicErrorDryrunPrerequisiteResult.PowerShell.cs @@ -3,13 +3,13 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; - /// The authentication info when authType is userAssignedIdentity - [System.ComponentModel.TypeConverter(typeof(UserAssignedIdentityAuthInfoTypeConverter))] - public partial class UserAssignedIdentityAuthInfo + /// The represent of basic error + [System.ComponentModel.TypeConverter(typeof(BasicErrorDryrunPrerequisiteResultTypeConverter))] + public partial class BasicErrorDryrunPrerequisiteResult { /// @@ -31,7 +31,8 @@ public partial class UserAssignedIdentityAuthInfo /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class UserAssignedIdentityAuthInfo /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,51 +55,11 @@ public partial class UserAssignedIdentityAuthInfo partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IUserAssignedIdentityAuthInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new UserAssignedIdentityAuthInfo(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IUserAssignedIdentityAuthInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new UserAssignedIdentityAuthInfo(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IUserAssignedIdentityAuthInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SerializationMode.IncludeAll)?.ToString(); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal UserAssignedIdentityAuthInfo(global::System.Collections.IDictionary content) + internal BasicErrorDryrunPrerequisiteResult(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); @@ -106,27 +68,27 @@ internal UserAssignedIdentityAuthInfo(global::System.Collections.IDictionary con return; } // actually deserialize - if (content.Contains("ClientId")) + if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IUserAssignedIdentityAuthInfoInternal)this).ClientId = (string) content.GetValueForProperty("ClientId",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IUserAssignedIdentityAuthInfoInternal)this).ClientId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IBasicErrorDryrunPrerequisiteResultInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IBasicErrorDryrunPrerequisiteResultInternal)this).Code, global::System.Convert.ToString); } - if (content.Contains("SubscriptionId")) + if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IUserAssignedIdentityAuthInfoInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IUserAssignedIdentityAuthInfoInternal)this).SubscriptionId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IBasicErrorDryrunPrerequisiteResultInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IBasicErrorDryrunPrerequisiteResultInternal)this).Message, global::System.Convert.ToString); } - if (content.Contains("AuthType")) + if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBaseInternal)this).AuthType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType) content.GetValueForProperty("AuthType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBaseInternal)this).AuthType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPrerequisiteResultInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DryrunPrerequisiteResultType) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPrerequisiteResultInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DryrunPrerequisiteResultType.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. - internal UserAssignedIdentityAuthInfo(global::System.Management.Automation.PSObject content) + internal BasicErrorDryrunPrerequisiteResult(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); @@ -135,24 +97,66 @@ internal UserAssignedIdentityAuthInfo(global::System.Management.Automation.PSObj return; } // actually deserialize - if (content.Contains("ClientId")) + if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IUserAssignedIdentityAuthInfoInternal)this).ClientId = (string) content.GetValueForProperty("ClientId",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IUserAssignedIdentityAuthInfoInternal)this).ClientId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IBasicErrorDryrunPrerequisiteResultInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IBasicErrorDryrunPrerequisiteResultInternal)this).Code, global::System.Convert.ToString); } - if (content.Contains("SubscriptionId")) + if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IUserAssignedIdentityAuthInfoInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IUserAssignedIdentityAuthInfoInternal)this).SubscriptionId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IBasicErrorDryrunPrerequisiteResultInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IBasicErrorDryrunPrerequisiteResultInternal)this).Message, global::System.Convert.ToString); } - if (content.Contains("AuthType")) + if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBaseInternal)this).AuthType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType) content.GetValueForProperty("AuthType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBaseInternal)this).AuthType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPrerequisiteResultInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DryrunPrerequisiteResultType) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPrerequisiteResultInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DryrunPrerequisiteResultType.CreateFrom); } AfterDeserializePSObject(content); } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IBasicErrorDryrunPrerequisiteResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new BasicErrorDryrunPrerequisiteResult(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IBasicErrorDryrunPrerequisiteResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new BasicErrorDryrunPrerequisiteResult(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// + /// an instance of the model class. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IBasicErrorDryrunPrerequisiteResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SerializationMode.IncludeAll)?.ToString(); } - /// The authentication info when authType is userAssignedIdentity - [System.ComponentModel.TypeConverter(typeof(UserAssignedIdentityAuthInfoTypeConverter))] - public partial interface IUserAssignedIdentityAuthInfo + /// The represent of basic error + [System.ComponentModel.TypeConverter(typeof(BasicErrorDryrunPrerequisiteResultTypeConverter))] + public partial interface IBasicErrorDryrunPrerequisiteResult { diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/BasicErrorDryrunPrerequisiteResult.TypeConverter.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/BasicErrorDryrunPrerequisiteResult.TypeConverter.cs new file mode 100644 index 000000000000..772111e04e47 --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/BasicErrorDryrunPrerequisiteResult.TypeConverter.cs @@ -0,0 +1,149 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class BasicErrorDryrunPrerequisiteResultTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise + /// false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IBasicErrorDryrunPrerequisiteResult ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IBasicErrorDryrunPrerequisiteResult).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return BasicErrorDryrunPrerequisiteResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return BasicErrorDryrunPrerequisiteResult.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return BasicErrorDryrunPrerequisiteResult.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/BasicErrorDryrunPrerequisiteResult.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/BasicErrorDryrunPrerequisiteResult.cs new file mode 100644 index 000000000000..b2b089192aca --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/BasicErrorDryrunPrerequisiteResult.cs @@ -0,0 +1,91 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; + + /// The represent of basic error + public partial class BasicErrorDryrunPrerequisiteResult : + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IBasicErrorDryrunPrerequisiteResult, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IBasicErrorDryrunPrerequisiteResultInternal, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPrerequisiteResult __dryrunPrerequisiteResult = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DryrunPrerequisiteResult(); + + /// Backing field for property. + private string _code; + + /// The error code. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] + public string Code { get => this._code; set => this._code = value; } + + /// Backing field for property. + private string _message; + + /// The error message. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] + public string Message { get => this._message; set => this._message = value; } + + /// The type of dryrun result. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DryrunPrerequisiteResultType Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPrerequisiteResultInternal)__dryrunPrerequisiteResult).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPrerequisiteResultInternal)__dryrunPrerequisiteResult).Type = value ; } + + /// Creates an new instance. + public BasicErrorDryrunPrerequisiteResult() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__dryrunPrerequisiteResult), __dryrunPrerequisiteResult); + await eventListener.AssertObjectIsValid(nameof(__dryrunPrerequisiteResult), __dryrunPrerequisiteResult); + } + } + /// The represent of basic error + public partial interface IBasicErrorDryrunPrerequisiteResult : + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPrerequisiteResult + { + /// The error code. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The error code.", + SerializedName = @"code", + PossibleTypes = new [] { typeof(string) })] + string Code { get; set; } + /// The error message. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The error message.", + SerializedName = @"message", + PossibleTypes = new [] { typeof(string) })] + string Message { get; set; } + + } + /// The represent of basic error + internal partial interface IBasicErrorDryrunPrerequisiteResultInternal : + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPrerequisiteResultInternal + { + /// The error code. + string Code { get; set; } + /// The error message. + string Message { get; set; } + + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/BasicErrorDryrunPrerequisiteResult.json.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/BasicErrorDryrunPrerequisiteResult.json.cs new file mode 100644 index 000000000000..528d68dae2fd --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/BasicErrorDryrunPrerequisiteResult.json.cs @@ -0,0 +1,113 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; + + /// The represent of basic error + public partial class BasicErrorDryrunPrerequisiteResult + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject instance to deserialize from. + internal BasicErrorDryrunPrerequisiteResult(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __dryrunPrerequisiteResult = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DryrunPrerequisiteResult(json); + {_code = If( json?.PropertyT("code"), out var __jsonCode) ? (string)__jsonCode : (string)Code;} + {_message = If( json?.PropertyT("message"), out var __jsonMessage) ? (string)__jsonMessage : (string)Message;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IBasicErrorDryrunPrerequisiteResult. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IBasicErrorDryrunPrerequisiteResult. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IBasicErrorDryrunPrerequisiteResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json ? new BasicErrorDryrunPrerequisiteResult(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + __dryrunPrerequisiteResult?.ToJson(container, serializationMode); + AddIf( null != (((object)this._code)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonString(this._code.ToString()) : null, "code" ,container.Add ); + AddIf( null != (((object)this._message)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonString(this._message.ToString()) : null, "message" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationInfo.PowerShell.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationInfo.PowerShell.cs new file mode 100644 index 000000000000..408f5b0ac05a --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationInfo.PowerShell.cs @@ -0,0 +1,172 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; + + /// + /// The configuration information, used to generate configurations or save to applications + /// + [System.ComponentModel.TypeConverter(typeof(ConfigurationInfoTypeConverter))] + public partial class ConfigurationInfo + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ConfigurationInfo(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("DeleteOrUpdateBehavior")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoInternal)this).DeleteOrUpdateBehavior = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior?) content.GetValueForProperty("DeleteOrUpdateBehavior",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoInternal)this).DeleteOrUpdateBehavior, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior.CreateFrom); + } + if (content.Contains("Action")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType?) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoInternal)this).Action, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType.CreateFrom); + } + if (content.Contains("CustomizedKey")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoInternal)this).CustomizedKey = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoCustomizedKeys) content.GetValueForProperty("CustomizedKey",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoInternal)this).CustomizedKey, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationInfoCustomizedKeysTypeConverter.ConvertFrom); + } + if (content.Contains("AdditionalConfiguration")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoInternal)this).AdditionalConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoAdditionalConfigurations) content.GetValueForProperty("AdditionalConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoInternal)this).AdditionalConfiguration, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationInfoAdditionalConfigurationsTypeConverter.ConvertFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ConfigurationInfo(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("DeleteOrUpdateBehavior")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoInternal)this).DeleteOrUpdateBehavior = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior?) content.GetValueForProperty("DeleteOrUpdateBehavior",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoInternal)this).DeleteOrUpdateBehavior, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior.CreateFrom); + } + if (content.Contains("Action")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType?) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoInternal)this).Action, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType.CreateFrom); + } + if (content.Contains("CustomizedKey")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoInternal)this).CustomizedKey = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoCustomizedKeys) content.GetValueForProperty("CustomizedKey",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoInternal)this).CustomizedKey, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationInfoCustomizedKeysTypeConverter.ConvertFrom); + } + if (content.Contains("AdditionalConfiguration")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoInternal)this).AdditionalConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoAdditionalConfigurations) content.GetValueForProperty("AdditionalConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoInternal)this).AdditionalConfiguration, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationInfoAdditionalConfigurationsTypeConverter.ConvertFrom); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ConfigurationInfo(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ConfigurationInfo(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The configuration information, used to generate configurations or save to applications + [System.ComponentModel.TypeConverter(typeof(ConfigurationInfoTypeConverter))] + public partial interface IConfigurationInfo + + { + + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationInfo.TypeConverter.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationInfo.TypeConverter.cs new file mode 100644 index 000000000000..e1fed8292a32 --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationInfo.TypeConverter.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ConfigurationInfoTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfo ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfo).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ConfigurationInfo.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ConfigurationInfo.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ConfigurationInfo.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationInfo.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationInfo.cs new file mode 100644 index 000000000000..c4ac47346971 --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationInfo.cs @@ -0,0 +1,137 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; + + /// + /// The configuration information, used to generate configurations or save to applications + /// + public partial class ConfigurationInfo : + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfo, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType? _action; + + /// + /// Optional, indicate whether to apply configurations on source application. If enable, generate configurations and applied + /// to the source application. Default is enable. If optOut, no configuration change will be made on source. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType? Action { get => this._action; set => this._action = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoAdditionalConfigurations _additionalConfiguration; + + /// + /// A dictionary of additional configurations to be added. Service will auto generate a set of basic configurations and this + /// property is to full fill more customized configurations + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoAdditionalConfigurations AdditionalConfiguration { get => (this._additionalConfiguration = this._additionalConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationInfoAdditionalConfigurations()); set => this._additionalConfiguration = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoCustomizedKeys _customizedKey; + + /// + /// Optional. A dictionary of default key name and customized key name mapping. If not specified, default key name will be + /// used for generate configurations + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoCustomizedKeys CustomizedKey { get => (this._customizedKey = this._customizedKey ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationInfoCustomizedKeys()); set => this._customizedKey = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior? _deleteOrUpdateBehavior; + + /// + /// Indicates whether to clean up previous operation when Linker is updating or deleting + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior? DeleteOrUpdateBehavior { get => this._deleteOrUpdateBehavior; set => this._deleteOrUpdateBehavior = value; } + + /// Creates an new instance. + public ConfigurationInfo() + { + + } + } + /// The configuration information, used to generate configurations or save to applications + public partial interface IConfigurationInfo : + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IJsonSerializable + { + /// + /// Optional, indicate whether to apply configurations on source application. If enable, generate configurations and applied + /// to the source application. Default is enable. If optOut, no configuration change will be made on source. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Optional, indicate whether to apply configurations on source application. If enable, generate configurations and applied to the source application. Default is enable. If optOut, no configuration change will be made on source.", + SerializedName = @"action", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType? Action { get; set; } + /// + /// A dictionary of additional configurations to be added. Service will auto generate a set of basic configurations and this + /// property is to full fill more customized configurations + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A dictionary of additional configurations to be added. Service will auto generate a set of basic configurations and this property is to full fill more customized configurations", + SerializedName = @"additionalConfigurations", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoAdditionalConfigurations) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoAdditionalConfigurations AdditionalConfiguration { get; set; } + /// + /// Optional. A dictionary of default key name and customized key name mapping. If not specified, default key name will be + /// used for generate configurations + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Optional. A dictionary of default key name and customized key name mapping. If not specified, default key name will be used for generate configurations", + SerializedName = @"customizedKeys", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoCustomizedKeys) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoCustomizedKeys CustomizedKey { get; set; } + /// + /// Indicates whether to clean up previous operation when Linker is updating or deleting + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Indicates whether to clean up previous operation when Linker is updating or deleting", + SerializedName = @"deleteOrUpdateBehavior", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior? DeleteOrUpdateBehavior { get; set; } + + } + /// The configuration information, used to generate configurations or save to applications + internal partial interface IConfigurationInfoInternal + + { + /// + /// Optional, indicate whether to apply configurations on source application. If enable, generate configurations and applied + /// to the source application. Default is enable. If optOut, no configuration change will be made on source. + /// + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType? Action { get; set; } + /// + /// A dictionary of additional configurations to be added. Service will auto generate a set of basic configurations and this + /// property is to full fill more customized configurations + /// + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoAdditionalConfigurations AdditionalConfiguration { get; set; } + /// + /// Optional. A dictionary of default key name and customized key name mapping. If not specified, default key name will be + /// used for generate configurations + /// + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoCustomizedKeys CustomizedKey { get; set; } + /// + /// Indicates whether to clean up previous operation when Linker is updating or deleting + /// + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior? DeleteOrUpdateBehavior { get; set; } + + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationInfo.json.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationInfo.json.cs new file mode 100644 index 000000000000..a25db7096226 --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationInfo.json.cs @@ -0,0 +1,116 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; + + /// + /// The configuration information, used to generate configurations or save to applications + /// + public partial class ConfigurationInfo + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject instance to deserialize from. + internal ConfigurationInfo(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_deleteOrUpdateBehavior = If( json?.PropertyT("deleteOrUpdateBehavior"), out var __jsonDeleteOrUpdateBehavior) ? (string)__jsonDeleteOrUpdateBehavior : (string)DeleteOrUpdateBehavior;} + {_action = If( json?.PropertyT("action"), out var __jsonAction) ? (string)__jsonAction : (string)Action;} + {_customizedKey = If( json?.PropertyT("customizedKeys"), out var __jsonCustomizedKeys) ? Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationInfoCustomizedKeys.FromJson(__jsonCustomizedKeys) : CustomizedKey;} + {_additionalConfiguration = If( json?.PropertyT("additionalConfigurations"), out var __jsonAdditionalConfigurations) ? Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationInfoAdditionalConfigurations.FromJson(__jsonAdditionalConfigurations) : AdditionalConfiguration;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfo. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfo. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json ? new ConfigurationInfo(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._deleteOrUpdateBehavior)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonString(this._deleteOrUpdateBehavior.ToString()) : null, "deleteOrUpdateBehavior" ,container.Add ); + AddIf( null != (((object)this._action)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonString(this._action.ToString()) : null, "action" ,container.Add ); + AddIf( null != this._customizedKey ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) this._customizedKey.ToJson(null,serializationMode) : null, "customizedKeys" ,container.Add ); + AddIf( null != this._additionalConfiguration ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) this._additionalConfiguration.ToJson(null,serializationMode) : null, "additionalConfigurations" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationInfoAdditionalConfigurations.PowerShell.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationInfoAdditionalConfigurations.PowerShell.cs new file mode 100644 index 000000000000..1f4349af5a72 --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationInfoAdditionalConfigurations.PowerShell.cs @@ -0,0 +1,149 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; + + /// + /// A dictionary of additional configurations to be added. Service will auto generate a set of basic configurations and this + /// property is to full fill more customized configurations + /// + [System.ComponentModel.TypeConverter(typeof(ConfigurationInfoAdditionalConfigurationsTypeConverter))] + public partial class ConfigurationInfoAdditionalConfigurations + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ConfigurationInfoAdditionalConfigurations(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + // this type is a dictionary; copy elements from source to here. + CopyFrom(content); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ConfigurationInfoAdditionalConfigurations(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + // this type is a dictionary; copy elements from source to here. + CopyFrom(content); + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoAdditionalConfigurations DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ConfigurationInfoAdditionalConfigurations(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoAdditionalConfigurations DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ConfigurationInfoAdditionalConfigurations(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json + /// string. + /// + /// a string containing a JSON serialized instance of this model. + /// + /// an instance of the model class. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoAdditionalConfigurations FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// A dictionary of additional configurations to be added. Service will auto generate a set of basic configurations and this + /// property is to full fill more customized configurations + [System.ComponentModel.TypeConverter(typeof(ConfigurationInfoAdditionalConfigurationsTypeConverter))] + public partial interface IConfigurationInfoAdditionalConfigurations + + { + + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationInfoAdditionalConfigurations.TypeConverter.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationInfoAdditionalConfigurations.TypeConverter.cs new file mode 100644 index 000000000000..209dae4247d5 --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationInfoAdditionalConfigurations.TypeConverter.cs @@ -0,0 +1,151 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ConfigurationInfoAdditionalConfigurationsTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise + /// false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoAdditionalConfigurations ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoAdditionalConfigurations).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ConfigurationInfoAdditionalConfigurations.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ConfigurationInfoAdditionalConfigurations.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ConfigurationInfoAdditionalConfigurations.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationInfoAdditionalConfigurations.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationInfoAdditionalConfigurations.cs new file mode 100644 index 000000000000..ac75aa109327 --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationInfoAdditionalConfigurations.cs @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; + + /// + /// A dictionary of additional configurations to be added. Service will auto generate a set of basic configurations and this + /// property is to full fill more customized configurations + /// + public partial class ConfigurationInfoAdditionalConfigurations : + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoAdditionalConfigurations, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoAdditionalConfigurationsInternal + { + + /// + /// Creates an new instance. + /// + public ConfigurationInfoAdditionalConfigurations() + { + + } + } + /// A dictionary of additional configurations to be added. Service will auto generate a set of basic configurations and this + /// property is to full fill more customized configurations + public partial interface IConfigurationInfoAdditionalConfigurations : + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IAssociativeArray + { + + } + /// A dictionary of additional configurations to be added. Service will auto generate a set of basic configurations and this + /// property is to full fill more customized configurations + internal partial interface IConfigurationInfoAdditionalConfigurationsInternal + + { + + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationInfoAdditionalConfigurations.dictionary.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationInfoAdditionalConfigurations.dictionary.cs new file mode 100644 index 000000000000..0f53096fcf54 --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationInfoAdditionalConfigurations.dictionary.cs @@ -0,0 +1,75 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; + + public partial class ConfigurationInfoAdditionalConfigurations : + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IAssociativeArray + { + protected global::System.Collections.Generic.Dictionary __additionalProperties = new global::System.Collections.Generic.Dictionary(); + + global::System.Collections.Generic.IDictionary Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IAssociativeArray.AdditionalProperties { get => __additionalProperties; } + + int Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IAssociativeArray.Count { get => __additionalProperties.Count; } + + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IAssociativeArray.Keys { get => __additionalProperties.Keys; } + + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IAssociativeArray.Values { get => __additionalProperties.Values; } + + public string this[global::System.String index] { get => __additionalProperties[index]; set => __additionalProperties[index] = value; } + + /// + /// + public void Add(global::System.String key, string value) => __additionalProperties.Add( key, value); + + public void Clear() => __additionalProperties.Clear(); + + /// + public bool ContainsKey(global::System.String key) => __additionalProperties.ContainsKey( key); + + /// + public void CopyFrom(global::System.Collections.IDictionary source) + { + if (null != source) + { + foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) + { + if ((null != property.Key && null != property.Value)) + { + this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); + } + } + } + } + + /// + public void CopyFrom(global::System.Management.Automation.PSObject source) + { + if (null != source) + { + foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) + { + if ((null != property.Key && null != property.Value)) + { + this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); + } + } + } + } + + /// + public bool Remove(global::System.String key) => __additionalProperties.Remove( key); + + /// + /// + public bool TryGetValue(global::System.String key, out string value) => __additionalProperties.TryGetValue( key, out value); + + /// + + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationInfoAdditionalConfigurations source) => source.__additionalProperties; + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationInfoAdditionalConfigurations.json.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationInfoAdditionalConfigurations.json.cs new file mode 100644 index 000000000000..7d14125c3e96 --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationInfoAdditionalConfigurations.json.cs @@ -0,0 +1,114 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; + + /// + /// A dictionary of additional configurations to be added. Service will auto generate a set of basic configurations and this + /// property is to full fill more customized configurations + /// + public partial class ConfigurationInfoAdditionalConfigurations + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject instance to deserialize from. + /// + internal ConfigurationInfoAdditionalConfigurations(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json, global::System.Collections.Generic.HashSet exclusions = null) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.JsonSerializable.FromJson( json, ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IAssociativeArray)this).AdditionalProperties, null ,exclusions ); + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoAdditionalConfigurations. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoAdditionalConfigurations. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoAdditionalConfigurations FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json ? new ConfigurationInfoAdditionalConfigurations(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.JsonSerializable.ToJson( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IAssociativeArray)this).AdditionalProperties, container); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationInfoCustomizedKeys.PowerShell.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationInfoCustomizedKeys.PowerShell.cs new file mode 100644 index 000000000000..e6093882266b --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationInfoCustomizedKeys.PowerShell.cs @@ -0,0 +1,146 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; + + /// + /// Optional. A dictionary of default key name and customized key name mapping. If not specified, default key name will be + /// used for generate configurations + /// + [System.ComponentModel.TypeConverter(typeof(ConfigurationInfoCustomizedKeysTypeConverter))] + public partial class ConfigurationInfoCustomizedKeys + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ConfigurationInfoCustomizedKeys(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + // this type is a dictionary; copy elements from source to here. + CopyFrom(content); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ConfigurationInfoCustomizedKeys(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + // this type is a dictionary; copy elements from source to here. + CopyFrom(content); + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoCustomizedKeys DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ConfigurationInfoCustomizedKeys(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoCustomizedKeys DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ConfigurationInfoCustomizedKeys(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoCustomizedKeys FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Optional. A dictionary of default key name and customized key name mapping. If not specified, default key name will be + /// used for generate configurations + [System.ComponentModel.TypeConverter(typeof(ConfigurationInfoCustomizedKeysTypeConverter))] + public partial interface IConfigurationInfoCustomizedKeys + + { + + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationInfoCustomizedKeys.TypeConverter.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationInfoCustomizedKeys.TypeConverter.cs new file mode 100644 index 000000000000..08f2b9828dc0 --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationInfoCustomizedKeys.TypeConverter.cs @@ -0,0 +1,148 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ConfigurationInfoCustomizedKeysTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoCustomizedKeys ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoCustomizedKeys).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ConfigurationInfoCustomizedKeys.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ConfigurationInfoCustomizedKeys.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ConfigurationInfoCustomizedKeys.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationInfoCustomizedKeys.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationInfoCustomizedKeys.cs new file mode 100644 index 000000000000..4683f62ede9c --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationInfoCustomizedKeys.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; + + /// + /// Optional. A dictionary of default key name and customized key name mapping. If not specified, default key name will be + /// used for generate configurations + /// + public partial class ConfigurationInfoCustomizedKeys : + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoCustomizedKeys, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoCustomizedKeysInternal + { + + /// Creates an new instance. + public ConfigurationInfoCustomizedKeys() + { + + } + } + /// Optional. A dictionary of default key name and customized key name mapping. If not specified, default key name will be + /// used for generate configurations + public partial interface IConfigurationInfoCustomizedKeys : + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IAssociativeArray + { + + } + /// Optional. A dictionary of default key name and customized key name mapping. If not specified, default key name will be + /// used for generate configurations + internal partial interface IConfigurationInfoCustomizedKeysInternal + + { + + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationInfoCustomizedKeys.dictionary.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationInfoCustomizedKeys.dictionary.cs new file mode 100644 index 000000000000..822a58da7cb5 --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationInfoCustomizedKeys.dictionary.cs @@ -0,0 +1,75 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; + + public partial class ConfigurationInfoCustomizedKeys : + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IAssociativeArray + { + protected global::System.Collections.Generic.Dictionary __additionalProperties = new global::System.Collections.Generic.Dictionary(); + + global::System.Collections.Generic.IDictionary Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IAssociativeArray.AdditionalProperties { get => __additionalProperties; } + + int Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IAssociativeArray.Count { get => __additionalProperties.Count; } + + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IAssociativeArray.Keys { get => __additionalProperties.Keys; } + + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IAssociativeArray.Values { get => __additionalProperties.Values; } + + public string this[global::System.String index] { get => __additionalProperties[index]; set => __additionalProperties[index] = value; } + + /// + /// + public void Add(global::System.String key, string value) => __additionalProperties.Add( key, value); + + public void Clear() => __additionalProperties.Clear(); + + /// + public bool ContainsKey(global::System.String key) => __additionalProperties.ContainsKey( key); + + /// + public void CopyFrom(global::System.Collections.IDictionary source) + { + if (null != source) + { + foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) + { + if ((null != property.Key && null != property.Value)) + { + this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); + } + } + } + } + + /// + public void CopyFrom(global::System.Management.Automation.PSObject source) + { + if (null != source) + { + foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) + { + if ((null != property.Key && null != property.Value)) + { + this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); + } + } + } + } + + /// + public bool Remove(global::System.String key) => __additionalProperties.Remove( key); + + /// + /// + public bool TryGetValue(global::System.String key, out string value) => __additionalProperties.TryGetValue( key, out value); + + /// + + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationInfoCustomizedKeys source) => source.__additionalProperties; + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationInfoCustomizedKeys.json.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationInfoCustomizedKeys.json.cs new file mode 100644 index 000000000000..c02c2378d73f --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationInfoCustomizedKeys.json.cs @@ -0,0 +1,112 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; + + /// + /// Optional. A dictionary of default key name and customized key name mapping. If not specified, default key name will be + /// used for generate configurations + /// + public partial class ConfigurationInfoCustomizedKeys + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject instance to deserialize from. + /// + internal ConfigurationInfoCustomizedKeys(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json, global::System.Collections.Generic.HashSet exclusions = null) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.JsonSerializable.FromJson( json, ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IAssociativeArray)this).AdditionalProperties, null ,exclusions ); + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoCustomizedKeys. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoCustomizedKeys. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoCustomizedKeys FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json ? new ConfigurationInfoCustomizedKeys(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.JsonSerializable.ToJson( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IAssociativeArray)this).AdditionalProperties, container); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationName.PowerShell.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationName.PowerShell.cs new file mode 100644 index 000000000000..dbb784742dca --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationName.PowerShell.cs @@ -0,0 +1,154 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; + + /// The configuration names. + [System.ComponentModel.TypeConverter(typeof(ConfigurationNameTypeConverter))] + public partial class ConfigurationName + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ConfigurationName(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameInternal)this).Value = (string) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameInternal)this).Value, global::System.Convert.ToString); + } + if (content.Contains("Description")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameInternal)this).Description, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ConfigurationName(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameInternal)this).Value = (string) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameInternal)this).Value, global::System.Convert.ToString); + } + if (content.Contains("Description")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameInternal)this).Description, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationName DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ConfigurationName(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationName DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ConfigurationName(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationName FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The configuration names. + [System.ComponentModel.TypeConverter(typeof(ConfigurationNameTypeConverter))] + public partial interface IConfigurationName + + { + + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationName.TypeConverter.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationName.TypeConverter.cs new file mode 100644 index 000000000000..087347d92ab0 --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationName.TypeConverter.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ConfigurationNameTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationName ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationName).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ConfigurationName.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ConfigurationName.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ConfigurationName.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationName.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationName.cs new file mode 100644 index 000000000000..3f126ca976e6 --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationName.cs @@ -0,0 +1,67 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; + + /// The configuration names. + public partial class ConfigurationName : + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationName, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameInternal + { + + /// Backing field for property. + private string _description; + + /// Description for the configuration name. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] + public string Description { get => this._description; set => this._description = value; } + + /// Backing field for property. + private string _value; + + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] + public string Value { get => this._value; set => this._value = value; } + + /// Creates an new instance. + public ConfigurationName() + { + + } + } + /// The configuration names. + public partial interface IConfigurationName : + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IJsonSerializable + { + /// Description for the configuration name. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Description for the configuration name.", + SerializedName = @"description", + PossibleTypes = new [] { typeof(string) })] + string Description { get; set; } + + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"", + SerializedName = @"value", + PossibleTypes = new [] { typeof(string) })] + string Value { get; set; } + + } + /// The configuration names. + internal partial interface IConfigurationNameInternal + + { + /// Description for the configuration name. + string Description { get; set; } + + string Value { get; set; } + + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationName.json.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationName.json.cs new file mode 100644 index 000000000000..84e80284e383 --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationName.json.cs @@ -0,0 +1,110 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; + + /// The configuration names. + public partial class ConfigurationName + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject instance to deserialize from. + internal ConfigurationName(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? (string)__jsonValue : (string)Value;} + {_description = If( json?.PropertyT("description"), out var __jsonDescription) ? (string)__jsonDescription : (string)Description;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationName. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationName. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationName FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json ? new ConfigurationName(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._value)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonString(this._value.ToString()) : null, "value" ,container.Add ); + AddIf( null != (((object)this._description)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonString(this._description.ToString()) : null, "description" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationNameItem.PowerShell.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationNameItem.PowerShell.cs new file mode 100644 index 000000000000..bcbe1fe9d68b --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationNameItem.PowerShell.cs @@ -0,0 +1,176 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; + + [System.ComponentModel.TypeConverter(typeof(ConfigurationNameItemTypeConverter))] + public partial class ConfigurationNameItem + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ConfigurationNameItem(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameItemInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNames) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameItemInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationNamesTypeConverter.ConvertFrom); + } + if (content.Contains("ClientType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameItemInternal)this).ClientType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType?) content.GetValueForProperty("ClientType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameItemInternal)this).ClientType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType.CreateFrom); + } + if (content.Contains("AuthType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameItemInternal)this).AuthType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType?) content.GetValueForProperty("AuthType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameItemInternal)this).AuthType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType.CreateFrom); + } + if (content.Contains("TargetService")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameItemInternal)this).TargetService = (string) content.GetValueForProperty("TargetService",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameItemInternal)this).TargetService, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameItemInternal)this).Name = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationName[]) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameItemInternal)this).Name, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationNameTypeConverter.ConvertFrom)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ConfigurationNameItem(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameItemInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNames) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameItemInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationNamesTypeConverter.ConvertFrom); + } + if (content.Contains("ClientType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameItemInternal)this).ClientType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType?) content.GetValueForProperty("ClientType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameItemInternal)this).ClientType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType.CreateFrom); + } + if (content.Contains("AuthType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameItemInternal)this).AuthType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType?) content.GetValueForProperty("AuthType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameItemInternal)this).AuthType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType.CreateFrom); + } + if (content.Contains("TargetService")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameItemInternal)this).TargetService = (string) content.GetValueForProperty("TargetService",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameItemInternal)this).TargetService, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameItemInternal)this).Name = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationName[]) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameItemInternal)this).Name, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationNameTypeConverter.ConvertFrom)); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameItem DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ConfigurationNameItem(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameItem DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ConfigurationNameItem(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameItem FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + [System.ComponentModel.TypeConverter(typeof(ConfigurationNameItemTypeConverter))] + public partial interface IConfigurationNameItem + + { + + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationNameItem.TypeConverter.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationNameItem.TypeConverter.cs new file mode 100644 index 000000000000..5db64b9dbce8 --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationNameItem.TypeConverter.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ConfigurationNameItemTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameItem ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameItem).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ConfigurationNameItem.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ConfigurationNameItem.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ConfigurationNameItem.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationNameItem.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationNameItem.cs new file mode 100644 index 000000000000..ed9f67bd898e --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationNameItem.cs @@ -0,0 +1,99 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; + + public partial class ConfigurationNameItem : + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameItem, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameItemInternal + { + + /// The auth type. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType? AuthType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNamesInternal)Property).AuthType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNamesInternal)Property).AuthType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType)""); } + + /// The client type for configuration names. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType? ClientType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNamesInternal)Property).ClientType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNamesInternal)Property).ClientType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType)""); } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNames Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameItemInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationNames()); set { {_property = value;} } } + + /// The configuration names to be set in compute service environment. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationName[] Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNamesInternal)Property).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNamesInternal)Property).Name = value ?? null /* arrayOf */; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNames _property; + + /// The result detail. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNames Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationNames()); set => this._property = value; } + + /// The target service provider name and resource name. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] + public string TargetService { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNamesInternal)Property).TargetService; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNamesInternal)Property).TargetService = value ?? null; } + + /// Creates an new instance. + public ConfigurationNameItem() + { + + } + } + public partial interface IConfigurationNameItem : + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IJsonSerializable + { + /// The auth type. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The auth type.", + SerializedName = @"authType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType? AuthType { get; set; } + /// The client type for configuration names. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The client type for configuration names.", + SerializedName = @"clientType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType? ClientType { get; set; } + /// The configuration names to be set in compute service environment. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The configuration names to be set in compute service environment.", + SerializedName = @"names", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationName) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationName[] Name { get; set; } + /// The target service provider name and resource name. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The target service provider name and resource name.", + SerializedName = @"targetService", + PossibleTypes = new [] { typeof(string) })] + string TargetService { get; set; } + + } + internal partial interface IConfigurationNameItemInternal + + { + /// The auth type. + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType? AuthType { get; set; } + /// The client type for configuration names. + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType? ClientType { get; set; } + /// The configuration names to be set in compute service environment. + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationName[] Name { get; set; } + /// The result detail. + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNames Property { get; set; } + /// The target service provider name and resource name. + string TargetService { get; set; } + + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationNameItem.json.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationNameItem.json.cs new file mode 100644 index 000000000000..9999c2dd1420 --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationNameItem.json.cs @@ -0,0 +1,107 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; + + public partial class ConfigurationNameItem + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject instance to deserialize from. + internal ConfigurationNameItem(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationNames.FromJson(__jsonProperties) : Property;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameItem. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameItem. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameItem FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json ? new ConfigurationNameItem(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationNameResult.PowerShell.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationNameResult.PowerShell.cs new file mode 100644 index 000000000000..1ef4862ca126 --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationNameResult.PowerShell.cs @@ -0,0 +1,156 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; + + /// + /// Configuration Name list which will be set based on different target resource, client type, auth type. + /// + [System.ComponentModel.TypeConverter(typeof(ConfigurationNameResultTypeConverter))] + public partial class ConfigurationNameResult + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ConfigurationNameResult(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameItem[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationNameItemTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameResultInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ConfigurationNameResult(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameItem[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationNameItemTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameResultInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ConfigurationNameResult(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ConfigurationNameResult(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Configuration Name list which will be set based on different target resource, client type, auth type. + [System.ComponentModel.TypeConverter(typeof(ConfigurationNameResultTypeConverter))] + public partial interface IConfigurationNameResult + + { + + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationNameResult.TypeConverter.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationNameResult.TypeConverter.cs new file mode 100644 index 000000000000..62162b5a585a --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationNameResult.TypeConverter.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ConfigurationNameResultTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameResult ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameResult).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ConfigurationNameResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ConfigurationNameResult.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ConfigurationNameResult.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationNameResult.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationNameResult.cs new file mode 100644 index 000000000000..56a3d8b7865a --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationNameResult.cs @@ -0,0 +1,73 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; + + /// + /// Configuration Name list which will be set based on different target resource, client type, auth type. + /// + public partial class ConfigurationNameResult : + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameResult, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameResultInternal + { + + /// Internal Acessors for NextLink + string Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + + /// Backing field for property. + private string _nextLink; + + /// Link to next page of resources. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] + public string NextLink { get => this._nextLink; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameItem[] _value; + + /// Expected configuration names for each target service. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameItem[] Value { get => this._value; set => this._value = value; } + + /// Creates an new instance. + public ConfigurationNameResult() + { + + } + } + /// Configuration Name list which will be set based on different target resource, client type, auth type. + public partial interface IConfigurationNameResult : + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IJsonSerializable + { + /// Link to next page of resources. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Link to next page of resources.", + SerializedName = @"nextLink", + PossibleTypes = new [] { typeof(string) })] + string NextLink { get; } + /// Expected configuration names for each target service. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Expected configuration names for each target service.", + SerializedName = @"value", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameItem) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameItem[] Value { get; set; } + + } + /// Configuration Name list which will be set based on different target resource, client type, auth type. + internal partial interface IConfigurationNameResultInternal + + { + /// Link to next page of resources. + string NextLink { get; set; } + /// Expected configuration names for each target service. + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameItem[] Value { get; set; } + + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationNameResult.json.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationNameResult.json.cs new file mode 100644 index 000000000000..51e3589d0ff6 --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationNameResult.json.cs @@ -0,0 +1,123 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; + + /// + /// Configuration Name list which will be set based on different target resource, client type, auth type. + /// + public partial class ConfigurationNameResult + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject instance to deserialize from. + internal ConfigurationNameResult(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameItem) (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationNameItem.FromJson(__u) )) ))() : null : Value;} + {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameResult. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameResult. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json ? new ConfigurationNameResult(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (null != this._value) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("value",__w); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationNames.PowerShell.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationNames.PowerShell.cs new file mode 100644 index 000000000000..fe3af8c5026e --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationNames.PowerShell.cs @@ -0,0 +1,172 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; + + /// + /// The configuration names which will be set based on specific target resource, client type, auth type. + /// + [System.ComponentModel.TypeConverter(typeof(ConfigurationNamesTypeConverter))] + public partial class ConfigurationNames + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ConfigurationNames(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("TargetService")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNamesInternal)this).TargetService = (string) content.GetValueForProperty("TargetService",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNamesInternal)this).TargetService, global::System.Convert.ToString); + } + if (content.Contains("ClientType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNamesInternal)this).ClientType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType?) content.GetValueForProperty("ClientType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNamesInternal)this).ClientType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType.CreateFrom); + } + if (content.Contains("AuthType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNamesInternal)this).AuthType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType?) content.GetValueForProperty("AuthType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNamesInternal)this).AuthType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType.CreateFrom); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNamesInternal)this).Name = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationName[]) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNamesInternal)this).Name, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationNameTypeConverter.ConvertFrom)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ConfigurationNames(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("TargetService")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNamesInternal)this).TargetService = (string) content.GetValueForProperty("TargetService",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNamesInternal)this).TargetService, global::System.Convert.ToString); + } + if (content.Contains("ClientType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNamesInternal)this).ClientType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType?) content.GetValueForProperty("ClientType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNamesInternal)this).ClientType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType.CreateFrom); + } + if (content.Contains("AuthType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNamesInternal)this).AuthType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType?) content.GetValueForProperty("AuthType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNamesInternal)this).AuthType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType.CreateFrom); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNamesInternal)this).Name = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationName[]) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNamesInternal)this).Name, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationNameTypeConverter.ConvertFrom)); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNames DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ConfigurationNames(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNames DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ConfigurationNames(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNames FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The configuration names which will be set based on specific target resource, client type, auth type. + [System.ComponentModel.TypeConverter(typeof(ConfigurationNamesTypeConverter))] + public partial interface IConfigurationNames + + { + + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/SourceConfigurationResult.TypeConverter.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationNames.TypeConverter.cs similarity index 70% rename from src/ServiceLinker/generated/api/Models/Api20220501/SourceConfigurationResult.TypeConverter.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationNames.TypeConverter.cs index b7a68551f48b..3f02c873dc19 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/SourceConfigurationResult.TypeConverter.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationNames.TypeConverter.cs @@ -3,36 +3,36 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; /// - /// A PowerShell PSTypeConverter to support converting to an instance of + /// A PowerShell PSTypeConverter to support converting to an instance of /// - public partial class SourceConfigurationResultTypeConverter : global::System.Management.Automation.PSTypeConverter + public partial class ConfigurationNamesTypeConverter : global::System.Management.Automation.PSTypeConverter { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the . + /// Determines if the converter can convert the parameter to the + /// type. /// - /// the instance to check if it can be converted to the the instance to check if it can be converted to the type. /// - /// true if the instance could be converted to a type, otherwise false + /// true if the instance could be converted to a type, otherwise false /// public static bool CanConvertFrom(dynamic sourceValue) { @@ -75,51 +75,51 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to /// not used by this TypeConverter. /// when set to true, will ignore the case when converting. /// - /// an instance of , or null if there is no suitable conversion. + /// an instance of , or null if there is no suitable conversion. /// public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// - /// the value to convert into an instance of . + /// the value to convert into an instance of . /// - /// an instance of , or null if there is no suitable conversion. + /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISourceConfigurationResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNames ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISourceConfigurationResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNames).IsAssignableFrom(type)) { return sourceValue; } try { - return SourceConfigurationResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + return ConfigurationNames.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; } catch { @@ -127,11 +127,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api2022050 } if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) { - return SourceConfigurationResult.DeserializeFromPSObject(sourceValue); + return ConfigurationNames.DeserializeFromPSObject(sourceValue); } if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) { - return SourceConfigurationResult.DeserializeFromDictionary(sourceValue); + return ConfigurationNames.DeserializeFromDictionary(sourceValue); } return null; } diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationNames.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationNames.cs new file mode 100644 index 000000000000..e191bff4d6e7 --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationNames.cs @@ -0,0 +1,104 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; + + /// + /// The configuration names which will be set based on specific target resource, client type, auth type. + /// + public partial class ConfigurationNames : + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNames, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNamesInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType? _authType; + + /// The auth type. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType? AuthType { get => this._authType; set => this._authType = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType? _clientType; + + /// The client type for configuration names. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType? ClientType { get => this._clientType; set => this._clientType = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationName[] _name; + + /// The configuration names to be set in compute service environment. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationName[] Name { get => this._name; set => this._name = value; } + + /// Backing field for property. + private string _targetService; + + /// The target service provider name and resource name. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] + public string TargetService { get => this._targetService; set => this._targetService = value; } + + /// Creates an new instance. + public ConfigurationNames() + { + + } + } + /// The configuration names which will be set based on specific target resource, client type, auth type. + public partial interface IConfigurationNames : + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IJsonSerializable + { + /// The auth type. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The auth type.", + SerializedName = @"authType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType? AuthType { get; set; } + /// The client type for configuration names. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The client type for configuration names.", + SerializedName = @"clientType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType? ClientType { get; set; } + /// The configuration names to be set in compute service environment. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The configuration names to be set in compute service environment.", + SerializedName = @"names", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationName) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationName[] Name { get; set; } + /// The target service provider name and resource name. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The target service provider name and resource name.", + SerializedName = @"targetService", + PossibleTypes = new [] { typeof(string) })] + string TargetService { get; set; } + + } + /// The configuration names which will be set based on specific target resource, client type, auth type. + internal partial interface IConfigurationNamesInternal + + { + /// The auth type. + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType? AuthType { get; set; } + /// The client type for configuration names. + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType? ClientType { get; set; } + /// The configuration names to be set in compute service environment. + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationName[] Name { get; set; } + /// The target service provider name and resource name. + string TargetService { get; set; } + + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationNames.json.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationNames.json.cs new file mode 100644 index 000000000000..a8490a989764 --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationNames.json.cs @@ -0,0 +1,124 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; + + /// + /// The configuration names which will be set based on specific target resource, client type, auth type. + /// + public partial class ConfigurationNames + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject instance to deserialize from. + internal ConfigurationNames(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_targetService = If( json?.PropertyT("targetService"), out var __jsonTargetService) ? (string)__jsonTargetService : (string)TargetService;} + {_clientType = If( json?.PropertyT("clientType"), out var __jsonClientType) ? (string)__jsonClientType : (string)ClientType;} + {_authType = If( json?.PropertyT("authType"), out var __jsonAuthType) ? (string)__jsonAuthType : (string)AuthType;} + {_name = If( json?.PropertyT("names"), out var __jsonNames) ? If( __jsonNames as Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationName) (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationName.FromJson(__u) )) ))() : null : Name;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNames. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNames. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNames FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json ? new ConfigurationNames(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._targetService)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonString(this._targetService.ToString()) : null, "targetService" ,container.Add ); + AddIf( null != (((object)this._clientType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonString(this._clientType.ToString()) : null, "clientType" ,container.Add ); + AddIf( null != (((object)this._authType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonString(this._authType.ToString()) : null, "authType" ,container.Add ); + if (null != this._name) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.XNodeArray(); + foreach( var __x in this._name ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("names",__w); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/SourceConfigurationResult.PowerShell.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationResult.PowerShell.cs similarity index 66% rename from src/ServiceLinker/generated/api/Models/Api20220501/SourceConfigurationResult.PowerShell.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationResult.PowerShell.cs index 7dd19efda805..5e536ef0aab4 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/SourceConfigurationResult.PowerShell.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationResult.PowerShell.cs @@ -3,15 +3,15 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; /// /// Configurations for source resource, include appSettings, connectionString and serviceBindings /// - [System.ComponentModel.TypeConverter(typeof(SourceConfigurationResultTypeConverter))] - public partial class SourceConfigurationResult + [System.ComponentModel.TypeConverter(typeof(ConfigurationResultTypeConverter))] + public partial class ConfigurationResult { /// @@ -33,7 +33,8 @@ public partial class SourceConfigurationResult /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -45,7 +46,8 @@ public partial class SourceConfigurationResult /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -55,46 +57,11 @@ public partial class SourceConfigurationResult partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISourceConfigurationResult DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new SourceConfigurationResult(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISourceConfigurationResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new SourceConfigurationResult(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISourceConfigurationResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal SourceConfigurationResult(global::System.Collections.IDictionary content) + internal ConfigurationResult(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); @@ -105,17 +72,17 @@ internal SourceConfigurationResult(global::System.Collections.IDictionary conten // actually deserialize if (content.Contains("Configuration")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISourceConfigurationResultInternal)this).Configuration = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISourceConfiguration[]) content.GetValueForProperty("Configuration",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISourceConfigurationResultInternal)this).Configuration, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.SourceConfigurationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationResultInternal)this).Configuration = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISourceConfiguration[]) content.GetValueForProperty("Configuration",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationResultInternal)this).Configuration, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.SourceConfigurationTypeConverter.ConvertFrom)); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. - internal SourceConfigurationResult(global::System.Management.Automation.PSObject content) + internal ConfigurationResult(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); @@ -126,19 +93,54 @@ internal SourceConfigurationResult(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("Configuration")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISourceConfigurationResultInternal)this).Configuration = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISourceConfiguration[]) content.GetValueForProperty("Configuration",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISourceConfigurationResultInternal)this).Configuration, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.SourceConfigurationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationResultInternal)this).Configuration = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISourceConfiguration[]) content.GetValueForProperty("Configuration",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationResultInternal)this).Configuration, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.SourceConfigurationTypeConverter.ConvertFrom)); } AfterDeserializePSObject(content); } + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ConfigurationResult(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ConfigurationResult(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); + /// Serializes this instance to a json string. /// a containing this model serialized to JSON text. public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SerializationMode.IncludeAll)?.ToString(); } /// Configurations for source resource, include appSettings, connectionString and serviceBindings - [System.ComponentModel.TypeConverter(typeof(SourceConfigurationResultTypeConverter))] - public partial interface ISourceConfigurationResult + [System.ComponentModel.TypeConverter(typeof(ConfigurationResultTypeConverter))] + public partial interface IConfigurationResult { diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationResult.TypeConverter.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationResult.TypeConverter.cs new file mode 100644 index 000000000000..128684e7e3af --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationResult.TypeConverter.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ConfigurationResultTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationResult ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationResult).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ConfigurationResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ConfigurationResult.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ConfigurationResult.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/SourceConfigurationResult.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationResult.cs similarity index 72% rename from src/ServiceLinker/generated/api/Models/Api20220501/SourceConfigurationResult.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationResult.cs index 5d3c175a8ead..4ab13f26c939 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/SourceConfigurationResult.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationResult.cs @@ -3,33 +3,33 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; /// /// Configurations for source resource, include appSettings, connectionString and serviceBindings /// - public partial class SourceConfigurationResult : - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISourceConfigurationResult, - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISourceConfigurationResultInternal + public partial class ConfigurationResult : + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationResult, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationResultInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISourceConfiguration[] _configuration; + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISourceConfiguration[] _configuration; /// The configuration properties for source resource. [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISourceConfiguration[] Configuration { get => this._configuration; set => this._configuration = value; } + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISourceConfiguration[] Configuration { get => this._configuration; set => this._configuration = value; } - /// Creates an new instance. - public SourceConfigurationResult() + /// Creates an new instance. + public ConfigurationResult() { } } /// Configurations for source resource, include appSettings, connectionString and serviceBindings - public partial interface ISourceConfigurationResult : + public partial interface IConfigurationResult : Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IJsonSerializable { /// The configuration properties for source resource. @@ -38,16 +38,16 @@ public partial interface ISourceConfigurationResult : ReadOnly = false, Description = @"The configuration properties for source resource.", SerializedName = @"configurations", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISourceConfiguration) })] - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISourceConfiguration[] Configuration { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISourceConfiguration) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISourceConfiguration[] Configuration { get; set; } } /// Configurations for source resource, include appSettings, connectionString and serviceBindings - internal partial interface ISourceConfigurationResultInternal + internal partial interface IConfigurationResultInternal { /// The configuration properties for source resource. - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISourceConfiguration[] Configuration { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISourceConfiguration[] Configuration { get; set; } } } \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/SourceConfigurationResult.json.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationResult.json.cs similarity index 83% rename from src/ServiceLinker/generated/api/Models/Api20220501/SourceConfigurationResult.json.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationResult.json.cs index 005df270ce44..e17bc2bb6308 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/SourceConfigurationResult.json.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfigurationResult.json.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; /// /// Configurations for source resource, include appSettings, connectionString and serviceBindings /// - public partial class SourceConfigurationResult + public partial class ConfigurationResult { /// @@ -56,22 +56,10 @@ public partial class SourceConfigurationResult partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISourceConfigurationResult. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISourceConfigurationResult. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISourceConfigurationResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json ? new SourceConfigurationResult(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject into a new instance of . + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject into a new instance of . /// /// A Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject instance to deserialize from. - internal SourceConfigurationResult(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json) + internal ConfigurationResult(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); @@ -79,18 +67,30 @@ internal SourceConfigurationResult(Microsoft.Azure.PowerShell.Cmdlets.ServiceLin { return; } - {_configuration = If( json?.PropertyT("configurations"), out var __jsonConfigurations) ? If( __jsonConfigurations as Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISourceConfiguration) (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.SourceConfiguration.FromJson(__u) )) ))() : null : Configuration;} + {_configuration = If( json?.PropertyT("configurations"), out var __jsonConfigurations) ? If( __jsonConfigurations as Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISourceConfiguration) (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.SourceConfiguration.FromJson(__u) )) ))() : null : Configuration;} AfterFromJson(json); } /// - /// Serializes this instance of into a . + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationResult. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationResult. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json ? new ConfigurationResult(json) : null; + } + + /// + /// Serializes this instance of into a . /// /// The container to serialize this object into. If the caller /// passes in null, a new instance will be created and returned to the caller. /// Allows the caller to choose the depth of the serialization. See . /// - /// a serialized instance of as a . + /// a serialized instance of as a . /// public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SerializationMode serializationMode) { diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/ConfluentBootstrapServer.PowerShell.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfluentBootstrapServer.PowerShell.cs similarity index 74% rename from src/ServiceLinker/generated/api/Models/Api20220501/ConfluentBootstrapServer.PowerShell.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfluentBootstrapServer.PowerShell.cs index f97ac91c8c48..0a91e1fd832f 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/ConfluentBootstrapServer.PowerShell.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfluentBootstrapServer.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class ConfluentBootstrapServer /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class ConfluentBootstrapServer /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,7 +55,7 @@ public partial class ConfluentBootstrapServer partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -68,17 +70,17 @@ internal ConfluentBootstrapServer(global::System.Collections.IDictionary content // actually deserialize if (content.Contains("Endpoint")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IConfluentBootstrapServerInternal)this).Endpoint = (string) content.GetValueForProperty("Endpoint",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IConfluentBootstrapServerInternal)this).Endpoint, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfluentBootstrapServerInternal)this).Endpoint = (string) content.GetValueForProperty("Endpoint",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfluentBootstrapServerInternal)this).Endpoint, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBaseInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.TargetServiceType) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBaseInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.TargetServiceType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBaseInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.TargetServiceType) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBaseInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.TargetServiceType.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -93,39 +95,39 @@ internal ConfluentBootstrapServer(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("Endpoint")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IConfluentBootstrapServerInternal)this).Endpoint = (string) content.GetValueForProperty("Endpoint",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IConfluentBootstrapServerInternal)this).Endpoint, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfluentBootstrapServerInternal)this).Endpoint = (string) content.GetValueForProperty("Endpoint",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfluentBootstrapServerInternal)this).Endpoint, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBaseInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.TargetServiceType) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBaseInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.TargetServiceType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBaseInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.TargetServiceType) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBaseInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.TargetServiceType.CreateFrom); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IConfluentBootstrapServer DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfluentBootstrapServer DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ConfluentBootstrapServer(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IConfluentBootstrapServer DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfluentBootstrapServer DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ConfluentBootstrapServer(content); } @@ -135,7 +137,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api2022050 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IConfluentBootstrapServer FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfluentBootstrapServer FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/ConfluentBootstrapServer.TypeConverter.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfluentBootstrapServer.TypeConverter.cs similarity index 81% rename from src/ServiceLinker/generated/api/Models/Api20220501/ConfluentBootstrapServer.TypeConverter.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfluentBootstrapServer.TypeConverter.cs index ccbca0da023e..5b4e6927410f 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/ConfluentBootstrapServer.TypeConverter.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfluentBootstrapServer.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class ConfluentBootstrapServerTypeConverter : global::System.Mana { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the . + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IConfluentBootstrapServer ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfluentBootstrapServer ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IConfluentBootstrapServer).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfluentBootstrapServer).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/ConfluentBootstrapServer.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfluentBootstrapServer.cs similarity index 83% rename from src/ServiceLinker/generated/api/Models/Api20220501/ConfluentBootstrapServer.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfluentBootstrapServer.cs index 20bfe2072302..842275be30cd 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/ConfluentBootstrapServer.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfluentBootstrapServer.cs @@ -3,21 +3,21 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; /// The service properties when target service type is ConfluentBootstrapServer public partial class ConfluentBootstrapServer : - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IConfluentBootstrapServer, - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IConfluentBootstrapServerInternal, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfluentBootstrapServer, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfluentBootstrapServerInternal, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBase __targetServiceBase = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.TargetServiceBase(); + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase __targetServiceBase = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.TargetServiceBase(); /// Backing field for property. private string _endpoint; @@ -28,7 +28,7 @@ public partial class ConfluentBootstrapServer : /// The target service type. [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.TargetServiceType Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBaseInternal)__targetServiceBase).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBaseInternal)__targetServiceBase).Type = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.TargetServiceType Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBaseInternal)__targetServiceBase).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBaseInternal)__targetServiceBase).Type = value ; } /// Creates an new instance. public ConfluentBootstrapServer() @@ -51,7 +51,7 @@ public ConfluentBootstrapServer() /// The service properties when target service type is ConfluentBootstrapServer public partial interface IConfluentBootstrapServer : Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBase + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase { /// The endpoint of service. [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( @@ -65,7 +65,7 @@ public partial interface IConfluentBootstrapServer : } /// The service properties when target service type is ConfluentBootstrapServer internal partial interface IConfluentBootstrapServerInternal : - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBaseInternal + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBaseInternal { /// The endpoint of service. string Endpoint { get; set; } diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/ConfluentBootstrapServer.json.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfluentBootstrapServer.json.cs similarity index 95% rename from src/ServiceLinker/generated/api/Models/Api20220501/ConfluentBootstrapServer.json.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfluentBootstrapServer.json.cs index 83d0f4d23070..fa1be03adc4d 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/ConfluentBootstrapServer.json.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfluentBootstrapServer.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; @@ -65,19 +65,19 @@ internal ConfluentBootstrapServer(Microsoft.Azure.PowerShell.Cmdlets.ServiceLink { return; } - __targetServiceBase = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.TargetServiceBase(json); + __targetServiceBase = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.TargetServiceBase(json); {_endpoint = If( json?.PropertyT("endpoint"), out var __jsonEndpoint) ? (string)__jsonEndpoint : (string)Endpoint;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IConfluentBootstrapServer. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfluentBootstrapServer. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IConfluentBootstrapServer. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfluentBootstrapServer. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IConfluentBootstrapServer FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfluentBootstrapServer FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json ? new ConfluentBootstrapServer(json) : null; } diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/ConfluentSchemaRegistry.PowerShell.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfluentSchemaRegistry.PowerShell.cs similarity index 74% rename from src/ServiceLinker/generated/api/Models/Api20220501/ConfluentSchemaRegistry.PowerShell.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfluentSchemaRegistry.PowerShell.cs index bfc09bbe03e9..c21aa76c05ad 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/ConfluentSchemaRegistry.PowerShell.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfluentSchemaRegistry.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class ConfluentSchemaRegistry /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class ConfluentSchemaRegistry /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,7 +55,7 @@ public partial class ConfluentSchemaRegistry partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -68,17 +70,17 @@ internal ConfluentSchemaRegistry(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Endpoint")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IConfluentSchemaRegistryInternal)this).Endpoint = (string) content.GetValueForProperty("Endpoint",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IConfluentSchemaRegistryInternal)this).Endpoint, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfluentSchemaRegistryInternal)this).Endpoint = (string) content.GetValueForProperty("Endpoint",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfluentSchemaRegistryInternal)this).Endpoint, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBaseInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.TargetServiceType) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBaseInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.TargetServiceType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBaseInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.TargetServiceType) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBaseInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.TargetServiceType.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -93,39 +95,39 @@ internal ConfluentSchemaRegistry(global::System.Management.Automation.PSObject c // actually deserialize if (content.Contains("Endpoint")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IConfluentSchemaRegistryInternal)this).Endpoint = (string) content.GetValueForProperty("Endpoint",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IConfluentSchemaRegistryInternal)this).Endpoint, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfluentSchemaRegistryInternal)this).Endpoint = (string) content.GetValueForProperty("Endpoint",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfluentSchemaRegistryInternal)this).Endpoint, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBaseInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.TargetServiceType) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBaseInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.TargetServiceType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBaseInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.TargetServiceType) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBaseInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.TargetServiceType.CreateFrom); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IConfluentSchemaRegistry DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfluentSchemaRegistry DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ConfluentSchemaRegistry(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IConfluentSchemaRegistry DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfluentSchemaRegistry DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ConfluentSchemaRegistry(content); } @@ -135,7 +137,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api2022050 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IConfluentSchemaRegistry FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfluentSchemaRegistry FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/ConfluentSchemaRegistry.TypeConverter.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfluentSchemaRegistry.TypeConverter.cs similarity index 81% rename from src/ServiceLinker/generated/api/Models/Api20220501/ConfluentSchemaRegistry.TypeConverter.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfluentSchemaRegistry.TypeConverter.cs index e2830ca3d2c3..52b409fd5aa1 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/ConfluentSchemaRegistry.TypeConverter.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfluentSchemaRegistry.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class ConfluentSchemaRegistryTypeConverter : global::System.Manag { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the . + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IConfluentSchemaRegistry ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfluentSchemaRegistry ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IConfluentSchemaRegistry).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfluentSchemaRegistry).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/ConfluentSchemaRegistry.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfluentSchemaRegistry.cs similarity index 83% rename from src/ServiceLinker/generated/api/Models/Api20220501/ConfluentSchemaRegistry.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfluentSchemaRegistry.cs index c23aa5a0ce1a..096d7d78d226 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/ConfluentSchemaRegistry.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfluentSchemaRegistry.cs @@ -3,21 +3,21 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; /// The service properties when target service type is ConfluentSchemaRegistry public partial class ConfluentSchemaRegistry : - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IConfluentSchemaRegistry, - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IConfluentSchemaRegistryInternal, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfluentSchemaRegistry, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfluentSchemaRegistryInternal, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBase __targetServiceBase = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.TargetServiceBase(); + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase __targetServiceBase = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.TargetServiceBase(); /// Backing field for property. private string _endpoint; @@ -28,7 +28,7 @@ public partial class ConfluentSchemaRegistry : /// The target service type. [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.TargetServiceType Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBaseInternal)__targetServiceBase).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBaseInternal)__targetServiceBase).Type = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.TargetServiceType Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBaseInternal)__targetServiceBase).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBaseInternal)__targetServiceBase).Type = value ; } /// Creates an new instance. public ConfluentSchemaRegistry() @@ -51,7 +51,7 @@ public ConfluentSchemaRegistry() /// The service properties when target service type is ConfluentSchemaRegistry public partial interface IConfluentSchemaRegistry : Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBase + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase { /// The endpoint of service. [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( @@ -65,7 +65,7 @@ public partial interface IConfluentSchemaRegistry : } /// The service properties when target service type is ConfluentSchemaRegistry internal partial interface IConfluentSchemaRegistryInternal : - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBaseInternal + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBaseInternal { /// The endpoint of service. string Endpoint { get; set; } diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/ConfluentSchemaRegistry.json.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfluentSchemaRegistry.json.cs similarity index 95% rename from src/ServiceLinker/generated/api/Models/Api20220501/ConfluentSchemaRegistry.json.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfluentSchemaRegistry.json.cs index c6ed40a47ce2..6d52b4930e8c 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/ConfluentSchemaRegistry.json.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ConfluentSchemaRegistry.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; @@ -65,19 +65,19 @@ internal ConfluentSchemaRegistry(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinke { return; } - __targetServiceBase = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.TargetServiceBase(json); + __targetServiceBase = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.TargetServiceBase(json); {_endpoint = If( json?.PropertyT("endpoint"), out var __jsonEndpoint) ? (string)__jsonEndpoint : (string)Endpoint;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IConfluentSchemaRegistry. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfluentSchemaRegistry. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IConfluentSchemaRegistry. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfluentSchemaRegistry. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IConfluentSchemaRegistry FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfluentSchemaRegistry FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json ? new ConfluentSchemaRegistry(json) : null; } diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/CreateOrUpdateDryrunParameters.PowerShell.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/CreateOrUpdateDryrunParameters.PowerShell.cs new file mode 100644 index 000000000000..4b749edacbb4 --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/CreateOrUpdateDryrunParameters.PowerShell.cs @@ -0,0 +1,330 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; + + /// The dryrun parameters for creation or update a linker + [System.ComponentModel.TypeConverter(typeof(CreateOrUpdateDryrunParametersTypeConverter))] + public partial class CreateOrUpdateDryrunParameters + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal CreateOrUpdateDryrunParameters(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ActionName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunParametersInternal)this).ActionName = (string) content.GetValueForProperty("ActionName",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunParametersInternal)this).ActionName, global::System.Convert.ToString); + } + if (content.Contains("VNetSolutionType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).VNetSolutionType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType?) content.GetValueForProperty("VNetSolutionType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).VNetSolutionType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType.CreateFrom); + } + if (content.Contains("PublicNetworkSolutionFirewallRule")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).PublicNetworkSolutionFirewallRule = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IFirewallRules) content.GetValueForProperty("PublicNetworkSolutionFirewallRule",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).PublicNetworkSolutionFirewallRule, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.FirewallRulesTypeConverter.ConvertFrom); + } + if (content.Contains("ConfigurationInfoCustomizedKey")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).ConfigurationInfoCustomizedKey = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoCustomizedKeys) content.GetValueForProperty("ConfigurationInfoCustomizedKey",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).ConfigurationInfoCustomizedKey, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationInfoCustomizedKeysTypeConverter.ConvertFrom); + } + if (content.Contains("ConfigurationInfoAdditionalConfiguration")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).ConfigurationInfoAdditionalConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoAdditionalConfigurations) content.GetValueForProperty("ConfigurationInfoAdditionalConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).ConfigurationInfoAdditionalConfiguration, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationInfoAdditionalConfigurationsTypeConverter.ConvertFrom); + } + if (content.Contains("VNetSolutionDeleteOrUpdateBehavior")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).VNetSolutionDeleteOrUpdateBehavior = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior?) content.GetValueForProperty("VNetSolutionDeleteOrUpdateBehavior",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).VNetSolutionDeleteOrUpdateBehavior, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior.CreateFrom); + } + if (content.Contains("SecretStoreKeyVaultId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).SecretStoreKeyVaultId = (string) content.GetValueForProperty("SecretStoreKeyVaultId",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).SecretStoreKeyVaultId, global::System.Convert.ToString); + } + if (content.Contains("SecretStoreKeyVaultSecretName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).SecretStoreKeyVaultSecretName = (string) content.GetValueForProperty("SecretStoreKeyVaultSecretName",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).SecretStoreKeyVaultSecretName, global::System.Convert.ToString); + } + if (content.Contains("PublicNetworkSolutionDeleteOrUpdateBehavior")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).PublicNetworkSolutionDeleteOrUpdateBehavior = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior?) content.GetValueForProperty("PublicNetworkSolutionDeleteOrUpdateBehavior",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).PublicNetworkSolutionDeleteOrUpdateBehavior, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior.CreateFrom); + } + if (content.Contains("PublicNetworkSolutionAction")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).PublicNetworkSolutionAction = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType?) content.GetValueForProperty("PublicNetworkSolutionAction",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).PublicNetworkSolutionAction, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType.CreateFrom); + } + if (content.Contains("FirewallRuleIPRange")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).FirewallRuleIPRange = (string[]) content.GetValueForProperty("FirewallRuleIPRange",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).FirewallRuleIPRange, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("ConfigurationInfoDeleteOrUpdateBehavior")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).ConfigurationInfoDeleteOrUpdateBehavior = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior?) content.GetValueForProperty("ConfigurationInfoDeleteOrUpdateBehavior",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).ConfigurationInfoDeleteOrUpdateBehavior, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior.CreateFrom); + } + if (content.Contains("ConfigurationInfoAction")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).ConfigurationInfoAction = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType?) content.GetValueForProperty("ConfigurationInfoAction",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).ConfigurationInfoAction, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType.CreateFrom); + } + if (content.Contains("FirewallRuleAzureService")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).FirewallRuleAzureService = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType?) content.GetValueForProperty("FirewallRuleAzureService",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).FirewallRuleAzureService, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType.CreateFrom); + } + if (content.Contains("FirewallRuleCallerClientIP")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).FirewallRuleCallerClientIP = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType?) content.GetValueForProperty("FirewallRuleCallerClientIP",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).FirewallRuleCallerClientIP, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType.CreateFrom); + } + if (content.Contains("VNetSolution")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).VNetSolution = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IVNetSolution) content.GetValueForProperty("VNetSolution",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).VNetSolution, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.VNetSolutionTypeConverter.ConvertFrom); + } + if (content.Contains("SecretStore")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).SecretStore = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretStore) content.GetValueForProperty("SecretStore",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).SecretStore, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.SecretStoreTypeConverter.ConvertFrom); + } + if (content.Contains("PublicNetworkSolution")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).PublicNetworkSolution = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPublicNetworkSolution) content.GetValueForProperty("PublicNetworkSolution",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).PublicNetworkSolution, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.PublicNetworkSolutionTypeConverter.ConvertFrom); + } + if (content.Contains("ConfigurationInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).ConfigurationInfo = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfo) content.GetValueForProperty("ConfigurationInfo",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).ConfigurationInfo, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationInfoTypeConverter.ConvertFrom); + } + if (content.Contains("TargetService")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).TargetService = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase) content.GetValueForProperty("TargetService",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).TargetService, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.TargetServiceBaseTypeConverter.ConvertFrom); + } + if (content.Contains("AuthInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).AuthInfo = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase) content.GetValueForProperty("AuthInfo",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).AuthInfo, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.AuthInfoBaseTypeConverter.ConvertFrom); + } + if (content.Contains("ClientType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).ClientType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType?) content.GetValueForProperty("ClientType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).ClientType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType.CreateFrom); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); + } + if (content.Contains("Scope")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).Scope, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal CreateOrUpdateDryrunParameters(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ActionName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunParametersInternal)this).ActionName = (string) content.GetValueForProperty("ActionName",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunParametersInternal)this).ActionName, global::System.Convert.ToString); + } + if (content.Contains("VNetSolutionType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).VNetSolutionType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType?) content.GetValueForProperty("VNetSolutionType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).VNetSolutionType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType.CreateFrom); + } + if (content.Contains("PublicNetworkSolutionFirewallRule")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).PublicNetworkSolutionFirewallRule = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IFirewallRules) content.GetValueForProperty("PublicNetworkSolutionFirewallRule",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).PublicNetworkSolutionFirewallRule, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.FirewallRulesTypeConverter.ConvertFrom); + } + if (content.Contains("ConfigurationInfoCustomizedKey")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).ConfigurationInfoCustomizedKey = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoCustomizedKeys) content.GetValueForProperty("ConfigurationInfoCustomizedKey",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).ConfigurationInfoCustomizedKey, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationInfoCustomizedKeysTypeConverter.ConvertFrom); + } + if (content.Contains("ConfigurationInfoAdditionalConfiguration")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).ConfigurationInfoAdditionalConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoAdditionalConfigurations) content.GetValueForProperty("ConfigurationInfoAdditionalConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).ConfigurationInfoAdditionalConfiguration, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationInfoAdditionalConfigurationsTypeConverter.ConvertFrom); + } + if (content.Contains("VNetSolutionDeleteOrUpdateBehavior")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).VNetSolutionDeleteOrUpdateBehavior = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior?) content.GetValueForProperty("VNetSolutionDeleteOrUpdateBehavior",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).VNetSolutionDeleteOrUpdateBehavior, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior.CreateFrom); + } + if (content.Contains("SecretStoreKeyVaultId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).SecretStoreKeyVaultId = (string) content.GetValueForProperty("SecretStoreKeyVaultId",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).SecretStoreKeyVaultId, global::System.Convert.ToString); + } + if (content.Contains("SecretStoreKeyVaultSecretName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).SecretStoreKeyVaultSecretName = (string) content.GetValueForProperty("SecretStoreKeyVaultSecretName",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).SecretStoreKeyVaultSecretName, global::System.Convert.ToString); + } + if (content.Contains("PublicNetworkSolutionDeleteOrUpdateBehavior")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).PublicNetworkSolutionDeleteOrUpdateBehavior = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior?) content.GetValueForProperty("PublicNetworkSolutionDeleteOrUpdateBehavior",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).PublicNetworkSolutionDeleteOrUpdateBehavior, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior.CreateFrom); + } + if (content.Contains("PublicNetworkSolutionAction")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).PublicNetworkSolutionAction = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType?) content.GetValueForProperty("PublicNetworkSolutionAction",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).PublicNetworkSolutionAction, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType.CreateFrom); + } + if (content.Contains("FirewallRuleIPRange")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).FirewallRuleIPRange = (string[]) content.GetValueForProperty("FirewallRuleIPRange",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).FirewallRuleIPRange, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("ConfigurationInfoDeleteOrUpdateBehavior")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).ConfigurationInfoDeleteOrUpdateBehavior = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior?) content.GetValueForProperty("ConfigurationInfoDeleteOrUpdateBehavior",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).ConfigurationInfoDeleteOrUpdateBehavior, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior.CreateFrom); + } + if (content.Contains("ConfigurationInfoAction")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).ConfigurationInfoAction = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType?) content.GetValueForProperty("ConfigurationInfoAction",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).ConfigurationInfoAction, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType.CreateFrom); + } + if (content.Contains("FirewallRuleAzureService")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).FirewallRuleAzureService = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType?) content.GetValueForProperty("FirewallRuleAzureService",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).FirewallRuleAzureService, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType.CreateFrom); + } + if (content.Contains("FirewallRuleCallerClientIP")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).FirewallRuleCallerClientIP = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType?) content.GetValueForProperty("FirewallRuleCallerClientIP",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).FirewallRuleCallerClientIP, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType.CreateFrom); + } + if (content.Contains("VNetSolution")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).VNetSolution = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IVNetSolution) content.GetValueForProperty("VNetSolution",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).VNetSolution, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.VNetSolutionTypeConverter.ConvertFrom); + } + if (content.Contains("SecretStore")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).SecretStore = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretStore) content.GetValueForProperty("SecretStore",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).SecretStore, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.SecretStoreTypeConverter.ConvertFrom); + } + if (content.Contains("PublicNetworkSolution")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).PublicNetworkSolution = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPublicNetworkSolution) content.GetValueForProperty("PublicNetworkSolution",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).PublicNetworkSolution, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.PublicNetworkSolutionTypeConverter.ConvertFrom); + } + if (content.Contains("ConfigurationInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).ConfigurationInfo = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfo) content.GetValueForProperty("ConfigurationInfo",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).ConfigurationInfo, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationInfoTypeConverter.ConvertFrom); + } + if (content.Contains("TargetService")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).TargetService = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase) content.GetValueForProperty("TargetService",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).TargetService, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.TargetServiceBaseTypeConverter.ConvertFrom); + } + if (content.Contains("AuthInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).AuthInfo = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase) content.GetValueForProperty("AuthInfo",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).AuthInfo, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.AuthInfoBaseTypeConverter.ConvertFrom); + } + if (content.Contains("ClientType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).ClientType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType?) content.GetValueForProperty("ClientType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).ClientType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType.CreateFrom); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); + } + if (content.Contains("Scope")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).Scope, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ICreateOrUpdateDryrunParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CreateOrUpdateDryrunParameters(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ICreateOrUpdateDryrunParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CreateOrUpdateDryrunParameters(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ICreateOrUpdateDryrunParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The dryrun parameters for creation or update a linker + [System.ComponentModel.TypeConverter(typeof(CreateOrUpdateDryrunParametersTypeConverter))] + public partial interface ICreateOrUpdateDryrunParameters + + { + + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/CreateOrUpdateDryrunParameters.TypeConverter.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/CreateOrUpdateDryrunParameters.TypeConverter.cs new file mode 100644 index 000000000000..c180cb676c42 --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/CreateOrUpdateDryrunParameters.TypeConverter.cs @@ -0,0 +1,148 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class CreateOrUpdateDryrunParametersTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ICreateOrUpdateDryrunParameters ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ICreateOrUpdateDryrunParameters).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return CreateOrUpdateDryrunParameters.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return CreateOrUpdateDryrunParameters.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return CreateOrUpdateDryrunParameters.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/CreateOrUpdateDryrunParameters.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/CreateOrUpdateDryrunParameters.cs new file mode 100644 index 000000000000..470b1024fa9e --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/CreateOrUpdateDryrunParameters.cs @@ -0,0 +1,193 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; + + /// The dryrun parameters for creation or update a linker + public partial class CreateOrUpdateDryrunParameters : + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ICreateOrUpdateDryrunParameters, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ICreateOrUpdateDryrunParametersInternal, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunParameters __dryrunParameters = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DryrunParameters(); + + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerProperties __linkerProperties = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.LinkerProperties(); + + /// The name of action for you dryrun job. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] + public string ActionName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunParametersInternal)__dryrunParameters).ActionName; } + + /// The authentication type. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase AuthInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)__linkerProperties).AuthInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)__linkerProperties).AuthInfo = value ?? null /* model class */; } + + /// The application client type + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType? ClientType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)__linkerProperties).ClientType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)__linkerProperties).ClientType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType)""); } + + /// + /// The connection information consumed by applications, including secrets, connection strings. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfo ConfigurationInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)__linkerProperties).ConfigurationInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)__linkerProperties).ConfigurationInfo = value ?? null /* model class */; } + + /// + /// Optional, indicate whether to apply configurations on source application. If enable, generate configurations and applied + /// to the source application. Default is enable. If optOut, no configuration change will be made on source. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType? ConfigurationInfoAction { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)__linkerProperties).ConfigurationInfoAction; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)__linkerProperties).ConfigurationInfoAction = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType)""); } + + /// + /// A dictionary of additional configurations to be added. Service will auto generate a set of basic configurations and this + /// property is to full fill more customized configurations + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoAdditionalConfigurations ConfigurationInfoAdditionalConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)__linkerProperties).ConfigurationInfoAdditionalConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)__linkerProperties).ConfigurationInfoAdditionalConfiguration = value ?? null /* model class */; } + + /// + /// Optional. A dictionary of default key name and customized key name mapping. If not specified, default key name will be + /// used for generate configurations + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoCustomizedKeys ConfigurationInfoCustomizedKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)__linkerProperties).ConfigurationInfoCustomizedKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)__linkerProperties).ConfigurationInfoCustomizedKey = value ?? null /* model class */; } + + /// + /// Indicates whether to clean up previous operation when Linker is updating or deleting + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior? ConfigurationInfoDeleteOrUpdateBehavior { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)__linkerProperties).ConfigurationInfoDeleteOrUpdateBehavior; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)__linkerProperties).ConfigurationInfoDeleteOrUpdateBehavior = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior)""); } + + /// Allow Azure services to access the target service if true. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType? FirewallRuleAzureService { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)__linkerProperties).FirewallRuleAzureService; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)__linkerProperties).FirewallRuleAzureService = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType)""); } + + /// + /// Allow caller client IP to access the target service if true. the property is used when connecting local application to + /// target service. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType? FirewallRuleCallerClientIP { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)__linkerProperties).FirewallRuleCallerClientIP; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)__linkerProperties).FirewallRuleCallerClientIP = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType)""); } + + /// + /// This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client + /// IPs for a given database account. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] + public string[] FirewallRuleIPRange { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)__linkerProperties).FirewallRuleIPRange; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)__linkerProperties).FirewallRuleIPRange = value ?? null /* arrayOf */; } + + /// Internal Acessors for ActionName + string Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunParametersInternal.ActionName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunParametersInternal)__dryrunParameters).ActionName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunParametersInternal)__dryrunParameters).ActionName = value; } + + /// Internal Acessors for ProvisioningState + string Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)__linkerProperties).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)__linkerProperties).ProvisioningState = value; } + + /// The provisioning state. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] + public string ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)__linkerProperties).ProvisioningState; } + + /// The network solution. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPublicNetworkSolution PublicNetworkSolution { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)__linkerProperties).PublicNetworkSolution; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)__linkerProperties).PublicNetworkSolution = value ?? null /* model class */; } + + /// + /// Optional. Indicates public network solution. If enable, enable public network access of target service with best try. + /// Default is enable. If optOut, opt out public network access configuration. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType? PublicNetworkSolutionAction { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)__linkerProperties).PublicNetworkSolutionAction; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)__linkerProperties).PublicNetworkSolutionAction = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType)""); } + + /// + /// Indicates whether to clean up previous operation(such as firewall rules) when Linker is updating or deleting + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior? PublicNetworkSolutionDeleteOrUpdateBehavior { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)__linkerProperties).PublicNetworkSolutionDeleteOrUpdateBehavior; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)__linkerProperties).PublicNetworkSolutionDeleteOrUpdateBehavior = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior)""); } + + /// + /// Describe firewall rules of target service to make sure source application could connect to the target. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IFirewallRules PublicNetworkSolutionFirewallRule { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)__linkerProperties).PublicNetworkSolutionFirewallRule; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)__linkerProperties).PublicNetworkSolutionFirewallRule = value ?? null /* model class */; } + + /// connection scope in source service. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] + public string Scope { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)__linkerProperties).Scope; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)__linkerProperties).Scope = value ?? null; } + + /// An option to store secret value in secure place + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretStore SecretStore { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)__linkerProperties).SecretStore; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)__linkerProperties).SecretStore = value ?? null /* model class */; } + + /// The key vault id to store secret + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] + public string SecretStoreKeyVaultId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)__linkerProperties).SecretStoreKeyVaultId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)__linkerProperties).SecretStoreKeyVaultId = value ?? null; } + + /// The key vault secret name to store secret, only valid when storing one secret + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] + public string SecretStoreKeyVaultSecretName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)__linkerProperties).SecretStoreKeyVaultSecretName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)__linkerProperties).SecretStoreKeyVaultSecretName = value ?? null; } + + /// The target service properties + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase TargetService { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)__linkerProperties).TargetService; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)__linkerProperties).TargetService = value ?? null /* model class */; } + + /// The VNet solution. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IVNetSolution VNetSolution { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)__linkerProperties).VNetSolution; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)__linkerProperties).VNetSolution = value ?? null /* model class */; } + + /// + /// Indicates whether to clean up previous operation when Linker is updating or deleting + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior? VNetSolutionDeleteOrUpdateBehavior { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)__linkerProperties).VNetSolutionDeleteOrUpdateBehavior; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)__linkerProperties).VNetSolutionDeleteOrUpdateBehavior = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior)""); } + + /// Type of VNet solution. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType? VNetSolutionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)__linkerProperties).VNetSolutionType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)__linkerProperties).VNetSolutionType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType)""); } + + /// Creates an new instance. + public CreateOrUpdateDryrunParameters() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__dryrunParameters), __dryrunParameters); + await eventListener.AssertObjectIsValid(nameof(__dryrunParameters), __dryrunParameters); + await eventListener.AssertNotNull(nameof(__linkerProperties), __linkerProperties); + await eventListener.AssertObjectIsValid(nameof(__linkerProperties), __linkerProperties); + } + } + /// The dryrun parameters for creation or update a linker + public partial interface ICreateOrUpdateDryrunParameters : + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunParameters, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerProperties + { + + } + /// The dryrun parameters for creation or update a linker + internal partial interface ICreateOrUpdateDryrunParametersInternal : + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunParametersInternal, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal + { + + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/SystemAssignedIdentityAuthInfo.json.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/CreateOrUpdateDryrunParameters.json.cs similarity index 81% rename from src/ServiceLinker/generated/api/Models/Api20220501/SystemAssignedIdentityAuthInfo.json.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/CreateOrUpdateDryrunParameters.json.cs index 264f0db38417..9c09e10608e3 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/SystemAssignedIdentityAuthInfo.json.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/CreateOrUpdateDryrunParameters.json.cs @@ -3,12 +3,12 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; - /// The authentication info when authType is systemAssignedIdentity - public partial class SystemAssignedIdentityAuthInfo + /// The dryrun parameters for creation or update a linker + public partial class CreateOrUpdateDryrunParameters { /// @@ -54,22 +54,10 @@ public partial class SystemAssignedIdentityAuthInfo partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISystemAssignedIdentityAuthInfo. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISystemAssignedIdentityAuthInfo. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISystemAssignedIdentityAuthInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json ? new SystemAssignedIdentityAuthInfo(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject into a new instance of . + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject into a new instance of . /// /// A Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject instance to deserialize from. - internal SystemAssignedIdentityAuthInfo(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json) + internal CreateOrUpdateDryrunParameters(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); @@ -77,18 +65,31 @@ internal SystemAssignedIdentityAuthInfo(Microsoft.Azure.PowerShell.Cmdlets.Servi { return; } - __authInfoBase = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.AuthInfoBase(json); + __dryrunParameters = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DryrunParameters(json); + __linkerProperties = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.LinkerProperties(json); AfterFromJson(json); } /// - /// Serializes this instance of into a . + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ICreateOrUpdateDryrunParameters. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ICreateOrUpdateDryrunParameters. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ICreateOrUpdateDryrunParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json ? new CreateOrUpdateDryrunParameters(json) : null; + } + + /// + /// Serializes this instance of into a . /// /// The container to serialize this object into. If the caller /// passes in null, a new instance will be created and returned to the caller. /// Allows the caller to choose the depth of the serialization. See . /// - /// a serialized instance of as a . + /// a serialized instance of as a . /// public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SerializationMode serializationMode) { @@ -100,7 +101,8 @@ public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode To { return container; } - __authInfoBase?.ToJson(container, serializationMode); + __dryrunParameters?.ToJson(container, serializationMode); + __linkerProperties?.ToJson(container, serializationMode); AfterToJson(ref container); return container; } diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/SystemAssignedIdentityAuthInfo.PowerShell.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/DatabaseAadAuthInfo.PowerShell.cs similarity index 66% rename from src/ServiceLinker/generated/api/Models/Api20220501/SystemAssignedIdentityAuthInfo.PowerShell.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/DatabaseAadAuthInfo.PowerShell.cs index 048d88b1631a..9e0b66cc2fc7 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/SystemAssignedIdentityAuthInfo.PowerShell.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/DatabaseAadAuthInfo.PowerShell.cs @@ -3,13 +3,13 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; - /// The authentication info when authType is systemAssignedIdentity - [System.ComponentModel.TypeConverter(typeof(SystemAssignedIdentityAuthInfoTypeConverter))] - public partial class SystemAssignedIdentityAuthInfo + /// The extra auth info required by Database AAD authentication. + [System.ComponentModel.TypeConverter(typeof(DatabaseAadAuthInfoTypeConverter))] + public partial class DatabaseAadAuthInfo { /// @@ -31,7 +31,8 @@ public partial class SystemAssignedIdentityAuthInfo /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class SystemAssignedIdentityAuthInfo /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,46 +55,11 @@ public partial class SystemAssignedIdentityAuthInfo partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISystemAssignedIdentityAuthInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new SystemAssignedIdentityAuthInfo(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISystemAssignedIdentityAuthInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new SystemAssignedIdentityAuthInfo(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISystemAssignedIdentityAuthInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal SystemAssignedIdentityAuthInfo(global::System.Collections.IDictionary content) + internal DatabaseAadAuthInfo(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); @@ -101,19 +68,19 @@ internal SystemAssignedIdentityAuthInfo(global::System.Collections.IDictionary c return; } // actually deserialize - if (content.Contains("AuthType")) + if (content.Contains("UserName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBaseInternal)this).AuthType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType) content.GetValueForProperty("AuthType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBaseInternal)this).AuthType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDatabaseAadAuthInfoInternal)this).UserName = (string) content.GetValueForProperty("UserName",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDatabaseAadAuthInfoInternal)this).UserName, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. - internal SystemAssignedIdentityAuthInfo(global::System.Management.Automation.PSObject content) + internal DatabaseAadAuthInfo(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); @@ -122,21 +89,56 @@ internal SystemAssignedIdentityAuthInfo(global::System.Management.Automation.PSO return; } // actually deserialize - if (content.Contains("AuthType")) + if (content.Contains("UserName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBaseInternal)this).AuthType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType) content.GetValueForProperty("AuthType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBaseInternal)this).AuthType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDatabaseAadAuthInfoInternal)this).UserName = (string) content.GetValueForProperty("UserName",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDatabaseAadAuthInfoInternal)this).UserName, global::System.Convert.ToString); } AfterDeserializePSObject(content); } + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDatabaseAadAuthInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DatabaseAadAuthInfo(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDatabaseAadAuthInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DatabaseAadAuthInfo(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDatabaseAadAuthInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); + /// Serializes this instance to a json string. /// a containing this model serialized to JSON text. public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SerializationMode.IncludeAll)?.ToString(); } - /// The authentication info when authType is systemAssignedIdentity - [System.ComponentModel.TypeConverter(typeof(SystemAssignedIdentityAuthInfoTypeConverter))] - public partial interface ISystemAssignedIdentityAuthInfo + /// The extra auth info required by Database AAD authentication. + [System.ComponentModel.TypeConverter(typeof(DatabaseAadAuthInfoTypeConverter))] + public partial interface IDatabaseAadAuthInfo { diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/DatabaseAadAuthInfo.TypeConverter.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/DatabaseAadAuthInfo.TypeConverter.cs new file mode 100644 index 000000000000..52a4947ba472 --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/DatabaseAadAuthInfo.TypeConverter.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DatabaseAadAuthInfoTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDatabaseAadAuthInfo ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDatabaseAadAuthInfo).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DatabaseAadAuthInfo.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DatabaseAadAuthInfo.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DatabaseAadAuthInfo.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/DatabaseAadAuthInfo.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/DatabaseAadAuthInfo.cs new file mode 100644 index 000000000000..82b8d1810c96 --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/DatabaseAadAuthInfo.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; + + /// The extra auth info required by Database AAD authentication. + public partial class DatabaseAadAuthInfo : + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDatabaseAadAuthInfo, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDatabaseAadAuthInfoInternal + { + + /// Backing field for property. + private string _userName; + + /// Username created in the database which is mapped to a user in AAD. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] + public string UserName { get => this._userName; set => this._userName = value; } + + /// Creates an new instance. + public DatabaseAadAuthInfo() + { + + } + } + /// The extra auth info required by Database AAD authentication. + public partial interface IDatabaseAadAuthInfo : + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IJsonSerializable + { + /// Username created in the database which is mapped to a user in AAD. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Username created in the database which is mapped to a user in AAD.", + SerializedName = @"userName", + PossibleTypes = new [] { typeof(string) })] + string UserName { get; set; } + + } + /// The extra auth info required by Database AAD authentication. + internal partial interface IDatabaseAadAuthInfoInternal + + { + /// Username created in the database which is mapped to a user in AAD. + string UserName { get; set; } + + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/DatabaseAadAuthInfo.json.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/DatabaseAadAuthInfo.json.cs new file mode 100644 index 000000000000..bad7c7ad9ff5 --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/DatabaseAadAuthInfo.json.cs @@ -0,0 +1,108 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; + + /// The extra auth info required by Database AAD authentication. + public partial class DatabaseAadAuthInfo + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject instance to deserialize from. + internal DatabaseAadAuthInfo(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_userName = If( json?.PropertyT("userName"), out var __jsonUserName) ? (string)__jsonUserName : (string)UserName;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDatabaseAadAuthInfo. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDatabaseAadAuthInfo. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDatabaseAadAuthInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json ? new DatabaseAadAuthInfo(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._userName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonString(this._userName.ToString()) : null, "userName" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/LinkerList.PowerShell.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunList.PowerShell.cs similarity index 65% rename from src/ServiceLinker/generated/api/Models/Api20220501/LinkerList.PowerShell.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunList.PowerShell.cs index bc1a96dd9a62..e193e2b39f0d 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/LinkerList.PowerShell.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunList.PowerShell.cs @@ -3,13 +3,13 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; - /// The list of Linker. - [System.ComponentModel.TypeConverter(typeof(LinkerListTypeConverter))] - public partial class LinkerList + /// The list of dryrun. + [System.ComponentModel.TypeConverter(typeof(DryrunListTypeConverter))] + public partial class DryrunList { /// @@ -31,7 +31,8 @@ public partial class LinkerList /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class LinkerList /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,44 +55,37 @@ public partial class LinkerList partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerList DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunList DeserializeFromDictionary(global::System.Collections.IDictionary content) { - return new LinkerList(content); + return new DryrunList(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { - return new LinkerList(content); + return new DryrunList(content); } /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. - internal LinkerList(global::System.Collections.IDictionary content) + internal DryrunList(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); @@ -101,21 +96,21 @@ internal LinkerList(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunListInternal)this).NextLink, global::System.Convert.ToString); } if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.LinkerResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DryrunResourceTypeConverter.ConvertFrom)); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. - internal LinkerList(global::System.Management.Automation.PSObject content) + internal DryrunList(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); @@ -126,23 +121,30 @@ internal LinkerList(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunListInternal)this).NextLink, global::System.Convert.ToString); } if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.LinkerResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DryrunResourceTypeConverter.ConvertFrom)); } AfterDeserializePSObject(content); } + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); + /// Serializes this instance to a json string. /// a containing this model serialized to JSON text. public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SerializationMode.IncludeAll)?.ToString(); } - /// The list of Linker. - [System.ComponentModel.TypeConverter(typeof(LinkerListTypeConverter))] - public partial interface ILinkerList + /// The list of dryrun. + [System.ComponentModel.TypeConverter(typeof(DryrunListTypeConverter))] + public partial interface IDryrunList { diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/LinkerList.TypeConverter.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunList.TypeConverter.cs similarity index 74% rename from src/ServiceLinker/generated/api/Models/Api20220501/LinkerList.TypeConverter.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunList.TypeConverter.cs index 26fc213ff555..c155edaa21c8 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/LinkerList.TypeConverter.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunList.TypeConverter.cs @@ -3,35 +3,35 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; /// - /// A PowerShell PSTypeConverter to support converting to an instance of + /// A PowerShell PSTypeConverter to support converting to an instance of /// - public partial class LinkerListTypeConverter : global::System.Management.Automation.PSTypeConverter + public partial class DryrunListTypeConverter : global::System.Management.Automation.PSTypeConverter { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the . + /// Determines if the converter can convert the parameter to the type. /// - /// the instance to check if it can be converted to the the instance to check if it can be converted to the type. /// - /// true if the instance could be converted to a type, otherwise false + /// true if the instance could be converted to a type, otherwise false /// public static bool CanConvertFrom(dynamic sourceValue) { @@ -74,51 +74,51 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to /// not used by this TypeConverter. /// when set to true, will ignore the case when converting. /// - /// an instance of , or null if there is no suitable conversion. + /// an instance of , or null if there is no suitable conversion. /// public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// - /// the value to convert into an instance of . + /// the value to convert into an instance of . /// - /// an instance of , or null if there is no suitable conversion. + /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerList ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunList ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerList).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunList).IsAssignableFrom(type)) { return sourceValue; } try { - return LinkerList.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + return DryrunList.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; } catch { @@ -126,11 +126,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api2022050 } if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) { - return LinkerList.DeserializeFromPSObject(sourceValue); + return DryrunList.DeserializeFromPSObject(sourceValue); } if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) { - return LinkerList.DeserializeFromDictionary(sourceValue); + return DryrunList.DeserializeFromDictionary(sourceValue); } return null; } diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunList.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunList.cs new file mode 100644 index 000000000000..0f1e40174f07 --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunList.cs @@ -0,0 +1,68 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; + + /// The list of dryrun. + public partial class DryrunList : + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunList, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunListInternal + { + + /// Backing field for property. + private string _nextLink; + + /// The link used to get the next page of dryrun list. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] + public string NextLink { get => this._nextLink; set => this._nextLink = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResource[] _value; + + /// The list of dryrun. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResource[] Value { get => this._value; set => this._value = value; } + + /// Creates an new instance. + public DryrunList() + { + + } + } + /// The list of dryrun. + public partial interface IDryrunList : + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IJsonSerializable + { + /// The link used to get the next page of dryrun list. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The link used to get the next page of dryrun list.", + SerializedName = @"nextLink", + PossibleTypes = new [] { typeof(string) })] + string NextLink { get; set; } + /// The list of dryrun. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The list of dryrun.", + SerializedName = @"value", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResource) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResource[] Value { get; set; } + + } + /// The list of dryrun. + internal partial interface IDryrunListInternal + + { + /// The link used to get the next page of dryrun list. + string NextLink { get; set; } + /// The list of dryrun. + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResource[] Value { get; set; } + + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/LinkerList.json.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunList.json.cs similarity index 88% rename from src/ServiceLinker/generated/api/Models/Api20220501/LinkerList.json.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunList.json.cs index 31d08e5e0aa6..e236403ad173 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/LinkerList.json.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunList.json.cs @@ -3,12 +3,12 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; - /// The list of Linker. - public partial class LinkerList + /// The list of dryrun. + public partial class DryrunList { /// @@ -54,22 +54,10 @@ public partial class LinkerList partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerList. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerList. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerList FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json ? new LinkerList(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject into a new instance of . + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject into a new instance of . /// /// A Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject instance to deserialize from. - internal LinkerList(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json) + internal DryrunList(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); @@ -78,18 +66,30 @@ internal LinkerList(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Jso return; } {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource) (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.LinkerResource.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResource) (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DryrunResource.FromJson(__u) )) ))() : null : Value;} AfterFromJson(json); } /// - /// Serializes this instance of into a . + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunList. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunList. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunList FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json ? new DryrunList(json) : null; + } + + /// + /// Serializes this instance of into a . /// /// The container to serialize this object into. If the caller /// passes in null, a new instance will be created and returned to the caller. /// Allows the caller to choose the depth of the serialization. See . /// - /// a serialized instance of as a . + /// a serialized instance of as a . /// public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SerializationMode serializationMode) { diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunOperationPreview.PowerShell.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunOperationPreview.PowerShell.cs new file mode 100644 index 000000000000..3811ed759d15 --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunOperationPreview.PowerShell.cs @@ -0,0 +1,178 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; + + /// The preview of the operations for creation + [System.ComponentModel.TypeConverter(typeof(DryrunOperationPreviewTypeConverter))] + public partial class DryrunOperationPreview + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunOperationPreview DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DryrunOperationPreview(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunOperationPreview DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DryrunOperationPreview(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DryrunOperationPreview(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunOperationPreviewInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunOperationPreviewInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("OperationType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunOperationPreviewInternal)this).OperationType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DryrunPreviewOperationType?) content.GetValueForProperty("OperationType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunOperationPreviewInternal)this).OperationType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DryrunPreviewOperationType.CreateFrom); + } + if (content.Contains("Description")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunOperationPreviewInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunOperationPreviewInternal)this).Description, global::System.Convert.ToString); + } + if (content.Contains("Action")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunOperationPreviewInternal)this).Action = (string) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunOperationPreviewInternal)this).Action, global::System.Convert.ToString); + } + if (content.Contains("Scope")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunOperationPreviewInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunOperationPreviewInternal)this).Scope, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal DryrunOperationPreview(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunOperationPreviewInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunOperationPreviewInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("OperationType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunOperationPreviewInternal)this).OperationType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DryrunPreviewOperationType?) content.GetValueForProperty("OperationType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunOperationPreviewInternal)this).OperationType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DryrunPreviewOperationType.CreateFrom); + } + if (content.Contains("Description")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunOperationPreviewInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunOperationPreviewInternal)this).Description, global::System.Convert.ToString); + } + if (content.Contains("Action")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunOperationPreviewInternal)this).Action = (string) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunOperationPreviewInternal)this).Action, global::System.Convert.ToString); + } + if (content.Contains("Scope")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunOperationPreviewInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunOperationPreviewInternal)this).Scope, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunOperationPreview FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The preview of the operations for creation + [System.ComponentModel.TypeConverter(typeof(DryrunOperationPreviewTypeConverter))] + public partial interface IDryrunOperationPreview + + { + + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunOperationPreview.TypeConverter.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunOperationPreview.TypeConverter.cs new file mode 100644 index 000000000000..dfaa27b5db75 --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunOperationPreview.TypeConverter.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DryrunOperationPreviewTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunOperationPreview ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunOperationPreview).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DryrunOperationPreview.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DryrunOperationPreview.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DryrunOperationPreview.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunOperationPreview.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunOperationPreview.cs new file mode 100644 index 000000000000..07f5fbce91ba --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunOperationPreview.cs @@ -0,0 +1,131 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; + + /// The preview of the operations for creation + public partial class DryrunOperationPreview : + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunOperationPreview, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunOperationPreviewInternal + { + + /// Backing field for property. + private string _action; + + /// + /// The action defined by RBAC, refer https://docs.microsoft.com/azure/role-based-access-control/role-definitions#actions-format + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] + public string Action { get => this._action; set => this._action = value; } + + /// Backing field for property. + private string _description; + + /// The description of the operation + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] + public string Description { get => this._description; set => this._description = value; } + + /// Backing field for property. + private string _name; + + /// The operation name + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] + public string Name { get => this._name; set => this._name = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DryrunPreviewOperationType? _operationType; + + /// The operation type + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DryrunPreviewOperationType? OperationType { get => this._operationType; set => this._operationType = value; } + + /// Backing field for property. + private string _scope; + + /// + /// The scope of the operation, refer https://docs.microsoft.com/azure/role-based-access-control/scope-overview + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] + public string Scope { get => this._scope; set => this._scope = value; } + + /// Creates an new instance. + public DryrunOperationPreview() + { + + } + } + /// The preview of the operations for creation + public partial interface IDryrunOperationPreview : + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IJsonSerializable + { + /// + /// The action defined by RBAC, refer https://docs.microsoft.com/azure/role-based-access-control/role-definitions#actions-format + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The action defined by RBAC, refer https://docs.microsoft.com/azure/role-based-access-control/role-definitions#actions-format", + SerializedName = @"action", + PossibleTypes = new [] { typeof(string) })] + string Action { get; set; } + /// The description of the operation + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The description of the operation", + SerializedName = @"description", + PossibleTypes = new [] { typeof(string) })] + string Description { get; set; } + /// The operation name + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The operation name", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; set; } + /// The operation type + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The operation type", + SerializedName = @"operationType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DryrunPreviewOperationType) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DryrunPreviewOperationType? OperationType { get; set; } + /// + /// The scope of the operation, refer https://docs.microsoft.com/azure/role-based-access-control/scope-overview + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The scope of the operation, refer https://docs.microsoft.com/azure/role-based-access-control/scope-overview", + SerializedName = @"scope", + PossibleTypes = new [] { typeof(string) })] + string Scope { get; set; } + + } + /// The preview of the operations for creation + internal partial interface IDryrunOperationPreviewInternal + + { + /// + /// The action defined by RBAC, refer https://docs.microsoft.com/azure/role-based-access-control/role-definitions#actions-format + /// + string Action { get; set; } + /// The description of the operation + string Description { get; set; } + /// The operation name + string Name { get; set; } + /// The operation type + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DryrunPreviewOperationType? OperationType { get; set; } + /// + /// The scope of the operation, refer https://docs.microsoft.com/azure/role-based-access-control/scope-overview + /// + string Scope { get; set; } + + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunOperationPreview.json.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunOperationPreview.json.cs new file mode 100644 index 000000000000..02c92d5e2011 --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunOperationPreview.json.cs @@ -0,0 +1,116 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; + + /// The preview of the operations for creation + public partial class DryrunOperationPreview + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject instance to deserialize from. + internal DryrunOperationPreview(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} + {_operationType = If( json?.PropertyT("operationType"), out var __jsonOperationType) ? (string)__jsonOperationType : (string)OperationType;} + {_description = If( json?.PropertyT("description"), out var __jsonDescription) ? (string)__jsonDescription : (string)Description;} + {_action = If( json?.PropertyT("action"), out var __jsonAction) ? (string)__jsonAction : (string)Action;} + {_scope = If( json?.PropertyT("scope"), out var __jsonScope) ? (string)__jsonScope : (string)Scope;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunOperationPreview. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunOperationPreview. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunOperationPreview FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json ? new DryrunOperationPreview(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + AddIf( null != (((object)this._operationType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonString(this._operationType.ToString()) : null, "operationType" ,container.Add ); + AddIf( null != (((object)this._description)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonString(this._description.ToString()) : null, "description" ,container.Add ); + AddIf( null != (((object)this._action)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonString(this._action.ToString()) : null, "action" ,container.Add ); + AddIf( null != (((object)this._scope)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonString(this._scope.ToString()) : null, "scope" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunParameters.PowerShell.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunParameters.PowerShell.cs new file mode 100644 index 000000000000..42a5ff1dd8fa --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunParameters.PowerShell.cs @@ -0,0 +1,146 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; + + /// The parameters of the dryrun + [System.ComponentModel.TypeConverter(typeof(DryrunParametersTypeConverter))] + public partial class DryrunParameters + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DryrunParameters(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DryrunParameters(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DryrunParameters(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ActionName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunParametersInternal)this).ActionName = (string) content.GetValueForProperty("ActionName",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunParametersInternal)this).ActionName, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal DryrunParameters(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ActionName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunParametersInternal)this).ActionName = (string) content.GetValueForProperty("ActionName",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunParametersInternal)this).ActionName, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The parameters of the dryrun + [System.ComponentModel.TypeConverter(typeof(DryrunParametersTypeConverter))] + public partial interface IDryrunParameters + + { + + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunParameters.TypeConverter.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunParameters.TypeConverter.cs new file mode 100644 index 000000000000..cf4c9407d8c5 --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunParameters.TypeConverter.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DryrunParametersTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunParameters ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunParameters).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DryrunParameters.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DryrunParameters.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DryrunParameters.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunParameters.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunParameters.cs new file mode 100644 index 000000000000..1a1b2e8f8e92 --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunParameters.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; + + /// The parameters of the dryrun + public partial class DryrunParameters : + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunParameters, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunParametersInternal + { + + /// Backing field for property. + private string _actionName= @"createOrUpdate"; + + /// The name of action for you dryrun job. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] + public string ActionName { get => this._actionName; } + + /// Internal Acessors for ActionName + string Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunParametersInternal.ActionName { get => this._actionName; set { {_actionName = value;} } } + + /// Creates an new instance. + public DryrunParameters() + { + + } + } + /// The parameters of the dryrun + public partial interface IDryrunParameters : + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IJsonSerializable + { + /// The name of action for you dryrun job. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = true, + ReadOnly = true, + Description = @"The name of action for you dryrun job.", + SerializedName = @"actionName", + PossibleTypes = new [] { typeof(string) })] + string ActionName { get; } + + } + /// The parameters of the dryrun + internal partial interface IDryrunParametersInternal + + { + /// The name of action for you dryrun job. + string ActionName { get; set; } + + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunParameters.json.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunParameters.json.cs new file mode 100644 index 000000000000..75d6470bce84 --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunParameters.json.cs @@ -0,0 +1,123 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; + + /// The parameters of the dryrun + public partial class DryrunParameters + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject instance to deserialize from. + internal DryrunParameters(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_actionName = If( json?.PropertyT("actionName"), out var __jsonActionName) ? (string)__jsonActionName : (string)ActionName;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunParameters. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunParameters interface is polymorphic, + /// and the precise model class that will get deserialized is determined at runtime based on the payload. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunParameters. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) + { + if (!(node is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json)) + { + return null; + } + // Polymorphic type -- select the appropriate constructor using the discriminator + + switch ( json.StringProperty("actionName") ) + { + case "createOrUpdate": + { + return new CreateOrUpdateDryrunParameters(json); + } + } + return new DryrunParameters(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._actionName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonString(this._actionName.ToString()) : null, "actionName" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunPatch.PowerShell.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunPatch.PowerShell.cs new file mode 100644 index 000000000000..edd95cbb3cb3 --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunPatch.PowerShell.cs @@ -0,0 +1,184 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; + + /// a dryrun job to be updated. + [System.ComponentModel.TypeConverter(typeof(DryrunPatchTypeConverter))] + public partial class DryrunPatch + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPatch DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DryrunPatch(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPatch DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DryrunPatch(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DryrunPatch(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPatchInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPatchInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DryrunPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Parameter")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPatchInternal)this).Parameter = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunParameters) content.GetValueForProperty("Parameter",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPatchInternal)this).Parameter, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DryrunParametersTypeConverter.ConvertFrom); + } + if (content.Contains("PrerequisiteResult")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPatchInternal)this).PrerequisiteResult = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPrerequisiteResult[]) content.GetValueForProperty("PrerequisiteResult",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPatchInternal)this).PrerequisiteResult, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DryrunPrerequisiteResultTypeConverter.ConvertFrom)); + } + if (content.Contains("OperationPreview")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPatchInternal)this).OperationPreview = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunOperationPreview[]) content.GetValueForProperty("OperationPreview",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPatchInternal)this).OperationPreview, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DryrunOperationPreviewTypeConverter.ConvertFrom)); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPatchInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPatchInternal)this).ProvisioningState, global::System.Convert.ToString); + } + if (content.Contains("ParameterActionName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPatchInternal)this).ParameterActionName = (string) content.GetValueForProperty("ParameterActionName",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPatchInternal)this).ParameterActionName, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal DryrunPatch(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPatchInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPatchInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DryrunPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Parameter")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPatchInternal)this).Parameter = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunParameters) content.GetValueForProperty("Parameter",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPatchInternal)this).Parameter, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DryrunParametersTypeConverter.ConvertFrom); + } + if (content.Contains("PrerequisiteResult")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPatchInternal)this).PrerequisiteResult = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPrerequisiteResult[]) content.GetValueForProperty("PrerequisiteResult",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPatchInternal)this).PrerequisiteResult, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DryrunPrerequisiteResultTypeConverter.ConvertFrom)); + } + if (content.Contains("OperationPreview")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPatchInternal)this).OperationPreview = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunOperationPreview[]) content.GetValueForProperty("OperationPreview",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPatchInternal)this).OperationPreview, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DryrunOperationPreviewTypeConverter.ConvertFrom)); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPatchInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPatchInternal)this).ProvisioningState, global::System.Convert.ToString); + } + if (content.Contains("ParameterActionName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPatchInternal)this).ParameterActionName = (string) content.GetValueForProperty("ParameterActionName",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPatchInternal)this).ParameterActionName, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPatch FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// a dryrun job to be updated. + [System.ComponentModel.TypeConverter(typeof(DryrunPatchTypeConverter))] + public partial interface IDryrunPatch + + { + + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunPatch.TypeConverter.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunPatch.TypeConverter.cs new file mode 100644 index 000000000000..9a3cad824a5f --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunPatch.TypeConverter.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DryrunPatchTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPatch ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPatch).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DryrunPatch.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DryrunPatch.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DryrunPatch.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunPatch.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunPatch.cs new file mode 100644 index 000000000000..333268984d2f --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunPatch.cs @@ -0,0 +1,119 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; + + /// a dryrun job to be updated. + public partial class DryrunPatch : + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPatch, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPatchInternal + { + + /// Internal Acessors for OperationPreview + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunOperationPreview[] Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPatchInternal.OperationPreview { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPropertiesInternal)Property).OperationPreview; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPropertiesInternal)Property).OperationPreview = value; } + + /// Internal Acessors for Parameter + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunParameters Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPatchInternal.Parameter { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPropertiesInternal)Property).Parameter; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPropertiesInternal)Property).Parameter = value; } + + /// Internal Acessors for ParameterActionName + string Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPatchInternal.ParameterActionName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPropertiesInternal)Property).ParameterActionName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPropertiesInternal)Property).ParameterActionName = value; } + + /// Internal Acessors for PrerequisiteResult + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPrerequisiteResult[] Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPatchInternal.PrerequisiteResult { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPropertiesInternal)Property).PrerequisiteResult; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPropertiesInternal)Property).PrerequisiteResult = value; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunProperties Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPatchInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DryrunProperties()); set { {_property = value;} } } + + /// Internal Acessors for ProvisioningState + string Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPatchInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPropertiesInternal)Property).ProvisioningState = value; } + + /// the preview of the operations for creation + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunOperationPreview[] OperationPreview { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPropertiesInternal)Property).OperationPreview; } + + /// The name of action for you dryrun job. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] + public string ParameterActionName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPropertiesInternal)Property).ParameterActionName; } + + /// the result of the dryrun + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPrerequisiteResult[] PrerequisiteResult { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPropertiesInternal)Property).PrerequisiteResult; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunProperties _property; + + /// The properties of the dryrun job. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DryrunProperties()); set => this._property = value; } + + /// The provisioning state. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] + public string ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPropertiesInternal)Property).ProvisioningState; } + + /// Creates an new instance. + public DryrunPatch() + { + + } + } + /// a dryrun job to be updated. + public partial interface IDryrunPatch : + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IJsonSerializable + { + /// the preview of the operations for creation + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"the preview of the operations for creation", + SerializedName = @"operationPreviews", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunOperationPreview) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunOperationPreview[] OperationPreview { get; } + /// The name of action for you dryrun job. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The name of action for you dryrun job.", + SerializedName = @"actionName", + PossibleTypes = new [] { typeof(string) })] + string ParameterActionName { get; } + /// the result of the dryrun + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"the result of the dryrun", + SerializedName = @"prerequisiteResults", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPrerequisiteResult) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPrerequisiteResult[] PrerequisiteResult { get; } + /// The provisioning state. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The provisioning state. ", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(string) })] + string ProvisioningState { get; } + + } + /// a dryrun job to be updated. + internal partial interface IDryrunPatchInternal + + { + /// the preview of the operations for creation + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunOperationPreview[] OperationPreview { get; set; } + /// The parameters of the dryrun + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunParameters Parameter { get; set; } + /// The name of action for you dryrun job. + string ParameterActionName { get; set; } + /// the result of the dryrun + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPrerequisiteResult[] PrerequisiteResult { get; set; } + /// The properties of the dryrun job. + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunProperties Property { get; set; } + /// The provisioning state. + string ProvisioningState { get; set; } + + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunPatch.json.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunPatch.json.cs new file mode 100644 index 000000000000..4202bc00a4a8 --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunPatch.json.cs @@ -0,0 +1,108 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; + + /// a dryrun job to be updated. + public partial class DryrunPatch + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject instance to deserialize from. + internal DryrunPatch(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DryrunProperties.FromJson(__jsonProperties) : Property;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPatch. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPatch. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPatch FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json ? new DryrunPatch(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunPrerequisiteResult.PowerShell.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunPrerequisiteResult.PowerShell.cs new file mode 100644 index 000000000000..9bf1362c45d9 --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunPrerequisiteResult.PowerShell.cs @@ -0,0 +1,146 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; + + /// A result of dryrun + [System.ComponentModel.TypeConverter(typeof(DryrunPrerequisiteResultTypeConverter))] + public partial class DryrunPrerequisiteResult + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPrerequisiteResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DryrunPrerequisiteResult(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPrerequisiteResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DryrunPrerequisiteResult(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DryrunPrerequisiteResult(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPrerequisiteResultInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DryrunPrerequisiteResultType) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPrerequisiteResultInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DryrunPrerequisiteResultType.CreateFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal DryrunPrerequisiteResult(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPrerequisiteResultInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DryrunPrerequisiteResultType) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPrerequisiteResultInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DryrunPrerequisiteResultType.CreateFrom); + } + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPrerequisiteResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// A result of dryrun + [System.ComponentModel.TypeConverter(typeof(DryrunPrerequisiteResultTypeConverter))] + public partial interface IDryrunPrerequisiteResult + + { + + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunPrerequisiteResult.TypeConverter.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunPrerequisiteResult.TypeConverter.cs new file mode 100644 index 000000000000..b7ebf9bad15b --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunPrerequisiteResult.TypeConverter.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DryrunPrerequisiteResultTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPrerequisiteResult ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPrerequisiteResult).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DryrunPrerequisiteResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DryrunPrerequisiteResult.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DryrunPrerequisiteResult.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunPrerequisiteResult.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunPrerequisiteResult.cs new file mode 100644 index 000000000000..a78c7c860ec6 --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunPrerequisiteResult.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; + + /// A result of dryrun + public partial class DryrunPrerequisiteResult : + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPrerequisiteResult, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPrerequisiteResultInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DryrunPrerequisiteResultType _type; + + /// The type of dryrun result. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DryrunPrerequisiteResultType Type { get => this._type; set => this._type = value; } + + /// Creates an new instance. + public DryrunPrerequisiteResult() + { + + } + } + /// A result of dryrun + public partial interface IDryrunPrerequisiteResult : + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IJsonSerializable + { + /// The type of dryrun result. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The type of dryrun result.", + SerializedName = @"type", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DryrunPrerequisiteResultType) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DryrunPrerequisiteResultType Type { get; set; } + + } + /// A result of dryrun + internal partial interface IDryrunPrerequisiteResultInternal + + { + /// The type of dryrun result. + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DryrunPrerequisiteResultType Type { get; set; } + + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunPrerequisiteResult.json.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunPrerequisiteResult.json.cs new file mode 100644 index 000000000000..e4c1e00dffa4 --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunPrerequisiteResult.json.cs @@ -0,0 +1,127 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; + + /// A result of dryrun + public partial class DryrunPrerequisiteResult + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject instance to deserialize from. + internal DryrunPrerequisiteResult(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)Type;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPrerequisiteResult. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPrerequisiteResult interface + /// is polymorphic, and the precise model class that will get deserialized is determined at runtime based on the payload. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPrerequisiteResult. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPrerequisiteResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) + { + if (!(node is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json)) + { + return null; + } + // Polymorphic type -- select the appropriate constructor using the discriminator + + switch ( json.StringProperty("type") ) + { + case "basicError": + { + return new BasicErrorDryrunPrerequisiteResult(json); + } + case "permissionsMissing": + { + return new PermissionsMissingDryrunPrerequisiteResult(json); + } + } + return new DryrunPrerequisiteResult(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunProperties.PowerShell.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunProperties.PowerShell.cs new file mode 100644 index 000000000000..bc086053421a --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunProperties.PowerShell.cs @@ -0,0 +1,178 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; + + /// The properties of the dryrun job + [System.ComponentModel.TypeConverter(typeof(DryrunPropertiesTypeConverter))] + public partial class DryrunProperties + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DryrunProperties(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DryrunProperties(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DryrunProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Parameter")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPropertiesInternal)this).Parameter = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunParameters) content.GetValueForProperty("Parameter",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPropertiesInternal)this).Parameter, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DryrunParametersTypeConverter.ConvertFrom); + } + if (content.Contains("PrerequisiteResult")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPropertiesInternal)this).PrerequisiteResult = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPrerequisiteResult[]) content.GetValueForProperty("PrerequisiteResult",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPropertiesInternal)this).PrerequisiteResult, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DryrunPrerequisiteResultTypeConverter.ConvertFrom)); + } + if (content.Contains("OperationPreview")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPropertiesInternal)this).OperationPreview = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunOperationPreview[]) content.GetValueForProperty("OperationPreview",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPropertiesInternal)this).OperationPreview, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DryrunOperationPreviewTypeConverter.ConvertFrom)); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); + } + if (content.Contains("ParameterActionName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPropertiesInternal)this).ParameterActionName = (string) content.GetValueForProperty("ParameterActionName",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPropertiesInternal)this).ParameterActionName, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal DryrunProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Parameter")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPropertiesInternal)this).Parameter = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunParameters) content.GetValueForProperty("Parameter",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPropertiesInternal)this).Parameter, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DryrunParametersTypeConverter.ConvertFrom); + } + if (content.Contains("PrerequisiteResult")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPropertiesInternal)this).PrerequisiteResult = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPrerequisiteResult[]) content.GetValueForProperty("PrerequisiteResult",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPropertiesInternal)this).PrerequisiteResult, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DryrunPrerequisiteResultTypeConverter.ConvertFrom)); + } + if (content.Contains("OperationPreview")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPropertiesInternal)this).OperationPreview = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunOperationPreview[]) content.GetValueForProperty("OperationPreview",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPropertiesInternal)this).OperationPreview, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DryrunOperationPreviewTypeConverter.ConvertFrom)); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); + } + if (content.Contains("ParameterActionName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPropertiesInternal)this).ParameterActionName = (string) content.GetValueForProperty("ParameterActionName",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPropertiesInternal)this).ParameterActionName, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The properties of the dryrun job + [System.ComponentModel.TypeConverter(typeof(DryrunPropertiesTypeConverter))] + public partial interface IDryrunProperties + + { + + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunProperties.TypeConverter.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunProperties.TypeConverter.cs new file mode 100644 index 000000000000..db46669dff06 --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunProperties.TypeConverter.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DryrunPropertiesTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunProperties ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunProperties).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DryrunProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DryrunProperties.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DryrunProperties.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunProperties.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunProperties.cs new file mode 100644 index 000000000000..a346f5bf2a44 --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunProperties.cs @@ -0,0 +1,123 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; + + /// The properties of the dryrun job + public partial class DryrunProperties : + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunProperties, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPropertiesInternal + { + + /// Internal Acessors for OperationPreview + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunOperationPreview[] Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPropertiesInternal.OperationPreview { get => this._operationPreview; set { {_operationPreview = value;} } } + + /// Internal Acessors for Parameter + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunParameters Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPropertiesInternal.Parameter { get => (this._parameter = this._parameter ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DryrunParameters()); set { {_parameter = value;} } } + + /// Internal Acessors for ParameterActionName + string Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPropertiesInternal.ParameterActionName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunParametersInternal)Parameter).ActionName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunParametersInternal)Parameter).ActionName = value; } + + /// Internal Acessors for PrerequisiteResult + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPrerequisiteResult[] Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPropertiesInternal.PrerequisiteResult { get => this._prerequisiteResult; set { {_prerequisiteResult = value;} } } + + /// Internal Acessors for ProvisioningState + string Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunOperationPreview[] _operationPreview; + + /// the preview of the operations for creation + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunOperationPreview[] OperationPreview { get => this._operationPreview; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunParameters _parameter; + + /// The parameters of the dryrun + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunParameters Parameter { get => (this._parameter = this._parameter ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DryrunParameters()); set => this._parameter = value; } + + /// The name of action for you dryrun job. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] + public string ParameterActionName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunParametersInternal)Parameter).ActionName; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPrerequisiteResult[] _prerequisiteResult; + + /// the result of the dryrun + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPrerequisiteResult[] PrerequisiteResult { get => this._prerequisiteResult; } + + /// Backing field for property. + private string _provisioningState; + + /// The provisioning state. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] + public string ProvisioningState { get => this._provisioningState; } + + /// Creates an new instance. + public DryrunProperties() + { + + } + } + /// The properties of the dryrun job + public partial interface IDryrunProperties : + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IJsonSerializable + { + /// the preview of the operations for creation + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"the preview of the operations for creation", + SerializedName = @"operationPreviews", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunOperationPreview) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunOperationPreview[] OperationPreview { get; } + /// The name of action for you dryrun job. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The name of action for you dryrun job.", + SerializedName = @"actionName", + PossibleTypes = new [] { typeof(string) })] + string ParameterActionName { get; } + /// the result of the dryrun + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"the result of the dryrun", + SerializedName = @"prerequisiteResults", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPrerequisiteResult) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPrerequisiteResult[] PrerequisiteResult { get; } + /// The provisioning state. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The provisioning state. ", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(string) })] + string ProvisioningState { get; } + + } + /// The properties of the dryrun job + internal partial interface IDryrunPropertiesInternal + + { + /// the preview of the operations for creation + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunOperationPreview[] OperationPreview { get; set; } + /// The parameters of the dryrun + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunParameters Parameter { get; set; } + /// The name of action for you dryrun job. + string ParameterActionName { get; set; } + /// the result of the dryrun + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPrerequisiteResult[] PrerequisiteResult { get; set; } + /// The provisioning state. + string ProvisioningState { get; set; } + + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunProperties.json.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunProperties.json.cs new file mode 100644 index 000000000000..a88407e584df --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunProperties.json.cs @@ -0,0 +1,139 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; + + /// The properties of the dryrun job + public partial class DryrunProperties + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject instance to deserialize from. + internal DryrunProperties(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_parameter = If( json?.PropertyT("parameters"), out var __jsonParameters) ? Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DryrunParameters.FromJson(__jsonParameters) : Parameter;} + {_prerequisiteResult = If( json?.PropertyT("prerequisiteResults"), out var __jsonPrerequisiteResults) ? If( __jsonPrerequisiteResults as Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPrerequisiteResult) (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DryrunPrerequisiteResult.FromJson(__u) )) ))() : null : PrerequisiteResult;} + {_operationPreview = If( json?.PropertyT("operationPreviews"), out var __jsonOperationPreviews) ? If( __jsonOperationPreviews as Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunOperationPreview) (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DryrunOperationPreview.FromJson(__p) )) ))() : null : OperationPreview;} + {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunProperties. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunProperties. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json ? new DryrunProperties(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._parameter ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) this._parameter.ToJson(null,serializationMode) : null, "parameters" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SerializationMode.IncludeReadOnly)) + { + if (null != this._prerequisiteResult) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.XNodeArray(); + foreach( var __x in this._prerequisiteResult ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("prerequisiteResults",__w); + } + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SerializationMode.IncludeReadOnly)) + { + if (null != this._operationPreview) + { + var __r = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.XNodeArray(); + foreach( var __s in this._operationPreview ) + { + AddIf(__s?.ToJson(null, serializationMode) ,__r.Add); + } + container.Add("operationPreviews",__r); + } + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._provisioningState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonString(this._provisioningState.ToString()) : null, "provisioningState" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunResource.PowerShell.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunResource.PowerShell.cs new file mode 100644 index 000000000000..d61b794659d9 --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunResource.PowerShell.cs @@ -0,0 +1,266 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; + + /// a dryrun job resource + [System.ComponentModel.TypeConverter(typeof(DryrunResourceTypeConverter))] + public partial class DryrunResource + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DryrunResource(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DryrunResource(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DryrunResource(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DryrunPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Parameter")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResourceInternal)this).Parameter = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunParameters) content.GetValueForProperty("Parameter",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResourceInternal)this).Parameter, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DryrunParametersTypeConverter.ConvertFrom); + } + if (content.Contains("PrerequisiteResult")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResourceInternal)this).PrerequisiteResult = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPrerequisiteResult[]) content.GetValueForProperty("PrerequisiteResult",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResourceInternal)this).PrerequisiteResult, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DryrunPrerequisiteResultTypeConverter.ConvertFrom)); + } + if (content.Contains("OperationPreview")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResourceInternal)this).OperationPreview = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunOperationPreview[]) content.GetValueForProperty("OperationPreview",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResourceInternal)this).OperationPreview, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DryrunOperationPreviewTypeConverter.ConvertFrom)); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResourceInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResourceInternal)this).ProvisioningState, global::System.Convert.ToString); + } + if (content.Contains("ParameterActionName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResourceInternal)this).ParameterActionName = (string) content.GetValueForProperty("ParameterActionName",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResourceInternal)this).ParameterActionName, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal DryrunResource(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DryrunPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Parameter")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResourceInternal)this).Parameter = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunParameters) content.GetValueForProperty("Parameter",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResourceInternal)this).Parameter, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DryrunParametersTypeConverter.ConvertFrom); + } + if (content.Contains("PrerequisiteResult")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResourceInternal)this).PrerequisiteResult = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPrerequisiteResult[]) content.GetValueForProperty("PrerequisiteResult",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResourceInternal)this).PrerequisiteResult, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DryrunPrerequisiteResultTypeConverter.ConvertFrom)); + } + if (content.Contains("OperationPreview")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResourceInternal)this).OperationPreview = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunOperationPreview[]) content.GetValueForProperty("OperationPreview",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResourceInternal)this).OperationPreview, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DryrunOperationPreviewTypeConverter.ConvertFrom)); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResourceInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResourceInternal)this).ProvisioningState, global::System.Convert.ToString); + } + if (content.Contains("ParameterActionName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResourceInternal)this).ParameterActionName = (string) content.GetValueForProperty("ParameterActionName",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResourceInternal)this).ParameterActionName, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// a dryrun job resource + [System.ComponentModel.TypeConverter(typeof(DryrunResourceTypeConverter))] + public partial interface IDryrunResource + + { + + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunResource.TypeConverter.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunResource.TypeConverter.cs new file mode 100644 index 000000000000..a226e78f2ee5 --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunResource.TypeConverter.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DryrunResourceTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResource ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResource).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DryrunResource.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DryrunResource.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DryrunResource.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunResource.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunResource.cs new file mode 100644 index 000000000000..fffa5132995d --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunResource.cs @@ -0,0 +1,196 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; + + /// a dryrun job resource + public partial class DryrunResource : + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResource, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResourceInternal, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.Resource(); + + /// + /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)__resource).Id; } + + /// Internal Acessors for OperationPreview + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunOperationPreview[] Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResourceInternal.OperationPreview { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPropertiesInternal)Property).OperationPreview; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPropertiesInternal)Property).OperationPreview = value; } + + /// Internal Acessors for Parameter + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunParameters Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResourceInternal.Parameter { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPropertiesInternal)Property).Parameter; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPropertiesInternal)Property).Parameter = value; } + + /// Internal Acessors for ParameterActionName + string Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResourceInternal.ParameterActionName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPropertiesInternal)Property).ParameterActionName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPropertiesInternal)Property).ParameterActionName = value; } + + /// Internal Acessors for PrerequisiteResult + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPrerequisiteResult[] Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResourceInternal.PrerequisiteResult { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPropertiesInternal)Property).PrerequisiteResult; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPropertiesInternal)Property).PrerequisiteResult = value; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunProperties Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DryrunProperties()); set { {_property = value;} } } + + /// Internal Acessors for ProvisioningState + string Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResourceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPropertiesInternal)Property).ProvisioningState = value; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)__resource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)__resource).Name = value; } + + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)__resource).SystemData = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)__resource).Type = value; } + + /// The name of the resource + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)__resource).Name; } + + /// the preview of the operations for creation + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunOperationPreview[] OperationPreview { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPropertiesInternal)Property).OperationPreview; } + + /// The name of action for you dryrun job. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] + public string ParameterActionName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPropertiesInternal)Property).ParameterActionName; } + + /// the result of the dryrun + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPrerequisiteResult[] PrerequisiteResult { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPropertiesInternal)Property).PrerequisiteResult; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunProperties _property; + + /// The properties of the dryrun job. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DryrunProperties()); set => this._property = value; } + + /// The provisioning state. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] + public string ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPropertiesInternal)Property).ProvisioningState; } + + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)__resource).SystemData; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)__resource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType)""); } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType)""); } + + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)__resource).Type; } + + /// Creates an new instance. + public DryrunResource() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__resource), __resource); + await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + } + } + /// a dryrun job resource + public partial interface IDryrunResource : + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResource + { + /// the preview of the operations for creation + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"the preview of the operations for creation", + SerializedName = @"operationPreviews", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunOperationPreview) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunOperationPreview[] OperationPreview { get; } + /// The name of action for you dryrun job. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The name of action for you dryrun job.", + SerializedName = @"actionName", + PossibleTypes = new [] { typeof(string) })] + string ParameterActionName { get; } + /// the result of the dryrun + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"the result of the dryrun", + SerializedName = @"prerequisiteResults", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPrerequisiteResult) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPrerequisiteResult[] PrerequisiteResult { get; } + /// The provisioning state. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The provisioning state. ", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(string) })] + string ProvisioningState { get; } + + } + /// a dryrun job resource + internal partial interface IDryrunResourceInternal : + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal + { + /// the preview of the operations for creation + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunOperationPreview[] OperationPreview { get; set; } + /// The parameters of the dryrun + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunParameters Parameter { get; set; } + /// The name of action for you dryrun job. + string ParameterActionName { get; set; } + /// the result of the dryrun + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPrerequisiteResult[] PrerequisiteResult { get; set; } + /// The properties of the dryrun job. + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunProperties Property { get; set; } + /// The provisioning state. + string ProvisioningState { get; set; } + + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunResource.json.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunResource.json.cs new file mode 100644 index 000000000000..6b3dff56a8f8 --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/DryrunResource.json.cs @@ -0,0 +1,110 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; + + /// a dryrun job resource + public partial class DryrunResource + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject instance to deserialize from. + internal DryrunResource(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __resource = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.Resource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DryrunProperties.FromJson(__jsonProperties) : Property;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResource. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResource. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json ? new DryrunResource(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + __resource?.ToJson(container, serializationMode); + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/FirewallRules.PowerShell.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/FirewallRules.PowerShell.cs new file mode 100644 index 000000000000..7d38d3daa5f8 --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/FirewallRules.PowerShell.cs @@ -0,0 +1,160 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; + + /// Target service's firewall rules. to allow connections from source service. + [System.ComponentModel.TypeConverter(typeof(FirewallRulesTypeConverter))] + public partial class FirewallRules + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IFirewallRules DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new FirewallRules(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IFirewallRules DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new FirewallRules(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal FirewallRules(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("IPRange")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IFirewallRulesInternal)this).IPRange = (string[]) content.GetValueForProperty("IPRange",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IFirewallRulesInternal)this).IPRange, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("AzureService")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IFirewallRulesInternal)this).AzureService = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType?) content.GetValueForProperty("AzureService",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IFirewallRulesInternal)this).AzureService, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType.CreateFrom); + } + if (content.Contains("CallerClientIP")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IFirewallRulesInternal)this).CallerClientIP = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType?) content.GetValueForProperty("CallerClientIP",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IFirewallRulesInternal)this).CallerClientIP, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType.CreateFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal FirewallRules(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("IPRange")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IFirewallRulesInternal)this).IPRange = (string[]) content.GetValueForProperty("IPRange",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IFirewallRulesInternal)this).IPRange, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("AzureService")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IFirewallRulesInternal)this).AzureService = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType?) content.GetValueForProperty("AzureService",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IFirewallRulesInternal)this).AzureService, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType.CreateFrom); + } + if (content.Contains("CallerClientIP")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IFirewallRulesInternal)this).CallerClientIP = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType?) content.GetValueForProperty("CallerClientIP",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IFirewallRulesInternal)this).CallerClientIP, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType.CreateFrom); + } + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IFirewallRules FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Target service's firewall rules. to allow connections from source service. + [System.ComponentModel.TypeConverter(typeof(FirewallRulesTypeConverter))] + public partial interface IFirewallRules + + { + + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/FirewallRules.TypeConverter.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/FirewallRules.TypeConverter.cs new file mode 100644 index 000000000000..9b25a2ea4231 --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/FirewallRules.TypeConverter.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class FirewallRulesTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IFirewallRules ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IFirewallRules).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return FirewallRules.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return FirewallRules.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return FirewallRules.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/FirewallRules.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/FirewallRules.cs new file mode 100644 index 000000000000..8b5bb2f7f36b --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/FirewallRules.cs @@ -0,0 +1,103 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; + + /// Target service's firewall rules. to allow connections from source service. + public partial class FirewallRules : + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IFirewallRules, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IFirewallRulesInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType? _azureService; + + /// Allow Azure services to access the target service if true. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType? AzureService { get => this._azureService; set => this._azureService = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType? _callerClientIP; + + /// + /// Allow caller client IP to access the target service if true. the property is used when connecting local application to + /// target service. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType? CallerClientIP { get => this._callerClientIP; set => this._callerClientIP = value; } + + /// Backing field for property. + private string[] _iPRange; + + /// + /// This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client + /// IPs for a given database account. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] + public string[] IPRange { get => this._iPRange; set => this._iPRange = value; } + + /// Creates an new instance. + public FirewallRules() + { + + } + } + /// Target service's firewall rules. to allow connections from source service. + public partial interface IFirewallRules : + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IJsonSerializable + { + /// Allow Azure services to access the target service if true. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Allow Azure services to access the target service if true.", + SerializedName = @"azureServices", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType? AzureService { get; set; } + /// + /// Allow caller client IP to access the target service if true. the property is used when connecting local application to + /// target service. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Allow caller client IP to access the target service if true. the property is used when connecting local application to target service.", + SerializedName = @"callerClientIP", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType? CallerClientIP { get; set; } + /// + /// This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client + /// IPs for a given database account. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client IPs for a given database account.", + SerializedName = @"ipRanges", + PossibleTypes = new [] { typeof(string) })] + string[] IPRange { get; set; } + + } + /// Target service's firewall rules. to allow connections from source service. + internal partial interface IFirewallRulesInternal + + { + /// Allow Azure services to access the target service if true. + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType? AzureService { get; set; } + /// + /// Allow caller client IP to access the target service if true. the property is used when connecting local application to + /// target service. + /// + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType? CallerClientIP { get; set; } + /// + /// This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client + /// IPs for a given database account. + /// + string[] IPRange { get; set; } + + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/FirewallRules.json.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/FirewallRules.json.cs new file mode 100644 index 000000000000..10069c89cd5e --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/FirewallRules.json.cs @@ -0,0 +1,120 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; + + /// Target service's firewall rules. to allow connections from source service. + public partial class FirewallRules + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject instance to deserialize from. + internal FirewallRules(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_iPRange = If( json?.PropertyT("ipRanges"), out var __jsonIPRanges) ? If( __jsonIPRanges as Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : IPRange;} + {_azureService = If( json?.PropertyT("azureServices"), out var __jsonAzureServices) ? (string)__jsonAzureServices : (string)AzureService;} + {_callerClientIP = If( json?.PropertyT("callerClientIP"), out var __jsonCallerClientIP) ? (string)__jsonCallerClientIP : (string)CallerClientIP;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IFirewallRules. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IFirewallRules. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IFirewallRules FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json ? new FirewallRules(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (null != this._iPRange) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.XNodeArray(); + foreach( var __x in this._iPRange ) + { + AddIf(null != (((object)__x)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonString(__x.ToString()) : null ,__w.Add); + } + container.Add("ipRanges",__w); + } + AddIf( null != (((object)this._azureService)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonString(this._azureService.ToString()) : null, "azureServices" ,container.Add ); + AddIf( null != (((object)this._callerClientIP)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonString(this._callerClientIP.ToString()) : null, "callerClientIP" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/KeyVaultSecretReferenceSecretInfo.PowerShell.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/KeyVaultSecretReferenceSecretInfo.PowerShell.cs similarity index 71% rename from src/ServiceLinker/generated/api/Models/Api20220501/KeyVaultSecretReferenceSecretInfo.PowerShell.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/KeyVaultSecretReferenceSecretInfo.PowerShell.cs index 2d0b6441c3ba..7bf2b0a8b4e9 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/KeyVaultSecretReferenceSecretInfo.PowerShell.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/KeyVaultSecretReferenceSecretInfo.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; @@ -34,7 +34,8 @@ public partial class KeyVaultSecretReferenceSecretInfo /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -46,7 +47,8 @@ public partial class KeyVaultSecretReferenceSecretInfo /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -56,29 +58,29 @@ public partial class KeyVaultSecretReferenceSecretInfo partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IKeyVaultSecretReferenceSecretInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IKeyVaultSecretReferenceSecretInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new KeyVaultSecretReferenceSecretInfo(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IKeyVaultSecretReferenceSecretInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IKeyVaultSecretReferenceSecretInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new KeyVaultSecretReferenceSecretInfo(content); } @@ -90,10 +92,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api2022050 /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IKeyVaultSecretReferenceSecretInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IKeyVaultSecretReferenceSecretInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -108,21 +110,21 @@ internal KeyVaultSecretReferenceSecretInfo(global::System.Collections.IDictionar // actually deserialize if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IKeyVaultSecretReferenceSecretInfoInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IKeyVaultSecretReferenceSecretInfoInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IKeyVaultSecretReferenceSecretInfoInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IKeyVaultSecretReferenceSecretInfoInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Version")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IKeyVaultSecretReferenceSecretInfoInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IKeyVaultSecretReferenceSecretInfoInternal)this).Version, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IKeyVaultSecretReferenceSecretInfoInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IKeyVaultSecretReferenceSecretInfoInternal)this).Version, global::System.Convert.ToString); } if (content.Contains("SecretType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretInfoBaseInternal)this).SecretType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.SecretType) content.GetValueForProperty("SecretType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretInfoBaseInternal)this).SecretType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.SecretType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretInfoBaseInternal)this).SecretType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.SecretType) content.GetValueForProperty("SecretType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretInfoBaseInternal)this).SecretType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.SecretType.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -137,15 +139,15 @@ internal KeyVaultSecretReferenceSecretInfo(global::System.Management.Automation. // actually deserialize if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IKeyVaultSecretReferenceSecretInfoInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IKeyVaultSecretReferenceSecretInfoInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IKeyVaultSecretReferenceSecretInfoInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IKeyVaultSecretReferenceSecretInfoInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Version")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IKeyVaultSecretReferenceSecretInfoInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IKeyVaultSecretReferenceSecretInfoInternal)this).Version, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IKeyVaultSecretReferenceSecretInfoInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IKeyVaultSecretReferenceSecretInfoInternal)this).Version, global::System.Convert.ToString); } if (content.Contains("SecretType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretInfoBaseInternal)this).SecretType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.SecretType) content.GetValueForProperty("SecretType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretInfoBaseInternal)this).SecretType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.SecretType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretInfoBaseInternal)this).SecretType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.SecretType) content.GetValueForProperty("SecretType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretInfoBaseInternal)this).SecretType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.SecretType.CreateFrom); } AfterDeserializePSObject(content); } diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/KeyVaultSecretReferenceSecretInfo.TypeConverter.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/KeyVaultSecretReferenceSecretInfo.TypeConverter.cs similarity index 81% rename from src/ServiceLinker/generated/api/Models/Api20220501/KeyVaultSecretReferenceSecretInfo.TypeConverter.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/KeyVaultSecretReferenceSecretInfo.TypeConverter.cs index 0ec86c352d23..7c0fcf7a42ec 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/KeyVaultSecretReferenceSecretInfo.TypeConverter.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/KeyVaultSecretReferenceSecretInfo.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class KeyVaultSecretReferenceSecretInfoTypeConverter : global::Sy { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the . + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,21 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IKeyVaultSecretReferenceSecretInfo ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IKeyVaultSecretReferenceSecretInfo ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IKeyVaultSecretReferenceSecretInfo).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IKeyVaultSecretReferenceSecretInfo).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/KeyVaultSecretReferenceSecretInfo.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/KeyVaultSecretReferenceSecretInfo.cs similarity index 87% rename from src/ServiceLinker/generated/api/Models/Api20220501/KeyVaultSecretReferenceSecretInfo.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/KeyVaultSecretReferenceSecretInfo.cs index d2eb213822d6..e128037d0fbe 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/KeyVaultSecretReferenceSecretInfo.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/KeyVaultSecretReferenceSecretInfo.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; @@ -12,15 +12,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 /// and source is Azure Kubernetes. The key Vault's resource id is linked to secretStore.keyVaultId. /// public partial class KeyVaultSecretReferenceSecretInfo : - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IKeyVaultSecretReferenceSecretInfo, - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IKeyVaultSecretReferenceSecretInfoInternal, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IKeyVaultSecretReferenceSecretInfo, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IKeyVaultSecretReferenceSecretInfoInternal, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretInfoBase __secretInfoBase = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.SecretInfoBase(); + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretInfoBase __secretInfoBase = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.SecretInfoBase(); /// Backing field for property. private string _name; @@ -31,7 +31,7 @@ public partial class KeyVaultSecretReferenceSecretInfo : /// The secret type. [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.SecretType SecretType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretInfoBaseInternal)__secretInfoBase).SecretType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretInfoBaseInternal)__secretInfoBase).SecretType = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.SecretType SecretType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretInfoBaseInternal)__secretInfoBase).SecretType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretInfoBaseInternal)__secretInfoBase).SecretType = value ; } /// Backing field for property. private string _version; @@ -62,7 +62,7 @@ public KeyVaultSecretReferenceSecretInfo() /// and source is Azure Kubernetes. The key Vault's resource id is linked to secretStore.keyVaultId. public partial interface IKeyVaultSecretReferenceSecretInfo : Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretInfoBase + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretInfoBase { /// Name of the Key Vault secret. [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( @@ -85,7 +85,7 @@ public partial interface IKeyVaultSecretReferenceSecretInfo : /// The secret info when type is keyVaultSecretReference. It's for scenario that user provides a secret stored in user's keyvault /// and source is Azure Kubernetes. The key Vault's resource id is linked to secretStore.keyVaultId. internal partial interface IKeyVaultSecretReferenceSecretInfoInternal : - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretInfoBaseInternal + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretInfoBaseInternal { /// Name of the Key Vault secret. string Name { get; set; } diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/KeyVaultSecretReferenceSecretInfo.json.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/KeyVaultSecretReferenceSecretInfo.json.cs similarity index 95% rename from src/ServiceLinker/generated/api/Models/Api20220501/KeyVaultSecretReferenceSecretInfo.json.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/KeyVaultSecretReferenceSecretInfo.json.cs index 612d0eef9ad1..f7a8db5ab46d 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/KeyVaultSecretReferenceSecretInfo.json.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/KeyVaultSecretReferenceSecretInfo.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; @@ -57,13 +57,13 @@ public partial class KeyVaultSecretReferenceSecretInfo partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IKeyVaultSecretReferenceSecretInfo. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IKeyVaultSecretReferenceSecretInfo. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IKeyVaultSecretReferenceSecretInfo. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IKeyVaultSecretReferenceSecretInfo. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IKeyVaultSecretReferenceSecretInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IKeyVaultSecretReferenceSecretInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json ? new KeyVaultSecretReferenceSecretInfo(json) : null; } @@ -80,7 +80,7 @@ internal KeyVaultSecretReferenceSecretInfo(Microsoft.Azure.PowerShell.Cmdlets.Se { return; } - __secretInfoBase = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.SecretInfoBase(json); + __secretInfoBase = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.SecretInfoBase(json); {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} {_version = If( json?.PropertyT("version"), out var __jsonVersion) ? (string)__jsonVersion : (string)Version;} AfterFromJson(json); diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/KeyVaultSecretUriSecretInfo.PowerShell.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/KeyVaultSecretUriSecretInfo.PowerShell.cs similarity index 75% rename from src/ServiceLinker/generated/api/Models/Api20220501/KeyVaultSecretUriSecretInfo.PowerShell.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/KeyVaultSecretUriSecretInfo.PowerShell.cs index 5561a69bcb44..b0eaed62ecd7 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/KeyVaultSecretUriSecretInfo.PowerShell.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/KeyVaultSecretUriSecretInfo.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; @@ -34,7 +34,8 @@ public partial class KeyVaultSecretUriSecretInfo /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -46,7 +47,8 @@ public partial class KeyVaultSecretUriSecretInfo /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -56,29 +58,29 @@ public partial class KeyVaultSecretUriSecretInfo partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IKeyVaultSecretUriSecretInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IKeyVaultSecretUriSecretInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new KeyVaultSecretUriSecretInfo(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IKeyVaultSecretUriSecretInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IKeyVaultSecretUriSecretInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new KeyVaultSecretUriSecretInfo(content); } @@ -88,10 +90,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api2022050 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IKeyVaultSecretUriSecretInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IKeyVaultSecretUriSecretInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -106,17 +108,17 @@ internal KeyVaultSecretUriSecretInfo(global::System.Collections.IDictionary cont // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IKeyVaultSecretUriSecretInfoInternal)this).Value = (string) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IKeyVaultSecretUriSecretInfoInternal)this).Value, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IKeyVaultSecretUriSecretInfoInternal)this).Value = (string) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IKeyVaultSecretUriSecretInfoInternal)this).Value, global::System.Convert.ToString); } if (content.Contains("SecretType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretInfoBaseInternal)this).SecretType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.SecretType) content.GetValueForProperty("SecretType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretInfoBaseInternal)this).SecretType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.SecretType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretInfoBaseInternal)this).SecretType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.SecretType) content.GetValueForProperty("SecretType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretInfoBaseInternal)this).SecretType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.SecretType.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -131,11 +133,11 @@ internal KeyVaultSecretUriSecretInfo(global::System.Management.Automation.PSObje // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IKeyVaultSecretUriSecretInfoInternal)this).Value = (string) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IKeyVaultSecretUriSecretInfoInternal)this).Value, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IKeyVaultSecretUriSecretInfoInternal)this).Value = (string) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IKeyVaultSecretUriSecretInfoInternal)this).Value, global::System.Convert.ToString); } if (content.Contains("SecretType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretInfoBaseInternal)this).SecretType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.SecretType) content.GetValueForProperty("SecretType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretInfoBaseInternal)this).SecretType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.SecretType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretInfoBaseInternal)this).SecretType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.SecretType) content.GetValueForProperty("SecretType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretInfoBaseInternal)this).SecretType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.SecretType.CreateFrom); } AfterDeserializePSObject(content); } diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/KeyVaultSecretUriSecretInfo.TypeConverter.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/KeyVaultSecretUriSecretInfo.TypeConverter.cs similarity index 81% rename from src/ServiceLinker/generated/api/Models/Api20220501/KeyVaultSecretUriSecretInfo.TypeConverter.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/KeyVaultSecretUriSecretInfo.TypeConverter.cs index 3323fb693002..bd91ad29b618 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/KeyVaultSecretUriSecretInfo.TypeConverter.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/KeyVaultSecretUriSecretInfo.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class KeyVaultSecretUriSecretInfoTypeConverter : global::System.M { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the . + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IKeyVaultSecretUriSecretInfo ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IKeyVaultSecretUriSecretInfo ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IKeyVaultSecretUriSecretInfo).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IKeyVaultSecretUriSecretInfo).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/KeyVaultSecretUriSecretInfo.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/KeyVaultSecretUriSecretInfo.cs similarity index 85% rename from src/ServiceLinker/generated/api/Models/Api20220501/KeyVaultSecretUriSecretInfo.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/KeyVaultSecretUriSecretInfo.cs index bc506c9761e9..03beffae7290 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/KeyVaultSecretUriSecretInfo.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/KeyVaultSecretUriSecretInfo.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; @@ -12,19 +12,19 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 /// and source is Web App, Spring Cloud or Container App. /// public partial class KeyVaultSecretUriSecretInfo : - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IKeyVaultSecretUriSecretInfo, - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IKeyVaultSecretUriSecretInfoInternal, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IKeyVaultSecretUriSecretInfo, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IKeyVaultSecretUriSecretInfoInternal, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretInfoBase __secretInfoBase = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.SecretInfoBase(); + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretInfoBase __secretInfoBase = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.SecretInfoBase(); /// The secret type. [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.SecretType SecretType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretInfoBaseInternal)__secretInfoBase).SecretType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretInfoBaseInternal)__secretInfoBase).SecretType = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.SecretType SecretType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretInfoBaseInternal)__secretInfoBase).SecretType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretInfoBaseInternal)__secretInfoBase).SecretType = value ; } /// Backing field for property. private string _value; @@ -55,7 +55,7 @@ public KeyVaultSecretUriSecretInfo() /// and source is Web App, Spring Cloud or Container App. public partial interface IKeyVaultSecretUriSecretInfo : Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretInfoBase + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretInfoBase { /// URI to the keyvault secret [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( @@ -70,7 +70,7 @@ public partial interface IKeyVaultSecretUriSecretInfo : /// The secret info when type is keyVaultSecretUri. It's for scenario that user provides a secret stored in user's keyvault /// and source is Web App, Spring Cloud or Container App. internal partial interface IKeyVaultSecretUriSecretInfoInternal : - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretInfoBaseInternal + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretInfoBaseInternal { /// URI to the keyvault secret string Value { get; set; } diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/KeyVaultSecretUriSecretInfo.json.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/KeyVaultSecretUriSecretInfo.json.cs similarity index 95% rename from src/ServiceLinker/generated/api/Models/Api20220501/KeyVaultSecretUriSecretInfo.json.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/KeyVaultSecretUriSecretInfo.json.cs index 6011c340c9da..b0c91057fc92 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/KeyVaultSecretUriSecretInfo.json.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/KeyVaultSecretUriSecretInfo.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; @@ -57,13 +57,13 @@ public partial class KeyVaultSecretUriSecretInfo partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IKeyVaultSecretUriSecretInfo. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IKeyVaultSecretUriSecretInfo. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IKeyVaultSecretUriSecretInfo. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IKeyVaultSecretUriSecretInfo. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IKeyVaultSecretUriSecretInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IKeyVaultSecretUriSecretInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json ? new KeyVaultSecretUriSecretInfo(json) : null; } @@ -80,7 +80,7 @@ internal KeyVaultSecretUriSecretInfo(Microsoft.Azure.PowerShell.Cmdlets.ServiceL { return; } - __secretInfoBase = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.SecretInfoBase(json); + __secretInfoBase = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.SecretInfoBase(json); {_value = If( json?.PropertyT("value"), out var __jsonValue) ? (string)__jsonValue : (string)Value;} AfterFromJson(json); } diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/LinkerPatch.PowerShell.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/LinkerPatch.PowerShell.cs new file mode 100644 index 000000000000..769787ba4fee --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/LinkerPatch.PowerShell.cs @@ -0,0 +1,328 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; + + /// A Linker to be updated. + [System.ComponentModel.TypeConverter(typeof(LinkerPatchTypeConverter))] + public partial class LinkerPatch + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatch DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new LinkerPatch(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatch DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new LinkerPatch(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatch FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal LinkerPatch(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.LinkerPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("SecretStore")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).SecretStore = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretStore) content.GetValueForProperty("SecretStore",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).SecretStore, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.SecretStoreTypeConverter.ConvertFrom); + } + if (content.Contains("ConfigurationInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).ConfigurationInfo = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfo) content.GetValueForProperty("ConfigurationInfo",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).ConfigurationInfo, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationInfoTypeConverter.ConvertFrom); + } + if (content.Contains("ClientType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).ClientType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType?) content.GetValueForProperty("ClientType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).ClientType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType.CreateFrom); + } + if (content.Contains("VNetSolution")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).VNetSolution = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IVNetSolution) content.GetValueForProperty("VNetSolution",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).VNetSolution, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.VNetSolutionTypeConverter.ConvertFrom); + } + if (content.Contains("PublicNetworkSolution")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).PublicNetworkSolution = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPublicNetworkSolution) content.GetValueForProperty("PublicNetworkSolution",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).PublicNetworkSolution, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.PublicNetworkSolutionTypeConverter.ConvertFrom); + } + if (content.Contains("TargetService")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).TargetService = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase) content.GetValueForProperty("TargetService",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).TargetService, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.TargetServiceBaseTypeConverter.ConvertFrom); + } + if (content.Contains("AuthInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).AuthInfo = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase) content.GetValueForProperty("AuthInfo",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).AuthInfo, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.AuthInfoBaseTypeConverter.ConvertFrom); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).ProvisioningState, global::System.Convert.ToString); + } + if (content.Contains("Scope")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).Scope, global::System.Convert.ToString); + } + if (content.Contains("VNetSolutionType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).VNetSolutionType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType?) content.GetValueForProperty("VNetSolutionType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).VNetSolutionType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType.CreateFrom); + } + if (content.Contains("PublicNetworkSolutionFirewallRule")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).PublicNetworkSolutionFirewallRule = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IFirewallRules) content.GetValueForProperty("PublicNetworkSolutionFirewallRule",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).PublicNetworkSolutionFirewallRule, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.FirewallRulesTypeConverter.ConvertFrom); + } + if (content.Contains("ConfigurationInfoCustomizedKey")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).ConfigurationInfoCustomizedKey = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoCustomizedKeys) content.GetValueForProperty("ConfigurationInfoCustomizedKey",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).ConfigurationInfoCustomizedKey, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationInfoCustomizedKeysTypeConverter.ConvertFrom); + } + if (content.Contains("ConfigurationInfoAdditionalConfiguration")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).ConfigurationInfoAdditionalConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoAdditionalConfigurations) content.GetValueForProperty("ConfigurationInfoAdditionalConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).ConfigurationInfoAdditionalConfiguration, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationInfoAdditionalConfigurationsTypeConverter.ConvertFrom); + } + if (content.Contains("VNetSolutionDeleteOrUpdateBehavior")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).VNetSolutionDeleteOrUpdateBehavior = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior?) content.GetValueForProperty("VNetSolutionDeleteOrUpdateBehavior",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).VNetSolutionDeleteOrUpdateBehavior, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior.CreateFrom); + } + if (content.Contains("SecretStoreKeyVaultId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).SecretStoreKeyVaultId = (string) content.GetValueForProperty("SecretStoreKeyVaultId",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).SecretStoreKeyVaultId, global::System.Convert.ToString); + } + if (content.Contains("SecretStoreKeyVaultSecretName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).SecretStoreKeyVaultSecretName = (string) content.GetValueForProperty("SecretStoreKeyVaultSecretName",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).SecretStoreKeyVaultSecretName, global::System.Convert.ToString); + } + if (content.Contains("PublicNetworkSolutionDeleteOrUpdateBehavior")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).PublicNetworkSolutionDeleteOrUpdateBehavior = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior?) content.GetValueForProperty("PublicNetworkSolutionDeleteOrUpdateBehavior",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).PublicNetworkSolutionDeleteOrUpdateBehavior, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior.CreateFrom); + } + if (content.Contains("PublicNetworkSolutionAction")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).PublicNetworkSolutionAction = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType?) content.GetValueForProperty("PublicNetworkSolutionAction",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).PublicNetworkSolutionAction, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType.CreateFrom); + } + if (content.Contains("FirewallRuleIPRange")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).FirewallRuleIPRange = (string[]) content.GetValueForProperty("FirewallRuleIPRange",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).FirewallRuleIPRange, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("ConfigurationInfoDeleteOrUpdateBehavior")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).ConfigurationInfoDeleteOrUpdateBehavior = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior?) content.GetValueForProperty("ConfigurationInfoDeleteOrUpdateBehavior",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).ConfigurationInfoDeleteOrUpdateBehavior, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior.CreateFrom); + } + if (content.Contains("ConfigurationInfoAction")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).ConfigurationInfoAction = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType?) content.GetValueForProperty("ConfigurationInfoAction",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).ConfigurationInfoAction, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType.CreateFrom); + } + if (content.Contains("FirewallRuleAzureService")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).FirewallRuleAzureService = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType?) content.GetValueForProperty("FirewallRuleAzureService",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).FirewallRuleAzureService, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType.CreateFrom); + } + if (content.Contains("FirewallRuleCallerClientIP")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).FirewallRuleCallerClientIP = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType?) content.GetValueForProperty("FirewallRuleCallerClientIP",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).FirewallRuleCallerClientIP, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType.CreateFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal LinkerPatch(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.LinkerPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("SecretStore")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).SecretStore = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretStore) content.GetValueForProperty("SecretStore",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).SecretStore, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.SecretStoreTypeConverter.ConvertFrom); + } + if (content.Contains("ConfigurationInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).ConfigurationInfo = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfo) content.GetValueForProperty("ConfigurationInfo",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).ConfigurationInfo, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationInfoTypeConverter.ConvertFrom); + } + if (content.Contains("ClientType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).ClientType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType?) content.GetValueForProperty("ClientType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).ClientType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType.CreateFrom); + } + if (content.Contains("VNetSolution")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).VNetSolution = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IVNetSolution) content.GetValueForProperty("VNetSolution",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).VNetSolution, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.VNetSolutionTypeConverter.ConvertFrom); + } + if (content.Contains("PublicNetworkSolution")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).PublicNetworkSolution = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPublicNetworkSolution) content.GetValueForProperty("PublicNetworkSolution",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).PublicNetworkSolution, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.PublicNetworkSolutionTypeConverter.ConvertFrom); + } + if (content.Contains("TargetService")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).TargetService = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase) content.GetValueForProperty("TargetService",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).TargetService, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.TargetServiceBaseTypeConverter.ConvertFrom); + } + if (content.Contains("AuthInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).AuthInfo = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase) content.GetValueForProperty("AuthInfo",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).AuthInfo, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.AuthInfoBaseTypeConverter.ConvertFrom); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).ProvisioningState, global::System.Convert.ToString); + } + if (content.Contains("Scope")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).Scope, global::System.Convert.ToString); + } + if (content.Contains("VNetSolutionType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).VNetSolutionType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType?) content.GetValueForProperty("VNetSolutionType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).VNetSolutionType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType.CreateFrom); + } + if (content.Contains("PublicNetworkSolutionFirewallRule")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).PublicNetworkSolutionFirewallRule = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IFirewallRules) content.GetValueForProperty("PublicNetworkSolutionFirewallRule",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).PublicNetworkSolutionFirewallRule, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.FirewallRulesTypeConverter.ConvertFrom); + } + if (content.Contains("ConfigurationInfoCustomizedKey")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).ConfigurationInfoCustomizedKey = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoCustomizedKeys) content.GetValueForProperty("ConfigurationInfoCustomizedKey",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).ConfigurationInfoCustomizedKey, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationInfoCustomizedKeysTypeConverter.ConvertFrom); + } + if (content.Contains("ConfigurationInfoAdditionalConfiguration")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).ConfigurationInfoAdditionalConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoAdditionalConfigurations) content.GetValueForProperty("ConfigurationInfoAdditionalConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).ConfigurationInfoAdditionalConfiguration, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationInfoAdditionalConfigurationsTypeConverter.ConvertFrom); + } + if (content.Contains("VNetSolutionDeleteOrUpdateBehavior")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).VNetSolutionDeleteOrUpdateBehavior = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior?) content.GetValueForProperty("VNetSolutionDeleteOrUpdateBehavior",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).VNetSolutionDeleteOrUpdateBehavior, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior.CreateFrom); + } + if (content.Contains("SecretStoreKeyVaultId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).SecretStoreKeyVaultId = (string) content.GetValueForProperty("SecretStoreKeyVaultId",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).SecretStoreKeyVaultId, global::System.Convert.ToString); + } + if (content.Contains("SecretStoreKeyVaultSecretName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).SecretStoreKeyVaultSecretName = (string) content.GetValueForProperty("SecretStoreKeyVaultSecretName",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).SecretStoreKeyVaultSecretName, global::System.Convert.ToString); + } + if (content.Contains("PublicNetworkSolutionDeleteOrUpdateBehavior")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).PublicNetworkSolutionDeleteOrUpdateBehavior = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior?) content.GetValueForProperty("PublicNetworkSolutionDeleteOrUpdateBehavior",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).PublicNetworkSolutionDeleteOrUpdateBehavior, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior.CreateFrom); + } + if (content.Contains("PublicNetworkSolutionAction")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).PublicNetworkSolutionAction = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType?) content.GetValueForProperty("PublicNetworkSolutionAction",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).PublicNetworkSolutionAction, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType.CreateFrom); + } + if (content.Contains("FirewallRuleIPRange")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).FirewallRuleIPRange = (string[]) content.GetValueForProperty("FirewallRuleIPRange",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).FirewallRuleIPRange, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("ConfigurationInfoDeleteOrUpdateBehavior")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).ConfigurationInfoDeleteOrUpdateBehavior = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior?) content.GetValueForProperty("ConfigurationInfoDeleteOrUpdateBehavior",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).ConfigurationInfoDeleteOrUpdateBehavior, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior.CreateFrom); + } + if (content.Contains("ConfigurationInfoAction")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).ConfigurationInfoAction = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType?) content.GetValueForProperty("ConfigurationInfoAction",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).ConfigurationInfoAction, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType.CreateFrom); + } + if (content.Contains("FirewallRuleAzureService")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).FirewallRuleAzureService = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType?) content.GetValueForProperty("FirewallRuleAzureService",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).FirewallRuleAzureService, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType.CreateFrom); + } + if (content.Contains("FirewallRuleCallerClientIP")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).FirewallRuleCallerClientIP = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType?) content.GetValueForProperty("FirewallRuleCallerClientIP",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal)this).FirewallRuleCallerClientIP, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType.CreateFrom); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// A Linker to be updated. + [System.ComponentModel.TypeConverter(typeof(LinkerPatchTypeConverter))] + public partial interface ILinkerPatch + + { + + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/LinkerPatch.TypeConverter.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/LinkerPatch.TypeConverter.cs similarity index 82% rename from src/ServiceLinker/generated/api/Models/Api20220501/LinkerPatch.TypeConverter.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/LinkerPatch.TypeConverter.cs index 2d2d284f42b9..69409d92e783 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/LinkerPatch.TypeConverter.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/LinkerPatch.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; @@ -14,19 +14,20 @@ public partial class LinkerPatchTypeConverter : global::System.Management.Automa { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the . + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -74,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -98,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPatch ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatch ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPatch).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatch).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/LinkerPatch.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/LinkerPatch.cs new file mode 100644 index 000000000000..17ea11ab5aec --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/LinkerPatch.cs @@ -0,0 +1,402 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; + + /// A Linker to be updated. + public partial class LinkerPatch : + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatch, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal + { + + /// The authentication type. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase AuthInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).AuthInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).AuthInfo = value ?? null /* model class */; } + + /// The application client type + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType? ClientType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).ClientType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).ClientType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType)""); } + + /// + /// Optional, indicate whether to apply configurations on source application. If enable, generate configurations and applied + /// to the source application. Default is enable. If optOut, no configuration change will be made on source. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType? ConfigurationInfoAction { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).ConfigurationInfoAction; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).ConfigurationInfoAction = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType)""); } + + /// + /// A dictionary of additional configurations to be added. Service will auto generate a set of basic configurations and this + /// property is to full fill more customized configurations + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoAdditionalConfigurations ConfigurationInfoAdditionalConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).ConfigurationInfoAdditionalConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).ConfigurationInfoAdditionalConfiguration = value ?? null /* model class */; } + + /// + /// Optional. A dictionary of default key name and customized key name mapping. If not specified, default key name will be + /// used for generate configurations + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoCustomizedKeys ConfigurationInfoCustomizedKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).ConfigurationInfoCustomizedKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).ConfigurationInfoCustomizedKey = value ?? null /* model class */; } + + /// + /// Indicates whether to clean up previous operation when Linker is updating or deleting + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior? ConfigurationInfoDeleteOrUpdateBehavior { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).ConfigurationInfoDeleteOrUpdateBehavior; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).ConfigurationInfoDeleteOrUpdateBehavior = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior)""); } + + /// Allow Azure services to access the target service if true. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType? FirewallRuleAzureService { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).FirewallRuleAzureService; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).FirewallRuleAzureService = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType)""); } + + /// + /// Allow caller client IP to access the target service if true. the property is used when connecting local application to + /// target service. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType? FirewallRuleCallerClientIP { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).FirewallRuleCallerClientIP; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).FirewallRuleCallerClientIP = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType)""); } + + /// + /// This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client + /// IPs for a given database account. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] + public string[] FirewallRuleIPRange { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).FirewallRuleIPRange; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).FirewallRuleIPRange = value ?? null /* arrayOf */; } + + /// Internal Acessors for ConfigurationInfo + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfo Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal.ConfigurationInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).ConfigurationInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).ConfigurationInfo = value; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerProperties Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.LinkerProperties()); set { {_property = value;} } } + + /// Internal Acessors for ProvisioningState + string Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).ProvisioningState = value; } + + /// Internal Acessors for PublicNetworkSolution + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPublicNetworkSolution Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal.PublicNetworkSolution { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).PublicNetworkSolution; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).PublicNetworkSolution = value; } + + /// Internal Acessors for PublicNetworkSolutionFirewallRule + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IFirewallRules Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal.PublicNetworkSolutionFirewallRule { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).PublicNetworkSolutionFirewallRule; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).PublicNetworkSolutionFirewallRule = value; } + + /// Internal Acessors for SecretStore + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretStore Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal.SecretStore { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).SecretStore; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).SecretStore = value; } + + /// Internal Acessors for VNetSolution + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IVNetSolution Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatchInternal.VNetSolution { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).VNetSolution; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).VNetSolution = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerProperties _property; + + /// Linker properties + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.LinkerProperties()); set => this._property = value; } + + /// The provisioning state. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] + public string ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).ProvisioningState; } + + /// + /// Optional. Indicates public network solution. If enable, enable public network access of target service with best try. + /// Default is enable. If optOut, opt out public network access configuration. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType? PublicNetworkSolutionAction { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).PublicNetworkSolutionAction; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).PublicNetworkSolutionAction = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType)""); } + + /// + /// Indicates whether to clean up previous operation(such as firewall rules) when Linker is updating or deleting + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior? PublicNetworkSolutionDeleteOrUpdateBehavior { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).PublicNetworkSolutionDeleteOrUpdateBehavior; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).PublicNetworkSolutionDeleteOrUpdateBehavior = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior)""); } + + /// connection scope in source service. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] + public string Scope { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).Scope; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).Scope = value ?? null; } + + /// The key vault id to store secret + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] + public string SecretStoreKeyVaultId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).SecretStoreKeyVaultId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).SecretStoreKeyVaultId = value ?? null; } + + /// The key vault secret name to store secret, only valid when storing one secret + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] + public string SecretStoreKeyVaultSecretName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).SecretStoreKeyVaultSecretName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).SecretStoreKeyVaultSecretName = value ?? null; } + + /// The target service properties + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase TargetService { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).TargetService; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).TargetService = value ?? null /* model class */; } + + /// + /// Indicates whether to clean up previous operation when Linker is updating or deleting + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior? VNetSolutionDeleteOrUpdateBehavior { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).VNetSolutionDeleteOrUpdateBehavior; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).VNetSolutionDeleteOrUpdateBehavior = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior)""); } + + /// Type of VNet solution. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType? VNetSolutionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).VNetSolutionType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).VNetSolutionType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType)""); } + + /// Creates an new instance. + public LinkerPatch() + { + + } + } + /// A Linker to be updated. + public partial interface ILinkerPatch : + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IJsonSerializable + { + /// The authentication type. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The authentication type.", + SerializedName = @"authInfo", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase AuthInfo { get; set; } + /// The application client type + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The application client type", + SerializedName = @"clientType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType? ClientType { get; set; } + /// + /// Optional, indicate whether to apply configurations on source application. If enable, generate configurations and applied + /// to the source application. Default is enable. If optOut, no configuration change will be made on source. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Optional, indicate whether to apply configurations on source application. If enable, generate configurations and applied to the source application. Default is enable. If optOut, no configuration change will be made on source.", + SerializedName = @"action", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType? ConfigurationInfoAction { get; set; } + /// + /// A dictionary of additional configurations to be added. Service will auto generate a set of basic configurations and this + /// property is to full fill more customized configurations + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A dictionary of additional configurations to be added. Service will auto generate a set of basic configurations and this property is to full fill more customized configurations", + SerializedName = @"additionalConfigurations", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoAdditionalConfigurations) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoAdditionalConfigurations ConfigurationInfoAdditionalConfiguration { get; set; } + /// + /// Optional. A dictionary of default key name and customized key name mapping. If not specified, default key name will be + /// used for generate configurations + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Optional. A dictionary of default key name and customized key name mapping. If not specified, default key name will be used for generate configurations", + SerializedName = @"customizedKeys", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoCustomizedKeys) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoCustomizedKeys ConfigurationInfoCustomizedKey { get; set; } + /// + /// Indicates whether to clean up previous operation when Linker is updating or deleting + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Indicates whether to clean up previous operation when Linker is updating or deleting", + SerializedName = @"deleteOrUpdateBehavior", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior? ConfigurationInfoDeleteOrUpdateBehavior { get; set; } + /// Allow Azure services to access the target service if true. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Allow Azure services to access the target service if true.", + SerializedName = @"azureServices", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType? FirewallRuleAzureService { get; set; } + /// + /// Allow caller client IP to access the target service if true. the property is used when connecting local application to + /// target service. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Allow caller client IP to access the target service if true. the property is used when connecting local application to target service.", + SerializedName = @"callerClientIP", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType? FirewallRuleCallerClientIP { get; set; } + /// + /// This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client + /// IPs for a given database account. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client IPs for a given database account.", + SerializedName = @"ipRanges", + PossibleTypes = new [] { typeof(string) })] + string[] FirewallRuleIPRange { get; set; } + /// The provisioning state. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The provisioning state. ", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(string) })] + string ProvisioningState { get; } + /// + /// Optional. Indicates public network solution. If enable, enable public network access of target service with best try. + /// Default is enable. If optOut, opt out public network access configuration. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Optional. Indicates public network solution. If enable, enable public network access of target service with best try. Default is enable. If optOut, opt out public network access configuration.", + SerializedName = @"action", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType? PublicNetworkSolutionAction { get; set; } + /// + /// Indicates whether to clean up previous operation(such as firewall rules) when Linker is updating or deleting + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Indicates whether to clean up previous operation(such as firewall rules) when Linker is updating or deleting", + SerializedName = @"deleteOrUpdateBehavior", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior? PublicNetworkSolutionDeleteOrUpdateBehavior { get; set; } + /// connection scope in source service. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"connection scope in source service.", + SerializedName = @"scope", + PossibleTypes = new [] { typeof(string) })] + string Scope { get; set; } + /// The key vault id to store secret + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The key vault id to store secret", + SerializedName = @"keyVaultId", + PossibleTypes = new [] { typeof(string) })] + string SecretStoreKeyVaultId { get; set; } + /// The key vault secret name to store secret, only valid when storing one secret + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The key vault secret name to store secret, only valid when storing one secret", + SerializedName = @"keyVaultSecretName", + PossibleTypes = new [] { typeof(string) })] + string SecretStoreKeyVaultSecretName { get; set; } + /// The target service properties + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The target service properties", + SerializedName = @"targetService", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase TargetService { get; set; } + /// + /// Indicates whether to clean up previous operation when Linker is updating or deleting + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Indicates whether to clean up previous operation when Linker is updating or deleting", + SerializedName = @"deleteOrUpdateBehavior", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior? VNetSolutionDeleteOrUpdateBehavior { get; set; } + /// Type of VNet solution. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Type of VNet solution.", + SerializedName = @"type", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType? VNetSolutionType { get; set; } + + } + /// A Linker to be updated. + internal partial interface ILinkerPatchInternal + + { + /// The authentication type. + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase AuthInfo { get; set; } + /// The application client type + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType? ClientType { get; set; } + /// + /// The connection information consumed by applications, including secrets, connection strings. + /// + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfo ConfigurationInfo { get; set; } + /// + /// Optional, indicate whether to apply configurations on source application. If enable, generate configurations and applied + /// to the source application. Default is enable. If optOut, no configuration change will be made on source. + /// + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType? ConfigurationInfoAction { get; set; } + /// + /// A dictionary of additional configurations to be added. Service will auto generate a set of basic configurations and this + /// property is to full fill more customized configurations + /// + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoAdditionalConfigurations ConfigurationInfoAdditionalConfiguration { get; set; } + /// + /// Optional. A dictionary of default key name and customized key name mapping. If not specified, default key name will be + /// used for generate configurations + /// + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoCustomizedKeys ConfigurationInfoCustomizedKey { get; set; } + /// + /// Indicates whether to clean up previous operation when Linker is updating or deleting + /// + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior? ConfigurationInfoDeleteOrUpdateBehavior { get; set; } + /// Allow Azure services to access the target service if true. + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType? FirewallRuleAzureService { get; set; } + /// + /// Allow caller client IP to access the target service if true. the property is used when connecting local application to + /// target service. + /// + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType? FirewallRuleCallerClientIP { get; set; } + /// + /// This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client + /// IPs for a given database account. + /// + string[] FirewallRuleIPRange { get; set; } + /// Linker properties + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerProperties Property { get; set; } + /// The provisioning state. + string ProvisioningState { get; set; } + /// The network solution. + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPublicNetworkSolution PublicNetworkSolution { get; set; } + /// + /// Optional. Indicates public network solution. If enable, enable public network access of target service with best try. + /// Default is enable. If optOut, opt out public network access configuration. + /// + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType? PublicNetworkSolutionAction { get; set; } + /// + /// Indicates whether to clean up previous operation(such as firewall rules) when Linker is updating or deleting + /// + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior? PublicNetworkSolutionDeleteOrUpdateBehavior { get; set; } + /// + /// Describe firewall rules of target service to make sure source application could connect to the target. + /// + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IFirewallRules PublicNetworkSolutionFirewallRule { get; set; } + /// connection scope in source service. + string Scope { get; set; } + /// An option to store secret value in secure place + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretStore SecretStore { get; set; } + /// The key vault id to store secret + string SecretStoreKeyVaultId { get; set; } + /// The key vault secret name to store secret, only valid when storing one secret + string SecretStoreKeyVaultSecretName { get; set; } + /// The target service properties + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase TargetService { get; set; } + /// The VNet solution. + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IVNetSolution VNetSolution { get; set; } + /// + /// Indicates whether to clean up previous operation when Linker is updating or deleting + /// + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior? VNetSolutionDeleteOrUpdateBehavior { get; set; } + /// Type of VNet solution. + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType? VNetSolutionType { get; set; } + + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/LinkerPatch.json.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/LinkerPatch.json.cs similarity index 94% rename from src/ServiceLinker/generated/api/Models/Api20220501/LinkerPatch.json.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/LinkerPatch.json.cs index 0dcf6e5bc972..0f6450a940d5 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/LinkerPatch.json.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/LinkerPatch.json.cs @@ -3,11 +3,11 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; - /// A linker to be updated. + /// A Linker to be updated. public partial class LinkerPatch { @@ -54,13 +54,13 @@ public partial class LinkerPatch partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPatch. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatch. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPatch. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatch. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPatch FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatch FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json ? new LinkerPatch(json) : null; } @@ -77,7 +77,7 @@ internal LinkerPatch(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Js { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.LinkerProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.LinkerProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/LinkerProperties.PowerShell.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/LinkerProperties.PowerShell.cs new file mode 100644 index 000000000000..78516384b1e7 --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/LinkerProperties.PowerShell.cs @@ -0,0 +1,322 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; + + /// The properties of the Linker. + [System.ComponentModel.TypeConverter(typeof(LinkerPropertiesTypeConverter))] + public partial class LinkerProperties + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new LinkerProperties(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new LinkerProperties(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal LinkerProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("VNetSolution")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).VNetSolution = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IVNetSolution) content.GetValueForProperty("VNetSolution",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).VNetSolution, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.VNetSolutionTypeConverter.ConvertFrom); + } + if (content.Contains("SecretStore")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).SecretStore = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretStore) content.GetValueForProperty("SecretStore",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).SecretStore, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.SecretStoreTypeConverter.ConvertFrom); + } + if (content.Contains("PublicNetworkSolution")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).PublicNetworkSolution = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPublicNetworkSolution) content.GetValueForProperty("PublicNetworkSolution",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).PublicNetworkSolution, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.PublicNetworkSolutionTypeConverter.ConvertFrom); + } + if (content.Contains("ConfigurationInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).ConfigurationInfo = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfo) content.GetValueForProperty("ConfigurationInfo",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).ConfigurationInfo, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationInfoTypeConverter.ConvertFrom); + } + if (content.Contains("TargetService")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).TargetService = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase) content.GetValueForProperty("TargetService",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).TargetService, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.TargetServiceBaseTypeConverter.ConvertFrom); + } + if (content.Contains("AuthInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).AuthInfo = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase) content.GetValueForProperty("AuthInfo",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).AuthInfo, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.AuthInfoBaseTypeConverter.ConvertFrom); + } + if (content.Contains("ClientType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).ClientType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType?) content.GetValueForProperty("ClientType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).ClientType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType.CreateFrom); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); + } + if (content.Contains("Scope")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).Scope, global::System.Convert.ToString); + } + if (content.Contains("VNetSolutionType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).VNetSolutionType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType?) content.GetValueForProperty("VNetSolutionType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).VNetSolutionType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType.CreateFrom); + } + if (content.Contains("PublicNetworkSolutionFirewallRule")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).PublicNetworkSolutionFirewallRule = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IFirewallRules) content.GetValueForProperty("PublicNetworkSolutionFirewallRule",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).PublicNetworkSolutionFirewallRule, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.FirewallRulesTypeConverter.ConvertFrom); + } + if (content.Contains("ConfigurationInfoCustomizedKey")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).ConfigurationInfoCustomizedKey = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoCustomizedKeys) content.GetValueForProperty("ConfigurationInfoCustomizedKey",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).ConfigurationInfoCustomizedKey, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationInfoCustomizedKeysTypeConverter.ConvertFrom); + } + if (content.Contains("ConfigurationInfoAdditionalConfiguration")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).ConfigurationInfoAdditionalConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoAdditionalConfigurations) content.GetValueForProperty("ConfigurationInfoAdditionalConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).ConfigurationInfoAdditionalConfiguration, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationInfoAdditionalConfigurationsTypeConverter.ConvertFrom); + } + if (content.Contains("VNetSolutionDeleteOrUpdateBehavior")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).VNetSolutionDeleteOrUpdateBehavior = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior?) content.GetValueForProperty("VNetSolutionDeleteOrUpdateBehavior",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).VNetSolutionDeleteOrUpdateBehavior, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior.CreateFrom); + } + if (content.Contains("SecretStoreKeyVaultId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).SecretStoreKeyVaultId = (string) content.GetValueForProperty("SecretStoreKeyVaultId",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).SecretStoreKeyVaultId, global::System.Convert.ToString); + } + if (content.Contains("SecretStoreKeyVaultSecretName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).SecretStoreKeyVaultSecretName = (string) content.GetValueForProperty("SecretStoreKeyVaultSecretName",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).SecretStoreKeyVaultSecretName, global::System.Convert.ToString); + } + if (content.Contains("PublicNetworkSolutionDeleteOrUpdateBehavior")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).PublicNetworkSolutionDeleteOrUpdateBehavior = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior?) content.GetValueForProperty("PublicNetworkSolutionDeleteOrUpdateBehavior",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).PublicNetworkSolutionDeleteOrUpdateBehavior, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior.CreateFrom); + } + if (content.Contains("PublicNetworkSolutionAction")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).PublicNetworkSolutionAction = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType?) content.GetValueForProperty("PublicNetworkSolutionAction",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).PublicNetworkSolutionAction, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType.CreateFrom); + } + if (content.Contains("FirewallRuleIPRange")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).FirewallRuleIPRange = (string[]) content.GetValueForProperty("FirewallRuleIPRange",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).FirewallRuleIPRange, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("ConfigurationInfoDeleteOrUpdateBehavior")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).ConfigurationInfoDeleteOrUpdateBehavior = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior?) content.GetValueForProperty("ConfigurationInfoDeleteOrUpdateBehavior",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).ConfigurationInfoDeleteOrUpdateBehavior, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior.CreateFrom); + } + if (content.Contains("ConfigurationInfoAction")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).ConfigurationInfoAction = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType?) content.GetValueForProperty("ConfigurationInfoAction",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).ConfigurationInfoAction, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType.CreateFrom); + } + if (content.Contains("FirewallRuleAzureService")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).FirewallRuleAzureService = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType?) content.GetValueForProperty("FirewallRuleAzureService",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).FirewallRuleAzureService, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType.CreateFrom); + } + if (content.Contains("FirewallRuleCallerClientIP")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).FirewallRuleCallerClientIP = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType?) content.GetValueForProperty("FirewallRuleCallerClientIP",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).FirewallRuleCallerClientIP, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType.CreateFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal LinkerProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("VNetSolution")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).VNetSolution = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IVNetSolution) content.GetValueForProperty("VNetSolution",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).VNetSolution, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.VNetSolutionTypeConverter.ConvertFrom); + } + if (content.Contains("SecretStore")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).SecretStore = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretStore) content.GetValueForProperty("SecretStore",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).SecretStore, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.SecretStoreTypeConverter.ConvertFrom); + } + if (content.Contains("PublicNetworkSolution")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).PublicNetworkSolution = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPublicNetworkSolution) content.GetValueForProperty("PublicNetworkSolution",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).PublicNetworkSolution, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.PublicNetworkSolutionTypeConverter.ConvertFrom); + } + if (content.Contains("ConfigurationInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).ConfigurationInfo = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfo) content.GetValueForProperty("ConfigurationInfo",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).ConfigurationInfo, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationInfoTypeConverter.ConvertFrom); + } + if (content.Contains("TargetService")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).TargetService = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase) content.GetValueForProperty("TargetService",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).TargetService, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.TargetServiceBaseTypeConverter.ConvertFrom); + } + if (content.Contains("AuthInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).AuthInfo = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase) content.GetValueForProperty("AuthInfo",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).AuthInfo, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.AuthInfoBaseTypeConverter.ConvertFrom); + } + if (content.Contains("ClientType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).ClientType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType?) content.GetValueForProperty("ClientType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).ClientType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType.CreateFrom); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); + } + if (content.Contains("Scope")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).Scope, global::System.Convert.ToString); + } + if (content.Contains("VNetSolutionType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).VNetSolutionType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType?) content.GetValueForProperty("VNetSolutionType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).VNetSolutionType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType.CreateFrom); + } + if (content.Contains("PublicNetworkSolutionFirewallRule")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).PublicNetworkSolutionFirewallRule = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IFirewallRules) content.GetValueForProperty("PublicNetworkSolutionFirewallRule",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).PublicNetworkSolutionFirewallRule, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.FirewallRulesTypeConverter.ConvertFrom); + } + if (content.Contains("ConfigurationInfoCustomizedKey")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).ConfigurationInfoCustomizedKey = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoCustomizedKeys) content.GetValueForProperty("ConfigurationInfoCustomizedKey",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).ConfigurationInfoCustomizedKey, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationInfoCustomizedKeysTypeConverter.ConvertFrom); + } + if (content.Contains("ConfigurationInfoAdditionalConfiguration")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).ConfigurationInfoAdditionalConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoAdditionalConfigurations) content.GetValueForProperty("ConfigurationInfoAdditionalConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).ConfigurationInfoAdditionalConfiguration, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationInfoAdditionalConfigurationsTypeConverter.ConvertFrom); + } + if (content.Contains("VNetSolutionDeleteOrUpdateBehavior")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).VNetSolutionDeleteOrUpdateBehavior = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior?) content.GetValueForProperty("VNetSolutionDeleteOrUpdateBehavior",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).VNetSolutionDeleteOrUpdateBehavior, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior.CreateFrom); + } + if (content.Contains("SecretStoreKeyVaultId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).SecretStoreKeyVaultId = (string) content.GetValueForProperty("SecretStoreKeyVaultId",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).SecretStoreKeyVaultId, global::System.Convert.ToString); + } + if (content.Contains("SecretStoreKeyVaultSecretName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).SecretStoreKeyVaultSecretName = (string) content.GetValueForProperty("SecretStoreKeyVaultSecretName",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).SecretStoreKeyVaultSecretName, global::System.Convert.ToString); + } + if (content.Contains("PublicNetworkSolutionDeleteOrUpdateBehavior")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).PublicNetworkSolutionDeleteOrUpdateBehavior = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior?) content.GetValueForProperty("PublicNetworkSolutionDeleteOrUpdateBehavior",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).PublicNetworkSolutionDeleteOrUpdateBehavior, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior.CreateFrom); + } + if (content.Contains("PublicNetworkSolutionAction")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).PublicNetworkSolutionAction = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType?) content.GetValueForProperty("PublicNetworkSolutionAction",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).PublicNetworkSolutionAction, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType.CreateFrom); + } + if (content.Contains("FirewallRuleIPRange")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).FirewallRuleIPRange = (string[]) content.GetValueForProperty("FirewallRuleIPRange",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).FirewallRuleIPRange, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("ConfigurationInfoDeleteOrUpdateBehavior")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).ConfigurationInfoDeleteOrUpdateBehavior = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior?) content.GetValueForProperty("ConfigurationInfoDeleteOrUpdateBehavior",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).ConfigurationInfoDeleteOrUpdateBehavior, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior.CreateFrom); + } + if (content.Contains("ConfigurationInfoAction")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).ConfigurationInfoAction = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType?) content.GetValueForProperty("ConfigurationInfoAction",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).ConfigurationInfoAction, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType.CreateFrom); + } + if (content.Contains("FirewallRuleAzureService")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).FirewallRuleAzureService = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType?) content.GetValueForProperty("FirewallRuleAzureService",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).FirewallRuleAzureService, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType.CreateFrom); + } + if (content.Contains("FirewallRuleCallerClientIP")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).FirewallRuleCallerClientIP = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType?) content.GetValueForProperty("FirewallRuleCallerClientIP",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)this).FirewallRuleCallerClientIP, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType.CreateFrom); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The properties of the Linker. + [System.ComponentModel.TypeConverter(typeof(LinkerPropertiesTypeConverter))] + public partial interface ILinkerProperties + + { + + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/LinkerProperties.TypeConverter.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/LinkerProperties.TypeConverter.cs similarity index 82% rename from src/ServiceLinker/generated/api/Models/Api20220501/LinkerProperties.TypeConverter.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/LinkerProperties.TypeConverter.cs index 95741ad49e6e..d1d193ff8846 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/LinkerProperties.TypeConverter.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/LinkerProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; @@ -14,19 +14,20 @@ public partial class LinkerPropertiesTypeConverter : global::System.Management.A { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the . + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -74,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -98,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/LinkerProperties.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/LinkerProperties.cs new file mode 100644 index 000000000000..5841bf26b7b1 --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/LinkerProperties.cs @@ -0,0 +1,435 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; + + /// The properties of the Linker. + public partial class LinkerProperties : + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerProperties, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase _authInfo; + + /// The authentication type. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase AuthInfo { get => (this._authInfo = this._authInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.AuthInfoBase()); set => this._authInfo = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType? _clientType; + + /// The application client type + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType? ClientType { get => this._clientType; set => this._clientType = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfo _configurationInfo; + + /// + /// The connection information consumed by applications, including secrets, connection strings. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfo ConfigurationInfo { get => (this._configurationInfo = this._configurationInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationInfo()); set => this._configurationInfo = value; } + + /// + /// Optional, indicate whether to apply configurations on source application. If enable, generate configurations and applied + /// to the source application. Default is enable. If optOut, no configuration change will be made on source. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType? ConfigurationInfoAction { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoInternal)ConfigurationInfo).Action; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoInternal)ConfigurationInfo).Action = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType)""); } + + /// + /// A dictionary of additional configurations to be added. Service will auto generate a set of basic configurations and this + /// property is to full fill more customized configurations + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoAdditionalConfigurations ConfigurationInfoAdditionalConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoInternal)ConfigurationInfo).AdditionalConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoInternal)ConfigurationInfo).AdditionalConfiguration = value ?? null /* model class */; } + + /// + /// Optional. A dictionary of default key name and customized key name mapping. If not specified, default key name will be + /// used for generate configurations + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoCustomizedKeys ConfigurationInfoCustomizedKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoInternal)ConfigurationInfo).CustomizedKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoInternal)ConfigurationInfo).CustomizedKey = value ?? null /* model class */; } + + /// + /// Indicates whether to clean up previous operation when Linker is updating or deleting + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior? ConfigurationInfoDeleteOrUpdateBehavior { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoInternal)ConfigurationInfo).DeleteOrUpdateBehavior; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoInternal)ConfigurationInfo).DeleteOrUpdateBehavior = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior)""); } + + /// Allow Azure services to access the target service if true. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType? FirewallRuleAzureService { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPublicNetworkSolutionInternal)PublicNetworkSolution).FirewallRuleAzureService; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPublicNetworkSolutionInternal)PublicNetworkSolution).FirewallRuleAzureService = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType)""); } + + /// + /// Allow caller client IP to access the target service if true. the property is used when connecting local application to + /// target service. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType? FirewallRuleCallerClientIP { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPublicNetworkSolutionInternal)PublicNetworkSolution).FirewallRuleCallerClientIP; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPublicNetworkSolutionInternal)PublicNetworkSolution).FirewallRuleCallerClientIP = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType)""); } + + /// + /// This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client + /// IPs for a given database account. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] + public string[] FirewallRuleIPRange { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPublicNetworkSolutionInternal)PublicNetworkSolution).FirewallRuleIPRange; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPublicNetworkSolutionInternal)PublicNetworkSolution).FirewallRuleIPRange = value ?? null /* arrayOf */; } + + /// Internal Acessors for ConfigurationInfo + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfo Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal.ConfigurationInfo { get => (this._configurationInfo = this._configurationInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationInfo()); set { {_configurationInfo = value;} } } + + /// Internal Acessors for ProvisioningState + string Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + + /// Internal Acessors for PublicNetworkSolution + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPublicNetworkSolution Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal.PublicNetworkSolution { get => (this._publicNetworkSolution = this._publicNetworkSolution ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.PublicNetworkSolution()); set { {_publicNetworkSolution = value;} } } + + /// Internal Acessors for PublicNetworkSolutionFirewallRule + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IFirewallRules Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal.PublicNetworkSolutionFirewallRule { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPublicNetworkSolutionInternal)PublicNetworkSolution).FirewallRule; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPublicNetworkSolutionInternal)PublicNetworkSolution).FirewallRule = value; } + + /// Internal Acessors for SecretStore + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretStore Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal.SecretStore { get => (this._secretStore = this._secretStore ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.SecretStore()); set { {_secretStore = value;} } } + + /// Internal Acessors for VNetSolution + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IVNetSolution Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal.VNetSolution { get => (this._vNetSolution = this._vNetSolution ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.VNetSolution()); set { {_vNetSolution = value;} } } + + /// Backing field for property. + private string _provisioningState; + + /// The provisioning state. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] + public string ProvisioningState { get => this._provisioningState; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPublicNetworkSolution _publicNetworkSolution; + + /// The network solution. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPublicNetworkSolution PublicNetworkSolution { get => (this._publicNetworkSolution = this._publicNetworkSolution ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.PublicNetworkSolution()); set => this._publicNetworkSolution = value; } + + /// + /// Optional. Indicates public network solution. If enable, enable public network access of target service with best try. + /// Default is enable. If optOut, opt out public network access configuration. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType? PublicNetworkSolutionAction { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPublicNetworkSolutionInternal)PublicNetworkSolution).Action; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPublicNetworkSolutionInternal)PublicNetworkSolution).Action = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType)""); } + + /// + /// Indicates whether to clean up previous operation(such as firewall rules) when Linker is updating or deleting + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior? PublicNetworkSolutionDeleteOrUpdateBehavior { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPublicNetworkSolutionInternal)PublicNetworkSolution).DeleteOrUpdateBehavior; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPublicNetworkSolutionInternal)PublicNetworkSolution).DeleteOrUpdateBehavior = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior)""); } + + /// Backing field for property. + private string _scope; + + /// connection scope in source service. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] + public string Scope { get => this._scope; set => this._scope = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretStore _secretStore; + + /// An option to store secret value in secure place + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretStore SecretStore { get => (this._secretStore = this._secretStore ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.SecretStore()); set => this._secretStore = value; } + + /// The key vault id to store secret + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] + public string SecretStoreKeyVaultId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretStoreInternal)SecretStore).KeyVaultId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretStoreInternal)SecretStore).KeyVaultId = value ?? null; } + + /// The key vault secret name to store secret, only valid when storing one secret + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] + public string SecretStoreKeyVaultSecretName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretStoreInternal)SecretStore).KeyVaultSecretName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretStoreInternal)SecretStore).KeyVaultSecretName = value ?? null; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase _targetService; + + /// The target service properties + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase TargetService { get => (this._targetService = this._targetService ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.TargetServiceBase()); set => this._targetService = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IVNetSolution _vNetSolution; + + /// The VNet solution. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IVNetSolution VNetSolution { get => (this._vNetSolution = this._vNetSolution ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.VNetSolution()); set => this._vNetSolution = value; } + + /// + /// Indicates whether to clean up previous operation when Linker is updating or deleting + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior? VNetSolutionDeleteOrUpdateBehavior { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IVNetSolutionInternal)VNetSolution).DeleteOrUpdateBehavior; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IVNetSolutionInternal)VNetSolution).DeleteOrUpdateBehavior = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior)""); } + + /// Type of VNet solution. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType? VNetSolutionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IVNetSolutionInternal)VNetSolution).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IVNetSolutionInternal)VNetSolution).Type = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType)""); } + + /// Creates an new instance. + public LinkerProperties() + { + + } + } + /// The properties of the Linker. + public partial interface ILinkerProperties : + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IJsonSerializable + { + /// The authentication type. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The authentication type.", + SerializedName = @"authInfo", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase AuthInfo { get; set; } + /// The application client type + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The application client type", + SerializedName = @"clientType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType? ClientType { get; set; } + /// + /// Optional, indicate whether to apply configurations on source application. If enable, generate configurations and applied + /// to the source application. Default is enable. If optOut, no configuration change will be made on source. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Optional, indicate whether to apply configurations on source application. If enable, generate configurations and applied to the source application. Default is enable. If optOut, no configuration change will be made on source.", + SerializedName = @"action", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType? ConfigurationInfoAction { get; set; } + /// + /// A dictionary of additional configurations to be added. Service will auto generate a set of basic configurations and this + /// property is to full fill more customized configurations + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A dictionary of additional configurations to be added. Service will auto generate a set of basic configurations and this property is to full fill more customized configurations", + SerializedName = @"additionalConfigurations", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoAdditionalConfigurations) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoAdditionalConfigurations ConfigurationInfoAdditionalConfiguration { get; set; } + /// + /// Optional. A dictionary of default key name and customized key name mapping. If not specified, default key name will be + /// used for generate configurations + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Optional. A dictionary of default key name and customized key name mapping. If not specified, default key name will be used for generate configurations", + SerializedName = @"customizedKeys", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoCustomizedKeys) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoCustomizedKeys ConfigurationInfoCustomizedKey { get; set; } + /// + /// Indicates whether to clean up previous operation when Linker is updating or deleting + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Indicates whether to clean up previous operation when Linker is updating or deleting", + SerializedName = @"deleteOrUpdateBehavior", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior? ConfigurationInfoDeleteOrUpdateBehavior { get; set; } + /// Allow Azure services to access the target service if true. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Allow Azure services to access the target service if true.", + SerializedName = @"azureServices", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType? FirewallRuleAzureService { get; set; } + /// + /// Allow caller client IP to access the target service if true. the property is used when connecting local application to + /// target service. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Allow caller client IP to access the target service if true. the property is used when connecting local application to target service.", + SerializedName = @"callerClientIP", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType? FirewallRuleCallerClientIP { get; set; } + /// + /// This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client + /// IPs for a given database account. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client IPs for a given database account.", + SerializedName = @"ipRanges", + PossibleTypes = new [] { typeof(string) })] + string[] FirewallRuleIPRange { get; set; } + /// The provisioning state. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The provisioning state. ", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(string) })] + string ProvisioningState { get; } + /// + /// Optional. Indicates public network solution. If enable, enable public network access of target service with best try. + /// Default is enable. If optOut, opt out public network access configuration. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Optional. Indicates public network solution. If enable, enable public network access of target service with best try. Default is enable. If optOut, opt out public network access configuration.", + SerializedName = @"action", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType? PublicNetworkSolutionAction { get; set; } + /// + /// Indicates whether to clean up previous operation(such as firewall rules) when Linker is updating or deleting + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Indicates whether to clean up previous operation(such as firewall rules) when Linker is updating or deleting", + SerializedName = @"deleteOrUpdateBehavior", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior? PublicNetworkSolutionDeleteOrUpdateBehavior { get; set; } + /// connection scope in source service. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"connection scope in source service.", + SerializedName = @"scope", + PossibleTypes = new [] { typeof(string) })] + string Scope { get; set; } + /// The key vault id to store secret + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The key vault id to store secret", + SerializedName = @"keyVaultId", + PossibleTypes = new [] { typeof(string) })] + string SecretStoreKeyVaultId { get; set; } + /// The key vault secret name to store secret, only valid when storing one secret + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The key vault secret name to store secret, only valid when storing one secret", + SerializedName = @"keyVaultSecretName", + PossibleTypes = new [] { typeof(string) })] + string SecretStoreKeyVaultSecretName { get; set; } + /// The target service properties + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The target service properties", + SerializedName = @"targetService", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase TargetService { get; set; } + /// + /// Indicates whether to clean up previous operation when Linker is updating or deleting + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Indicates whether to clean up previous operation when Linker is updating or deleting", + SerializedName = @"deleteOrUpdateBehavior", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior? VNetSolutionDeleteOrUpdateBehavior { get; set; } + /// Type of VNet solution. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Type of VNet solution.", + SerializedName = @"type", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType? VNetSolutionType { get; set; } + + } + /// The properties of the Linker. + internal partial interface ILinkerPropertiesInternal + + { + /// The authentication type. + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase AuthInfo { get; set; } + /// The application client type + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType? ClientType { get; set; } + /// + /// The connection information consumed by applications, including secrets, connection strings. + /// + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfo ConfigurationInfo { get; set; } + /// + /// Optional, indicate whether to apply configurations on source application. If enable, generate configurations and applied + /// to the source application. Default is enable. If optOut, no configuration change will be made on source. + /// + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType? ConfigurationInfoAction { get; set; } + /// + /// A dictionary of additional configurations to be added. Service will auto generate a set of basic configurations and this + /// property is to full fill more customized configurations + /// + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoAdditionalConfigurations ConfigurationInfoAdditionalConfiguration { get; set; } + /// + /// Optional. A dictionary of default key name and customized key name mapping. If not specified, default key name will be + /// used for generate configurations + /// + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoCustomizedKeys ConfigurationInfoCustomizedKey { get; set; } + /// + /// Indicates whether to clean up previous operation when Linker is updating or deleting + /// + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior? ConfigurationInfoDeleteOrUpdateBehavior { get; set; } + /// Allow Azure services to access the target service if true. + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType? FirewallRuleAzureService { get; set; } + /// + /// Allow caller client IP to access the target service if true. the property is used when connecting local application to + /// target service. + /// + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType? FirewallRuleCallerClientIP { get; set; } + /// + /// This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client + /// IPs for a given database account. + /// + string[] FirewallRuleIPRange { get; set; } + /// The provisioning state. + string ProvisioningState { get; set; } + /// The network solution. + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPublicNetworkSolution PublicNetworkSolution { get; set; } + /// + /// Optional. Indicates public network solution. If enable, enable public network access of target service with best try. + /// Default is enable. If optOut, opt out public network access configuration. + /// + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType? PublicNetworkSolutionAction { get; set; } + /// + /// Indicates whether to clean up previous operation(such as firewall rules) when Linker is updating or deleting + /// + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior? PublicNetworkSolutionDeleteOrUpdateBehavior { get; set; } + /// + /// Describe firewall rules of target service to make sure source application could connect to the target. + /// + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IFirewallRules PublicNetworkSolutionFirewallRule { get; set; } + /// connection scope in source service. + string Scope { get; set; } + /// An option to store secret value in secure place + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretStore SecretStore { get; set; } + /// The key vault id to store secret + string SecretStoreKeyVaultId { get; set; } + /// The key vault secret name to store secret, only valid when storing one secret + string SecretStoreKeyVaultSecretName { get; set; } + /// The target service properties + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase TargetService { get; set; } + /// The VNet solution. + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IVNetSolution VNetSolution { get; set; } + /// + /// Indicates whether to clean up previous operation when Linker is updating or deleting + /// + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior? VNetSolutionDeleteOrUpdateBehavior { get; set; } + /// Type of VNet solution. + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType? VNetSolutionType { get; set; } + + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/LinkerProperties.json.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/LinkerProperties.json.cs similarity index 83% rename from src/ServiceLinker/generated/api/Models/Api20220501/LinkerProperties.json.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/LinkerProperties.json.cs index 9b4f8215d91a..f2f02e6e1216 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/LinkerProperties.json.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/LinkerProperties.json.cs @@ -3,11 +3,11 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; - /// The properties of the linker. + /// The properties of the Linker. public partial class LinkerProperties { @@ -54,13 +54,13 @@ public partial class LinkerProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json ? new LinkerProperties(json) : null; } @@ -77,10 +77,12 @@ internal LinkerProperties(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runti { return; } - {_vNetSolution = If( json?.PropertyT("vNetSolution"), out var __jsonVNetSolution) ? Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.VNetSolution.FromJson(__jsonVNetSolution) : VNetSolution;} - {_secretStore = If( json?.PropertyT("secretStore"), out var __jsonSecretStore) ? Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.SecretStore.FromJson(__jsonSecretStore) : SecretStore;} - {_targetService = If( json?.PropertyT("targetService"), out var __jsonTargetService) ? Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.TargetServiceBase.FromJson(__jsonTargetService) : TargetService;} - {_authInfo = If( json?.PropertyT("authInfo"), out var __jsonAuthInfo) ? Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.AuthInfoBase.FromJson(__jsonAuthInfo) : AuthInfo;} + {_vNetSolution = If( json?.PropertyT("vNetSolution"), out var __jsonVNetSolution) ? Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.VNetSolution.FromJson(__jsonVNetSolution) : VNetSolution;} + {_secretStore = If( json?.PropertyT("secretStore"), out var __jsonSecretStore) ? Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.SecretStore.FromJson(__jsonSecretStore) : SecretStore;} + {_publicNetworkSolution = If( json?.PropertyT("publicNetworkSolution"), out var __jsonPublicNetworkSolution) ? Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.PublicNetworkSolution.FromJson(__jsonPublicNetworkSolution) : PublicNetworkSolution;} + {_configurationInfo = If( json?.PropertyT("configurationInfo"), out var __jsonConfigurationInfo) ? Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationInfo.FromJson(__jsonConfigurationInfo) : ConfigurationInfo;} + {_targetService = If( json?.PropertyT("targetService"), out var __jsonTargetService) ? Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.TargetServiceBase.FromJson(__jsonTargetService) : TargetService;} + {_authInfo = If( json?.PropertyT("authInfo"), out var __jsonAuthInfo) ? Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.AuthInfoBase.FromJson(__jsonAuthInfo) : AuthInfo;} {_clientType = If( json?.PropertyT("clientType"), out var __jsonClientType) ? (string)__jsonClientType : (string)ClientType;} {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState;} {_scope = If( json?.PropertyT("scope"), out var __jsonScope) ? (string)__jsonScope : (string)Scope;} @@ -108,6 +110,8 @@ public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode To } AddIf( null != this._vNetSolution ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) this._vNetSolution.ToJson(null,serializationMode) : null, "vNetSolution" ,container.Add ); AddIf( null != this._secretStore ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) this._secretStore.ToJson(null,serializationMode) : null, "secretStore" ,container.Add ); + AddIf( null != this._publicNetworkSolution ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) this._publicNetworkSolution.ToJson(null,serializationMode) : null, "publicNetworkSolution" ,container.Add ); + AddIf( null != this._configurationInfo ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) this._configurationInfo.ToJson(null,serializationMode) : null, "configurationInfo" ,container.Add ); AddIf( null != this._targetService ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) this._targetService.ToJson(null,serializationMode) : null, "targetService" ,container.Add ); AddIf( null != this._authInfo ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) this._authInfo.ToJson(null,serializationMode) : null, "authInfo" ,container.Add ); AddIf( null != (((object)this._clientType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonString(this._clientType.ToString()) : null, "clientType" ,container.Add ); diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/LinkerResource.PowerShell.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/LinkerResource.PowerShell.cs new file mode 100644 index 000000000000..a72a4e02dad1 --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/LinkerResource.PowerShell.cs @@ -0,0 +1,410 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; + + /// Linker of source and target resource + [System.ComponentModel.TypeConverter(typeof(LinkerResourceTypeConverter))] + public partial class LinkerResource + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new LinkerResource(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new LinkerResource(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal LinkerResource(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.LinkerPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("SecretStore")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).SecretStore = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretStore) content.GetValueForProperty("SecretStore",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).SecretStore, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.SecretStoreTypeConverter.ConvertFrom); + } + if (content.Contains("ConfigurationInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).ConfigurationInfo = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfo) content.GetValueForProperty("ConfigurationInfo",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).ConfigurationInfo, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationInfoTypeConverter.ConvertFrom); + } + if (content.Contains("ClientType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).ClientType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType?) content.GetValueForProperty("ClientType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).ClientType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType.CreateFrom); + } + if (content.Contains("VNetSolution")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).VNetSolution = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IVNetSolution) content.GetValueForProperty("VNetSolution",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).VNetSolution, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.VNetSolutionTypeConverter.ConvertFrom); + } + if (content.Contains("PublicNetworkSolution")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).PublicNetworkSolution = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPublicNetworkSolution) content.GetValueForProperty("PublicNetworkSolution",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).PublicNetworkSolution, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.PublicNetworkSolutionTypeConverter.ConvertFrom); + } + if (content.Contains("TargetService")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).TargetService = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase) content.GetValueForProperty("TargetService",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).TargetService, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.TargetServiceBaseTypeConverter.ConvertFrom); + } + if (content.Contains("AuthInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).AuthInfo = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase) content.GetValueForProperty("AuthInfo",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).AuthInfo, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.AuthInfoBaseTypeConverter.ConvertFrom); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).ProvisioningState, global::System.Convert.ToString); + } + if (content.Contains("Scope")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).Scope, global::System.Convert.ToString); + } + if (content.Contains("VNetSolutionType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).VNetSolutionType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType?) content.GetValueForProperty("VNetSolutionType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).VNetSolutionType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType.CreateFrom); + } + if (content.Contains("PublicNetworkSolutionFirewallRule")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).PublicNetworkSolutionFirewallRule = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IFirewallRules) content.GetValueForProperty("PublicNetworkSolutionFirewallRule",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).PublicNetworkSolutionFirewallRule, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.FirewallRulesTypeConverter.ConvertFrom); + } + if (content.Contains("ConfigurationInfoCustomizedKey")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).ConfigurationInfoCustomizedKey = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoCustomizedKeys) content.GetValueForProperty("ConfigurationInfoCustomizedKey",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).ConfigurationInfoCustomizedKey, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationInfoCustomizedKeysTypeConverter.ConvertFrom); + } + if (content.Contains("ConfigurationInfoAdditionalConfiguration")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).ConfigurationInfoAdditionalConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoAdditionalConfigurations) content.GetValueForProperty("ConfigurationInfoAdditionalConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).ConfigurationInfoAdditionalConfiguration, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationInfoAdditionalConfigurationsTypeConverter.ConvertFrom); + } + if (content.Contains("VNetSolutionDeleteOrUpdateBehavior")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).VNetSolutionDeleteOrUpdateBehavior = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior?) content.GetValueForProperty("VNetSolutionDeleteOrUpdateBehavior",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).VNetSolutionDeleteOrUpdateBehavior, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior.CreateFrom); + } + if (content.Contains("SecretStoreKeyVaultId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).SecretStoreKeyVaultId = (string) content.GetValueForProperty("SecretStoreKeyVaultId",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).SecretStoreKeyVaultId, global::System.Convert.ToString); + } + if (content.Contains("SecretStoreKeyVaultSecretName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).SecretStoreKeyVaultSecretName = (string) content.GetValueForProperty("SecretStoreKeyVaultSecretName",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).SecretStoreKeyVaultSecretName, global::System.Convert.ToString); + } + if (content.Contains("PublicNetworkSolutionDeleteOrUpdateBehavior")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).PublicNetworkSolutionDeleteOrUpdateBehavior = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior?) content.GetValueForProperty("PublicNetworkSolutionDeleteOrUpdateBehavior",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).PublicNetworkSolutionDeleteOrUpdateBehavior, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior.CreateFrom); + } + if (content.Contains("PublicNetworkSolutionAction")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).PublicNetworkSolutionAction = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType?) content.GetValueForProperty("PublicNetworkSolutionAction",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).PublicNetworkSolutionAction, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType.CreateFrom); + } + if (content.Contains("FirewallRuleIPRange")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).FirewallRuleIPRange = (string[]) content.GetValueForProperty("FirewallRuleIPRange",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).FirewallRuleIPRange, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("ConfigurationInfoDeleteOrUpdateBehavior")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).ConfigurationInfoDeleteOrUpdateBehavior = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior?) content.GetValueForProperty("ConfigurationInfoDeleteOrUpdateBehavior",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).ConfigurationInfoDeleteOrUpdateBehavior, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior.CreateFrom); + } + if (content.Contains("ConfigurationInfoAction")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).ConfigurationInfoAction = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType?) content.GetValueForProperty("ConfigurationInfoAction",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).ConfigurationInfoAction, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType.CreateFrom); + } + if (content.Contains("FirewallRuleAzureService")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).FirewallRuleAzureService = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType?) content.GetValueForProperty("FirewallRuleAzureService",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).FirewallRuleAzureService, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType.CreateFrom); + } + if (content.Contains("FirewallRuleCallerClientIP")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).FirewallRuleCallerClientIP = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType?) content.GetValueForProperty("FirewallRuleCallerClientIP",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).FirewallRuleCallerClientIP, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType.CreateFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal LinkerResource(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.LinkerPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("SecretStore")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).SecretStore = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretStore) content.GetValueForProperty("SecretStore",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).SecretStore, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.SecretStoreTypeConverter.ConvertFrom); + } + if (content.Contains("ConfigurationInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).ConfigurationInfo = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfo) content.GetValueForProperty("ConfigurationInfo",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).ConfigurationInfo, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationInfoTypeConverter.ConvertFrom); + } + if (content.Contains("ClientType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).ClientType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType?) content.GetValueForProperty("ClientType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).ClientType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType.CreateFrom); + } + if (content.Contains("VNetSolution")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).VNetSolution = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IVNetSolution) content.GetValueForProperty("VNetSolution",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).VNetSolution, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.VNetSolutionTypeConverter.ConvertFrom); + } + if (content.Contains("PublicNetworkSolution")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).PublicNetworkSolution = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPublicNetworkSolution) content.GetValueForProperty("PublicNetworkSolution",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).PublicNetworkSolution, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.PublicNetworkSolutionTypeConverter.ConvertFrom); + } + if (content.Contains("TargetService")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).TargetService = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase) content.GetValueForProperty("TargetService",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).TargetService, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.TargetServiceBaseTypeConverter.ConvertFrom); + } + if (content.Contains("AuthInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).AuthInfo = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase) content.GetValueForProperty("AuthInfo",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).AuthInfo, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.AuthInfoBaseTypeConverter.ConvertFrom); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).ProvisioningState, global::System.Convert.ToString); + } + if (content.Contains("Scope")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).Scope, global::System.Convert.ToString); + } + if (content.Contains("VNetSolutionType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).VNetSolutionType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType?) content.GetValueForProperty("VNetSolutionType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).VNetSolutionType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType.CreateFrom); + } + if (content.Contains("PublicNetworkSolutionFirewallRule")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).PublicNetworkSolutionFirewallRule = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IFirewallRules) content.GetValueForProperty("PublicNetworkSolutionFirewallRule",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).PublicNetworkSolutionFirewallRule, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.FirewallRulesTypeConverter.ConvertFrom); + } + if (content.Contains("ConfigurationInfoCustomizedKey")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).ConfigurationInfoCustomizedKey = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoCustomizedKeys) content.GetValueForProperty("ConfigurationInfoCustomizedKey",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).ConfigurationInfoCustomizedKey, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationInfoCustomizedKeysTypeConverter.ConvertFrom); + } + if (content.Contains("ConfigurationInfoAdditionalConfiguration")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).ConfigurationInfoAdditionalConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoAdditionalConfigurations) content.GetValueForProperty("ConfigurationInfoAdditionalConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).ConfigurationInfoAdditionalConfiguration, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationInfoAdditionalConfigurationsTypeConverter.ConvertFrom); + } + if (content.Contains("VNetSolutionDeleteOrUpdateBehavior")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).VNetSolutionDeleteOrUpdateBehavior = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior?) content.GetValueForProperty("VNetSolutionDeleteOrUpdateBehavior",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).VNetSolutionDeleteOrUpdateBehavior, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior.CreateFrom); + } + if (content.Contains("SecretStoreKeyVaultId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).SecretStoreKeyVaultId = (string) content.GetValueForProperty("SecretStoreKeyVaultId",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).SecretStoreKeyVaultId, global::System.Convert.ToString); + } + if (content.Contains("SecretStoreKeyVaultSecretName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).SecretStoreKeyVaultSecretName = (string) content.GetValueForProperty("SecretStoreKeyVaultSecretName",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).SecretStoreKeyVaultSecretName, global::System.Convert.ToString); + } + if (content.Contains("PublicNetworkSolutionDeleteOrUpdateBehavior")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).PublicNetworkSolutionDeleteOrUpdateBehavior = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior?) content.GetValueForProperty("PublicNetworkSolutionDeleteOrUpdateBehavior",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).PublicNetworkSolutionDeleteOrUpdateBehavior, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior.CreateFrom); + } + if (content.Contains("PublicNetworkSolutionAction")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).PublicNetworkSolutionAction = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType?) content.GetValueForProperty("PublicNetworkSolutionAction",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).PublicNetworkSolutionAction, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType.CreateFrom); + } + if (content.Contains("FirewallRuleIPRange")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).FirewallRuleIPRange = (string[]) content.GetValueForProperty("FirewallRuleIPRange",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).FirewallRuleIPRange, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("ConfigurationInfoDeleteOrUpdateBehavior")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).ConfigurationInfoDeleteOrUpdateBehavior = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior?) content.GetValueForProperty("ConfigurationInfoDeleteOrUpdateBehavior",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).ConfigurationInfoDeleteOrUpdateBehavior, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior.CreateFrom); + } + if (content.Contains("ConfigurationInfoAction")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).ConfigurationInfoAction = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType?) content.GetValueForProperty("ConfigurationInfoAction",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).ConfigurationInfoAction, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType.CreateFrom); + } + if (content.Contains("FirewallRuleAzureService")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).FirewallRuleAzureService = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType?) content.GetValueForProperty("FirewallRuleAzureService",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).FirewallRuleAzureService, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType.CreateFrom); + } + if (content.Contains("FirewallRuleCallerClientIP")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).FirewallRuleCallerClientIP = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType?) content.GetValueForProperty("FirewallRuleCallerClientIP",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal)this).FirewallRuleCallerClientIP, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType.CreateFrom); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Linker of source and target resource + [System.ComponentModel.TypeConverter(typeof(LinkerResourceTypeConverter))] + public partial interface ILinkerResource + + { + + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/LinkerResource.TypeConverter.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/LinkerResource.TypeConverter.cs similarity index 82% rename from src/ServiceLinker/generated/api/Models/Api20220501/LinkerResource.TypeConverter.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/LinkerResource.TypeConverter.cs index 65f0ab14c4d8..202c44e63e01 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/LinkerResource.TypeConverter.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/LinkerResource.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; @@ -14,19 +14,20 @@ public partial class LinkerResourceTypeConverter : global::System.Management.Aut { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the . + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -74,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -98,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/LinkerResource.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/LinkerResource.cs new file mode 100644 index 000000000000..00d860ad63e3 --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/LinkerResource.cs @@ -0,0 +1,479 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; + + /// Linker of source and target resource + public partial class LinkerResource : + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.Resource(); + + /// The authentication type. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase AuthInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).AuthInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).AuthInfo = value ?? null /* model class */; } + + /// The application client type + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType? ClientType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).ClientType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).ClientType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType)""); } + + /// + /// Optional, indicate whether to apply configurations on source application. If enable, generate configurations and applied + /// to the source application. Default is enable. If optOut, no configuration change will be made on source. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType? ConfigurationInfoAction { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).ConfigurationInfoAction; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).ConfigurationInfoAction = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType)""); } + + /// + /// A dictionary of additional configurations to be added. Service will auto generate a set of basic configurations and this + /// property is to full fill more customized configurations + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoAdditionalConfigurations ConfigurationInfoAdditionalConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).ConfigurationInfoAdditionalConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).ConfigurationInfoAdditionalConfiguration = value ?? null /* model class */; } + + /// + /// Optional. A dictionary of default key name and customized key name mapping. If not specified, default key name will be + /// used for generate configurations + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoCustomizedKeys ConfigurationInfoCustomizedKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).ConfigurationInfoCustomizedKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).ConfigurationInfoCustomizedKey = value ?? null /* model class */; } + + /// + /// Indicates whether to clean up previous operation when Linker is updating or deleting + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior? ConfigurationInfoDeleteOrUpdateBehavior { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).ConfigurationInfoDeleteOrUpdateBehavior; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).ConfigurationInfoDeleteOrUpdateBehavior = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior)""); } + + /// Allow Azure services to access the target service if true. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType? FirewallRuleAzureService { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).FirewallRuleAzureService; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).FirewallRuleAzureService = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType)""); } + + /// + /// Allow caller client IP to access the target service if true. the property is used when connecting local application to + /// target service. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType? FirewallRuleCallerClientIP { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).FirewallRuleCallerClientIP; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).FirewallRuleCallerClientIP = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType)""); } + + /// + /// This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client + /// IPs for a given database account. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] + public string[] FirewallRuleIPRange { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).FirewallRuleIPRange; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).FirewallRuleIPRange = value ?? null /* arrayOf */; } + + /// + /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)__resource).Id; } + + /// Internal Acessors for ConfigurationInfo + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfo Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal.ConfigurationInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).ConfigurationInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).ConfigurationInfo = value; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerProperties Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.LinkerProperties()); set { {_property = value;} } } + + /// Internal Acessors for ProvisioningState + string Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).ProvisioningState = value; } + + /// Internal Acessors for PublicNetworkSolution + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPublicNetworkSolution Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal.PublicNetworkSolution { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).PublicNetworkSolution; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).PublicNetworkSolution = value; } + + /// Internal Acessors for PublicNetworkSolutionFirewallRule + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IFirewallRules Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal.PublicNetworkSolutionFirewallRule { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).PublicNetworkSolutionFirewallRule; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).PublicNetworkSolutionFirewallRule = value; } + + /// Internal Acessors for SecretStore + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretStore Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal.SecretStore { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).SecretStore; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).SecretStore = value; } + + /// Internal Acessors for VNetSolution + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IVNetSolution Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResourceInternal.VNetSolution { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).VNetSolution; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).VNetSolution = value; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)__resource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)__resource).Name = value; } + + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)__resource).SystemData = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)__resource).Type = value; } + + /// The name of the resource + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)__resource).Name; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerProperties _property; + + /// The properties of the Linker. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.LinkerProperties()); set => this._property = value; } + + /// The provisioning state. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] + public string ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).ProvisioningState; } + + /// + /// Optional. Indicates public network solution. If enable, enable public network access of target service with best try. + /// Default is enable. If optOut, opt out public network access configuration. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType? PublicNetworkSolutionAction { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).PublicNetworkSolutionAction; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).PublicNetworkSolutionAction = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType)""); } + + /// + /// Indicates whether to clean up previous operation(such as firewall rules) when Linker is updating or deleting + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior? PublicNetworkSolutionDeleteOrUpdateBehavior { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).PublicNetworkSolutionDeleteOrUpdateBehavior; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).PublicNetworkSolutionDeleteOrUpdateBehavior = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior)""); } + + /// connection scope in source service. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] + public string Scope { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).Scope; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).Scope = value ?? null; } + + /// The key vault id to store secret + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] + public string SecretStoreKeyVaultId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).SecretStoreKeyVaultId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).SecretStoreKeyVaultId = value ?? null; } + + /// The key vault secret name to store secret, only valid when storing one secret + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] + public string SecretStoreKeyVaultSecretName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).SecretStoreKeyVaultSecretName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).SecretStoreKeyVaultSecretName = value ?? null; } + + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)__resource).SystemData; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)__resource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType)""); } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType)""); } + + /// The target service properties + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase TargetService { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).TargetService; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).TargetService = value ?? null /* model class */; } + + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)__resource).Type; } + + /// + /// Indicates whether to clean up previous operation when Linker is updating or deleting + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior? VNetSolutionDeleteOrUpdateBehavior { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).VNetSolutionDeleteOrUpdateBehavior; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).VNetSolutionDeleteOrUpdateBehavior = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior)""); } + + /// Type of VNet solution. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType? VNetSolutionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).VNetSolutionType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPropertiesInternal)Property).VNetSolutionType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType)""); } + + /// Creates an new instance. + public LinkerResource() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__resource), __resource); + await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + } + } + /// Linker of source and target resource + public partial interface ILinkerResource : + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResource + { + /// The authentication type. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The authentication type.", + SerializedName = @"authInfo", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase AuthInfo { get; set; } + /// The application client type + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The application client type", + SerializedName = @"clientType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType? ClientType { get; set; } + /// + /// Optional, indicate whether to apply configurations on source application. If enable, generate configurations and applied + /// to the source application. Default is enable. If optOut, no configuration change will be made on source. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Optional, indicate whether to apply configurations on source application. If enable, generate configurations and applied to the source application. Default is enable. If optOut, no configuration change will be made on source.", + SerializedName = @"action", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType? ConfigurationInfoAction { get; set; } + /// + /// A dictionary of additional configurations to be added. Service will auto generate a set of basic configurations and this + /// property is to full fill more customized configurations + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A dictionary of additional configurations to be added. Service will auto generate a set of basic configurations and this property is to full fill more customized configurations", + SerializedName = @"additionalConfigurations", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoAdditionalConfigurations) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoAdditionalConfigurations ConfigurationInfoAdditionalConfiguration { get; set; } + /// + /// Optional. A dictionary of default key name and customized key name mapping. If not specified, default key name will be + /// used for generate configurations + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Optional. A dictionary of default key name and customized key name mapping. If not specified, default key name will be used for generate configurations", + SerializedName = @"customizedKeys", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoCustomizedKeys) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoCustomizedKeys ConfigurationInfoCustomizedKey { get; set; } + /// + /// Indicates whether to clean up previous operation when Linker is updating or deleting + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Indicates whether to clean up previous operation when Linker is updating or deleting", + SerializedName = @"deleteOrUpdateBehavior", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior? ConfigurationInfoDeleteOrUpdateBehavior { get; set; } + /// Allow Azure services to access the target service if true. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Allow Azure services to access the target service if true.", + SerializedName = @"azureServices", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType? FirewallRuleAzureService { get; set; } + /// + /// Allow caller client IP to access the target service if true. the property is used when connecting local application to + /// target service. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Allow caller client IP to access the target service if true. the property is used when connecting local application to target service.", + SerializedName = @"callerClientIP", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType? FirewallRuleCallerClientIP { get; set; } + /// + /// This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client + /// IPs for a given database account. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client IPs for a given database account.", + SerializedName = @"ipRanges", + PossibleTypes = new [] { typeof(string) })] + string[] FirewallRuleIPRange { get; set; } + /// The provisioning state. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The provisioning state. ", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(string) })] + string ProvisioningState { get; } + /// + /// Optional. Indicates public network solution. If enable, enable public network access of target service with best try. + /// Default is enable. If optOut, opt out public network access configuration. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Optional. Indicates public network solution. If enable, enable public network access of target service with best try. Default is enable. If optOut, opt out public network access configuration.", + SerializedName = @"action", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType? PublicNetworkSolutionAction { get; set; } + /// + /// Indicates whether to clean up previous operation(such as firewall rules) when Linker is updating or deleting + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Indicates whether to clean up previous operation(such as firewall rules) when Linker is updating or deleting", + SerializedName = @"deleteOrUpdateBehavior", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior? PublicNetworkSolutionDeleteOrUpdateBehavior { get; set; } + /// connection scope in source service. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"connection scope in source service.", + SerializedName = @"scope", + PossibleTypes = new [] { typeof(string) })] + string Scope { get; set; } + /// The key vault id to store secret + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The key vault id to store secret", + SerializedName = @"keyVaultId", + PossibleTypes = new [] { typeof(string) })] + string SecretStoreKeyVaultId { get; set; } + /// The key vault secret name to store secret, only valid when storing one secret + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The key vault secret name to store secret, only valid when storing one secret", + SerializedName = @"keyVaultSecretName", + PossibleTypes = new [] { typeof(string) })] + string SecretStoreKeyVaultSecretName { get; set; } + /// The target service properties + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The target service properties", + SerializedName = @"targetService", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase TargetService { get; set; } + /// + /// Indicates whether to clean up previous operation when Linker is updating or deleting + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Indicates whether to clean up previous operation when Linker is updating or deleting", + SerializedName = @"deleteOrUpdateBehavior", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior? VNetSolutionDeleteOrUpdateBehavior { get; set; } + /// Type of VNet solution. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Type of VNet solution.", + SerializedName = @"type", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType? VNetSolutionType { get; set; } + + } + /// Linker of source and target resource + internal partial interface ILinkerResourceInternal : + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal + { + /// The authentication type. + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase AuthInfo { get; set; } + /// The application client type + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType? ClientType { get; set; } + /// + /// The connection information consumed by applications, including secrets, connection strings. + /// + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfo ConfigurationInfo { get; set; } + /// + /// Optional, indicate whether to apply configurations on source application. If enable, generate configurations and applied + /// to the source application. Default is enable. If optOut, no configuration change will be made on source. + /// + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType? ConfigurationInfoAction { get; set; } + /// + /// A dictionary of additional configurations to be added. Service will auto generate a set of basic configurations and this + /// property is to full fill more customized configurations + /// + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoAdditionalConfigurations ConfigurationInfoAdditionalConfiguration { get; set; } + /// + /// Optional. A dictionary of default key name and customized key name mapping. If not specified, default key name will be + /// used for generate configurations + /// + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoCustomizedKeys ConfigurationInfoCustomizedKey { get; set; } + /// + /// Indicates whether to clean up previous operation when Linker is updating or deleting + /// + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior? ConfigurationInfoDeleteOrUpdateBehavior { get; set; } + /// Allow Azure services to access the target service if true. + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType? FirewallRuleAzureService { get; set; } + /// + /// Allow caller client IP to access the target service if true. the property is used when connecting local application to + /// target service. + /// + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType? FirewallRuleCallerClientIP { get; set; } + /// + /// This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client + /// IPs for a given database account. + /// + string[] FirewallRuleIPRange { get; set; } + /// The properties of the Linker. + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerProperties Property { get; set; } + /// The provisioning state. + string ProvisioningState { get; set; } + /// The network solution. + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPublicNetworkSolution PublicNetworkSolution { get; set; } + /// + /// Optional. Indicates public network solution. If enable, enable public network access of target service with best try. + /// Default is enable. If optOut, opt out public network access configuration. + /// + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType? PublicNetworkSolutionAction { get; set; } + /// + /// Indicates whether to clean up previous operation(such as firewall rules) when Linker is updating or deleting + /// + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior? PublicNetworkSolutionDeleteOrUpdateBehavior { get; set; } + /// + /// Describe firewall rules of target service to make sure source application could connect to the target. + /// + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IFirewallRules PublicNetworkSolutionFirewallRule { get; set; } + /// connection scope in source service. + string Scope { get; set; } + /// An option to store secret value in secure place + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretStore SecretStore { get; set; } + /// The key vault id to store secret + string SecretStoreKeyVaultId { get; set; } + /// The key vault secret name to store secret, only valid when storing one secret + string SecretStoreKeyVaultSecretName { get; set; } + /// The target service properties + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase TargetService { get; set; } + /// The VNet solution. + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IVNetSolution VNetSolution { get; set; } + /// + /// Indicates whether to clean up previous operation when Linker is updating or deleting + /// + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior? VNetSolutionDeleteOrUpdateBehavior { get; set; } + /// Type of VNet solution. + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType? VNetSolutionType { get; set; } + + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/LinkerResource.json.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/LinkerResource.json.cs similarity index 87% rename from src/ServiceLinker/generated/api/Models/Api20220501/LinkerResource.json.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/LinkerResource.json.cs index fccee29e025d..fd2460f08251 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/LinkerResource.json.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/LinkerResource.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class LinkerResource partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json ? new LinkerResource(json) : null; } @@ -77,9 +77,8 @@ internal LinkerResource(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.Resource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.LinkerProperties.FromJson(__jsonProperties) : Property;} - {_systemData = If( json?.PropertyT("systemData"), out var __jsonSystemData) ? Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.SystemData.FromJson(__jsonSystemData) : SystemData;} + __resource = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.Resource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.LinkerProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } @@ -104,10 +103,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode To } __resource?.ToJson(container, serializationMode); AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SerializationMode.IncludeReadOnly)) - { - AddIf( null != this._systemData ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) this._systemData.ToJson(null,serializationMode) : null, "systemData" ,container.Add ); - } AfterToJson(ref container); return container; } diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/PermissionsMissingDryrunPrerequisiteResult.PowerShell.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/PermissionsMissingDryrunPrerequisiteResult.PowerShell.cs new file mode 100644 index 000000000000..e39319887d48 --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/PermissionsMissingDryrunPrerequisiteResult.PowerShell.cs @@ -0,0 +1,173 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; + + /// The represent of missing permissions + [System.ComponentModel.TypeConverter(typeof(PermissionsMissingDryrunPrerequisiteResultTypeConverter))] + public partial class PermissionsMissingDryrunPrerequisiteResult + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPermissionsMissingDryrunPrerequisiteResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new PermissionsMissingDryrunPrerequisiteResult(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPermissionsMissingDryrunPrerequisiteResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new PermissionsMissingDryrunPrerequisiteResult(content); + } + + /// + /// Creates a new instance of , deserializing the content from a + /// json string. + /// + /// a string containing a JSON serialized instance of this model. + /// + /// an instance of the model class. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPermissionsMissingDryrunPrerequisiteResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal PermissionsMissingDryrunPrerequisiteResult(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Scope")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPermissionsMissingDryrunPrerequisiteResultInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPermissionsMissingDryrunPrerequisiteResultInternal)this).Scope, global::System.Convert.ToString); + } + if (content.Contains("Permission")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPermissionsMissingDryrunPrerequisiteResultInternal)this).Permission = (string[]) content.GetValueForProperty("Permission",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPermissionsMissingDryrunPrerequisiteResultInternal)this).Permission, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("RecommendedRole")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPermissionsMissingDryrunPrerequisiteResultInternal)this).RecommendedRole = (string) content.GetValueForProperty("RecommendedRole",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPermissionsMissingDryrunPrerequisiteResultInternal)this).RecommendedRole, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPrerequisiteResultInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DryrunPrerequisiteResultType) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPrerequisiteResultInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DryrunPrerequisiteResultType.CreateFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal PermissionsMissingDryrunPrerequisiteResult(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Scope")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPermissionsMissingDryrunPrerequisiteResultInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPermissionsMissingDryrunPrerequisiteResultInternal)this).Scope, global::System.Convert.ToString); + } + if (content.Contains("Permission")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPermissionsMissingDryrunPrerequisiteResultInternal)this).Permission = (string[]) content.GetValueForProperty("Permission",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPermissionsMissingDryrunPrerequisiteResultInternal)this).Permission, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("RecommendedRole")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPermissionsMissingDryrunPrerequisiteResultInternal)this).RecommendedRole = (string) content.GetValueForProperty("RecommendedRole",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPermissionsMissingDryrunPrerequisiteResultInternal)this).RecommendedRole, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPrerequisiteResultInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DryrunPrerequisiteResultType) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPrerequisiteResultInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DryrunPrerequisiteResultType.CreateFrom); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The represent of missing permissions + [System.ComponentModel.TypeConverter(typeof(PermissionsMissingDryrunPrerequisiteResultTypeConverter))] + public partial interface IPermissionsMissingDryrunPrerequisiteResult + + { + + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/PermissionsMissingDryrunPrerequisiteResult.TypeConverter.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/PermissionsMissingDryrunPrerequisiteResult.TypeConverter.cs new file mode 100644 index 000000000000..98d8d8e3b4f4 --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/PermissionsMissingDryrunPrerequisiteResult.TypeConverter.cs @@ -0,0 +1,151 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class PermissionsMissingDryrunPrerequisiteResultTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise + /// false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPermissionsMissingDryrunPrerequisiteResult ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPermissionsMissingDryrunPrerequisiteResult).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return PermissionsMissingDryrunPrerequisiteResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return PermissionsMissingDryrunPrerequisiteResult.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return PermissionsMissingDryrunPrerequisiteResult.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/PermissionsMissingDryrunPrerequisiteResult.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/PermissionsMissingDryrunPrerequisiteResult.cs new file mode 100644 index 000000000000..e881273f0f54 --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/PermissionsMissingDryrunPrerequisiteResult.cs @@ -0,0 +1,110 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; + + /// The represent of missing permissions + public partial class PermissionsMissingDryrunPrerequisiteResult : + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPermissionsMissingDryrunPrerequisiteResult, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPermissionsMissingDryrunPrerequisiteResultInternal, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPrerequisiteResult __dryrunPrerequisiteResult = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DryrunPrerequisiteResult(); + + /// Backing field for property. + private string[] _permission; + + /// The permission list + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] + public string[] Permission { get => this._permission; set => this._permission = value; } + + /// Backing field for property. + private string _recommendedRole; + + /// The recommended role to resolve permissions missing + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] + public string RecommendedRole { get => this._recommendedRole; set => this._recommendedRole = value; } + + /// Backing field for property. + private string _scope; + + /// The permission scope + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] + public string Scope { get => this._scope; set => this._scope = value; } + + /// The type of dryrun result. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DryrunPrerequisiteResultType Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPrerequisiteResultInternal)__dryrunPrerequisiteResult).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPrerequisiteResultInternal)__dryrunPrerequisiteResult).Type = value ; } + + /// + /// Creates an new instance. + /// + public PermissionsMissingDryrunPrerequisiteResult() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__dryrunPrerequisiteResult), __dryrunPrerequisiteResult); + await eventListener.AssertObjectIsValid(nameof(__dryrunPrerequisiteResult), __dryrunPrerequisiteResult); + } + } + /// The represent of missing permissions + public partial interface IPermissionsMissingDryrunPrerequisiteResult : + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPrerequisiteResult + { + /// The permission list + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The permission list", + SerializedName = @"permissions", + PossibleTypes = new [] { typeof(string) })] + string[] Permission { get; set; } + /// The recommended role to resolve permissions missing + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The recommended role to resolve permissions missing", + SerializedName = @"recommendedRole", + PossibleTypes = new [] { typeof(string) })] + string RecommendedRole { get; set; } + /// The permission scope + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The permission scope", + SerializedName = @"scope", + PossibleTypes = new [] { typeof(string) })] + string Scope { get; set; } + + } + /// The represent of missing permissions + internal partial interface IPermissionsMissingDryrunPrerequisiteResultInternal : + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPrerequisiteResultInternal + { + /// The permission list + string[] Permission { get; set; } + /// The recommended role to resolve permissions missing + string RecommendedRole { get; set; } + /// The permission scope + string Scope { get; set; } + + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/PermissionsMissingDryrunPrerequisiteResult.json.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/PermissionsMissingDryrunPrerequisiteResult.json.cs new file mode 100644 index 000000000000..6e8724b65529 --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/PermissionsMissingDryrunPrerequisiteResult.json.cs @@ -0,0 +1,124 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; + + /// The represent of missing permissions + public partial class PermissionsMissingDryrunPrerequisiteResult + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPermissionsMissingDryrunPrerequisiteResult. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPermissionsMissingDryrunPrerequisiteResult. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPermissionsMissingDryrunPrerequisiteResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json ? new PermissionsMissingDryrunPrerequisiteResult(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject instance to deserialize from. + internal PermissionsMissingDryrunPrerequisiteResult(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __dryrunPrerequisiteResult = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DryrunPrerequisiteResult(json); + {_scope = If( json?.PropertyT("scope"), out var __jsonScope) ? (string)__jsonScope : (string)Scope;} + {_permission = If( json?.PropertyT("permissions"), out var __jsonPermissions) ? If( __jsonPermissions as Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : Permission;} + {_recommendedRole = If( json?.PropertyT("recommendedRole"), out var __jsonRecommendedRole) ? (string)__jsonRecommendedRole : (string)RecommendedRole;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + __dryrunPrerequisiteResult?.ToJson(container, serializationMode); + AddIf( null != (((object)this._scope)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonString(this._scope.ToString()) : null, "scope" ,container.Add ); + if (null != this._permission) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.XNodeArray(); + foreach( var __x in this._permission ) + { + AddIf(null != (((object)__x)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonString(__x.ToString()) : null ,__w.Add); + } + container.Add("permissions",__w); + } + AddIf( null != (((object)this._recommendedRole)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonString(this._recommendedRole.ToString()) : null, "recommendedRole" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/PublicNetworkSolution.PowerShell.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/PublicNetworkSolution.PowerShell.cs new file mode 100644 index 000000000000..31e2ed8a0030 --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/PublicNetworkSolution.PowerShell.cs @@ -0,0 +1,186 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; + + /// Indicates public network solution, include firewall rules + [System.ComponentModel.TypeConverter(typeof(PublicNetworkSolutionTypeConverter))] + public partial class PublicNetworkSolution + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPublicNetworkSolution DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new PublicNetworkSolution(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPublicNetworkSolution DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new PublicNetworkSolution(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPublicNetworkSolution FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal PublicNetworkSolution(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("FirewallRule")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPublicNetworkSolutionInternal)this).FirewallRule = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IFirewallRules) content.GetValueForProperty("FirewallRule",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPublicNetworkSolutionInternal)this).FirewallRule, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.FirewallRulesTypeConverter.ConvertFrom); + } + if (content.Contains("DeleteOrUpdateBehavior")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPublicNetworkSolutionInternal)this).DeleteOrUpdateBehavior = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior?) content.GetValueForProperty("DeleteOrUpdateBehavior",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPublicNetworkSolutionInternal)this).DeleteOrUpdateBehavior, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior.CreateFrom); + } + if (content.Contains("Action")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPublicNetworkSolutionInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType?) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPublicNetworkSolutionInternal)this).Action, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType.CreateFrom); + } + if (content.Contains("FirewallRuleIPRange")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPublicNetworkSolutionInternal)this).FirewallRuleIPRange = (string[]) content.GetValueForProperty("FirewallRuleIPRange",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPublicNetworkSolutionInternal)this).FirewallRuleIPRange, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("FirewallRuleAzureService")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPublicNetworkSolutionInternal)this).FirewallRuleAzureService = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType?) content.GetValueForProperty("FirewallRuleAzureService",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPublicNetworkSolutionInternal)this).FirewallRuleAzureService, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType.CreateFrom); + } + if (content.Contains("FirewallRuleCallerClientIP")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPublicNetworkSolutionInternal)this).FirewallRuleCallerClientIP = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType?) content.GetValueForProperty("FirewallRuleCallerClientIP",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPublicNetworkSolutionInternal)this).FirewallRuleCallerClientIP, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType.CreateFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal PublicNetworkSolution(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("FirewallRule")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPublicNetworkSolutionInternal)this).FirewallRule = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IFirewallRules) content.GetValueForProperty("FirewallRule",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPublicNetworkSolutionInternal)this).FirewallRule, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.FirewallRulesTypeConverter.ConvertFrom); + } + if (content.Contains("DeleteOrUpdateBehavior")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPublicNetworkSolutionInternal)this).DeleteOrUpdateBehavior = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior?) content.GetValueForProperty("DeleteOrUpdateBehavior",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPublicNetworkSolutionInternal)this).DeleteOrUpdateBehavior, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior.CreateFrom); + } + if (content.Contains("Action")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPublicNetworkSolutionInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType?) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPublicNetworkSolutionInternal)this).Action, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType.CreateFrom); + } + if (content.Contains("FirewallRuleIPRange")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPublicNetworkSolutionInternal)this).FirewallRuleIPRange = (string[]) content.GetValueForProperty("FirewallRuleIPRange",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPublicNetworkSolutionInternal)this).FirewallRuleIPRange, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("FirewallRuleAzureService")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPublicNetworkSolutionInternal)this).FirewallRuleAzureService = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType?) content.GetValueForProperty("FirewallRuleAzureService",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPublicNetworkSolutionInternal)this).FirewallRuleAzureService, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType.CreateFrom); + } + if (content.Contains("FirewallRuleCallerClientIP")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPublicNetworkSolutionInternal)this).FirewallRuleCallerClientIP = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType?) content.GetValueForProperty("FirewallRuleCallerClientIP",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPublicNetworkSolutionInternal)this).FirewallRuleCallerClientIP, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType.CreateFrom); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Indicates public network solution, include firewall rules + [System.ComponentModel.TypeConverter(typeof(PublicNetworkSolutionTypeConverter))] + public partial interface IPublicNetworkSolution + + { + + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/PublicNetworkSolution.TypeConverter.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/PublicNetworkSolution.TypeConverter.cs new file mode 100644 index 000000000000..a283bbf8db96 --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/PublicNetworkSolution.TypeConverter.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class PublicNetworkSolutionTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPublicNetworkSolution ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPublicNetworkSolution).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return PublicNetworkSolution.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return PublicNetworkSolution.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return PublicNetworkSolution.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/PublicNetworkSolution.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/PublicNetworkSolution.cs new file mode 100644 index 000000000000..2cc0127e55c6 --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/PublicNetworkSolution.cs @@ -0,0 +1,159 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; + + /// Indicates public network solution, include firewall rules + public partial class PublicNetworkSolution : + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPublicNetworkSolution, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPublicNetworkSolutionInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType? _action; + + /// + /// Optional. Indicates public network solution. If enable, enable public network access of target service with best try. + /// Default is enable. If optOut, opt out public network access configuration. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType? Action { get => this._action; set => this._action = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior? _deleteOrUpdateBehavior; + + /// + /// Indicates whether to clean up previous operation(such as firewall rules) when Linker is updating or deleting + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior? DeleteOrUpdateBehavior { get => this._deleteOrUpdateBehavior; set => this._deleteOrUpdateBehavior = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IFirewallRules _firewallRule; + + /// + /// Describe firewall rules of target service to make sure source application could connect to the target. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IFirewallRules FirewallRule { get => (this._firewallRule = this._firewallRule ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.FirewallRules()); set => this._firewallRule = value; } + + /// Allow Azure services to access the target service if true. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType? FirewallRuleAzureService { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IFirewallRulesInternal)FirewallRule).AzureService; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IFirewallRulesInternal)FirewallRule).AzureService = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType)""); } + + /// + /// Allow caller client IP to access the target service if true. the property is used when connecting local application to + /// target service. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType? FirewallRuleCallerClientIP { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IFirewallRulesInternal)FirewallRule).CallerClientIP; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IFirewallRulesInternal)FirewallRule).CallerClientIP = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType)""); } + + /// + /// This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client + /// IPs for a given database account. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] + public string[] FirewallRuleIPRange { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IFirewallRulesInternal)FirewallRule).IPRange; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IFirewallRulesInternal)FirewallRule).IPRange = value ?? null /* arrayOf */; } + + /// Internal Acessors for FirewallRule + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IFirewallRules Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPublicNetworkSolutionInternal.FirewallRule { get => (this._firewallRule = this._firewallRule ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.FirewallRules()); set { {_firewallRule = value;} } } + + /// Creates an new instance. + public PublicNetworkSolution() + { + + } + } + /// Indicates public network solution, include firewall rules + public partial interface IPublicNetworkSolution : + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IJsonSerializable + { + /// + /// Optional. Indicates public network solution. If enable, enable public network access of target service with best try. + /// Default is enable. If optOut, opt out public network access configuration. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Optional. Indicates public network solution. If enable, enable public network access of target service with best try. Default is enable. If optOut, opt out public network access configuration.", + SerializedName = @"action", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType? Action { get; set; } + /// + /// Indicates whether to clean up previous operation(such as firewall rules) when Linker is updating or deleting + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Indicates whether to clean up previous operation(such as firewall rules) when Linker is updating or deleting", + SerializedName = @"deleteOrUpdateBehavior", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior? DeleteOrUpdateBehavior { get; set; } + /// Allow Azure services to access the target service if true. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Allow Azure services to access the target service if true.", + SerializedName = @"azureServices", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType? FirewallRuleAzureService { get; set; } + /// + /// Allow caller client IP to access the target service if true. the property is used when connecting local application to + /// target service. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Allow caller client IP to access the target service if true. the property is used when connecting local application to target service.", + SerializedName = @"callerClientIP", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType? FirewallRuleCallerClientIP { get; set; } + /// + /// This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client + /// IPs for a given database account. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client IPs for a given database account.", + SerializedName = @"ipRanges", + PossibleTypes = new [] { typeof(string) })] + string[] FirewallRuleIPRange { get; set; } + + } + /// Indicates public network solution, include firewall rules + internal partial interface IPublicNetworkSolutionInternal + + { + /// + /// Optional. Indicates public network solution. If enable, enable public network access of target service with best try. + /// Default is enable. If optOut, opt out public network access configuration. + /// + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType? Action { get; set; } + /// + /// Indicates whether to clean up previous operation(such as firewall rules) when Linker is updating or deleting + /// + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior? DeleteOrUpdateBehavior { get; set; } + /// + /// Describe firewall rules of target service to make sure source application could connect to the target. + /// + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IFirewallRules FirewallRule { get; set; } + /// Allow Azure services to access the target service if true. + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType? FirewallRuleAzureService { get; set; } + /// + /// Allow caller client IP to access the target service if true. the property is used when connecting local application to + /// target service. + /// + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType? FirewallRuleCallerClientIP { get; set; } + /// + /// This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client + /// IPs for a given database account. + /// + string[] FirewallRuleIPRange { get; set; } + + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/PublicNetworkSolution.json.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/PublicNetworkSolution.json.cs new file mode 100644 index 000000000000..d94a07d245dc --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/PublicNetworkSolution.json.cs @@ -0,0 +1,112 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; + + /// Indicates public network solution, include firewall rules + public partial class PublicNetworkSolution + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPublicNetworkSolution. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPublicNetworkSolution. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IPublicNetworkSolution FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json ? new PublicNetworkSolution(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject instance to deserialize from. + internal PublicNetworkSolution(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_firewallRule = If( json?.PropertyT("firewallRules"), out var __jsonFirewallRules) ? Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.FirewallRules.FromJson(__jsonFirewallRules) : FirewallRule;} + {_deleteOrUpdateBehavior = If( json?.PropertyT("deleteOrUpdateBehavior"), out var __jsonDeleteOrUpdateBehavior) ? (string)__jsonDeleteOrUpdateBehavior : (string)DeleteOrUpdateBehavior;} + {_action = If( json?.PropertyT("action"), out var __jsonAction) ? (string)__jsonAction : (string)Action;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._firewallRule ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) this._firewallRule.ToJson(null,serializationMode) : null, "firewallRules" ,container.Add ); + AddIf( null != (((object)this._deleteOrUpdateBehavior)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonString(this._deleteOrUpdateBehavior.ToString()) : null, "deleteOrUpdateBehavior" ,container.Add ); + AddIf( null != (((object)this._action)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonString(this._action.ToString()) : null, "action" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20/ProxyResource.PowerShell.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ResourceList.PowerShell.cs similarity index 63% rename from src/ServiceLinker/generated/api/Models/Api20/ProxyResource.PowerShell.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/ResourceList.PowerShell.cs index 58ee728d7222..25c933f0f265 100644 --- a/src/ServiceLinker/generated/api/Models/Api20/ProxyResource.PowerShell.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ResourceList.PowerShell.cs @@ -3,15 +3,13 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; - /// - /// The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location - /// - [System.ComponentModel.TypeConverter(typeof(ProxyResourceTypeConverter))] - public partial class ProxyResource + /// The list of Linker. + [System.ComponentModel.TypeConverter(typeof(ResourceListTypeConverter))] + public partial class ResourceList { /// @@ -33,7 +31,8 @@ public partial class ProxyResource /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -45,7 +44,8 @@ public partial class ProxyResource /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -55,44 +55,44 @@ public partial class ProxyResource partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IProxyResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IResourceList DeserializeFromDictionary(global::System.Collections.IDictionary content) { - return new ProxyResource(content); + return new ResourceList(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IProxyResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IResourceList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { - return new ProxyResource(content); + return new ResourceList(content); } /// - /// Creates a new instance of , deserializing the content from a json string. + /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IProxyResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IResourceList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. - internal ProxyResource(global::System.Collections.IDictionary content) + internal ResourceList(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); @@ -101,27 +101,23 @@ internal ProxyResource(global::System.Collections.IDictionary content) return; } // actually deserialize - if (content.Contains("Id")) + if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IResourceListInternal)this).NextLink, global::System.Convert.ToString); } - if (content.Contains("Name")) + if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.LinkerResourceTypeConverter.ConvertFrom)); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. - internal ProxyResource(global::System.Management.Automation.PSObject content) + internal ResourceList(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); @@ -130,17 +126,13 @@ internal ProxyResource(global::System.Management.Automation.PSObject content) return; } // actually deserialize - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) + if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IResourceListInternal)this).NextLink, global::System.Convert.ToString); } - if (content.Contains("Type")) + if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.LinkerResourceTypeConverter.ConvertFrom)); } AfterDeserializePSObject(content); } @@ -150,9 +142,9 @@ internal ProxyResource(global::System.Management.Automation.PSObject content) /// a containing this model serialized to JSON text. public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SerializationMode.IncludeAll)?.ToString(); } - /// The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location - [System.ComponentModel.TypeConverter(typeof(ProxyResourceTypeConverter))] - public partial interface IProxyResource + /// The list of Linker. + [System.ComponentModel.TypeConverter(typeof(ResourceListTypeConverter))] + public partial interface IResourceList { diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/ResourceList.TypeConverter.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ResourceList.TypeConverter.cs new file mode 100644 index 000000000000..a803efaa6677 --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ResourceList.TypeConverter.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ResourceListTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IResourceList ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IResourceList).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ResourceList.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ResourceList.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ResourceList.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/LinkerList.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ResourceList.cs similarity index 69% rename from src/ServiceLinker/generated/api/Models/Api20220501/LinkerList.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/ResourceList.cs index 2a21fe7afa83..eff0870fc3b1 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/LinkerList.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ResourceList.cs @@ -3,45 +3,45 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; /// The list of Linker. - public partial class LinkerList : - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerList, - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerListInternal + public partial class ResourceList : + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IResourceList, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IResourceListInternal { /// Backing field for property. private string _nextLink; - /// The link used to get the next page of Linker list. + /// The Linker used to get the next page of Linker list. [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource[] _value; /// The list of Linkers. [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource[] Value { get => this._value; set => this._value = value; } - /// Creates an new instance. - public LinkerList() + /// Creates an new instance. + public ResourceList() { } } /// The list of Linker. - public partial interface ILinkerList : + public partial interface IResourceList : Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IJsonSerializable { - /// The link used to get the next page of Linker list. + /// The Linker used to get the next page of Linker list. [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( Required = false, ReadOnly = false, - Description = @"The link used to get the next page of Linker list.", + Description = @"The Linker used to get the next page of Linker list.", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] string NextLink { get; set; } @@ -51,18 +51,18 @@ public partial interface ILinkerList : ReadOnly = false, Description = @"The list of Linkers.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource) })] - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource[] Value { get; set; } } /// The list of Linker. - internal partial interface ILinkerListInternal + internal partial interface IResourceListInternal { - /// The link used to get the next page of Linker list. + /// The Linker used to get the next page of Linker list. string NextLink { get; set; } /// The list of Linkers. - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource[] Value { get; set; } } } \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/ResourceList.json.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ResourceList.json.cs new file mode 100644 index 000000000000..9e2e2a5495d6 --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ResourceList.json.cs @@ -0,0 +1,118 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; + + /// The list of Linker. + public partial class ResourceList + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IResourceList. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IResourceList. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IResourceList FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json ? new ResourceList(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject instance to deserialize from. + internal ResourceList(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource) (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.LinkerResource.FromJson(__u) )) ))() : null : Value;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); + if (null != this._value) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("value",__w); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/SecretAuthInfo.PowerShell.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/SecretAuthInfo.PowerShell.cs similarity index 69% rename from src/ServiceLinker/generated/api/Models/Api20220501/SecretAuthInfo.PowerShell.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/SecretAuthInfo.PowerShell.cs index 067f56f4dbe0..6246db7b553e 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/SecretAuthInfo.PowerShell.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/SecretAuthInfo.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class SecretAuthInfo /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class SecretAuthInfo /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,27 +55,29 @@ public partial class SecretAuthInfo partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretAuthInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretAuthInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new SecretAuthInfo(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretAuthInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretAuthInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new SecretAuthInfo(content); } @@ -83,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api2022050 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretAuthInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretAuthInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -101,21 +105,21 @@ internal SecretAuthInfo(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretAuthInfoInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretAuthInfoInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretAuthInfoInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretAuthInfoInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("SecretInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretAuthInfoInternal)this).SecretInfo = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretInfoBase) content.GetValueForProperty("SecretInfo",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretAuthInfoInternal)this).SecretInfo, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.SecretInfoBaseTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretAuthInfoInternal)this).SecretInfo = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretInfoBase) content.GetValueForProperty("SecretInfo",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretAuthInfoInternal)this).SecretInfo, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.SecretInfoBaseTypeConverter.ConvertFrom); } if (content.Contains("AuthType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBaseInternal)this).AuthType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType) content.GetValueForProperty("AuthType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBaseInternal)this).AuthType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBaseInternal)this).AuthType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType) content.GetValueForProperty("AuthType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBaseInternal)this).AuthType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -130,15 +134,15 @@ internal SecretAuthInfo(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretAuthInfoInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretAuthInfoInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretAuthInfoInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretAuthInfoInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("SecretInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretAuthInfoInternal)this).SecretInfo = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretInfoBase) content.GetValueForProperty("SecretInfo",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretAuthInfoInternal)this).SecretInfo, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.SecretInfoBaseTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretAuthInfoInternal)this).SecretInfo = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretInfoBase) content.GetValueForProperty("SecretInfo",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretAuthInfoInternal)this).SecretInfo, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.SecretInfoBaseTypeConverter.ConvertFrom); } if (content.Contains("AuthType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBaseInternal)this).AuthType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType) content.GetValueForProperty("AuthType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBaseInternal)this).AuthType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBaseInternal)this).AuthType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType) content.GetValueForProperty("AuthType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBaseInternal)this).AuthType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType.CreateFrom); } AfterDeserializePSObject(content); } diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/SecretAuthInfo.TypeConverter.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/SecretAuthInfo.TypeConverter.cs similarity index 82% rename from src/ServiceLinker/generated/api/Models/Api20220501/SecretAuthInfo.TypeConverter.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/SecretAuthInfo.TypeConverter.cs index a74fc6e51134..a92bb366ce2d 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/SecretAuthInfo.TypeConverter.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/SecretAuthInfo.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; @@ -14,19 +14,20 @@ public partial class SecretAuthInfoTypeConverter : global::System.Management.Aut { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the . + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -74,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -98,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretAuthInfo ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretAuthInfo ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretAuthInfo).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretAuthInfo).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/SecretAuthInfo.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/SecretAuthInfo.cs similarity index 75% rename from src/ServiceLinker/generated/api/Models/Api20220501/SecretAuthInfo.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/SecretAuthInfo.cs index 821554aa306b..0b1145adf478 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/SecretAuthInfo.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/SecretAuthInfo.cs @@ -3,25 +3,25 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; /// The authentication info when authType is secret public partial class SecretAuthInfo : - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretAuthInfo, - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretAuthInfoInternal, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretAuthInfo, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretAuthInfoInternal, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBase __authInfoBase = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.AuthInfoBase(); + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase __authInfoBase = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.AuthInfoBase(); /// The authentication type. [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType AuthType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBaseInternal)__authInfoBase).AuthType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBaseInternal)__authInfoBase).AuthType = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType AuthType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBaseInternal)__authInfoBase).AuthType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBaseInternal)__authInfoBase).AuthType = value ; } /// Backing field for property. private string _name; @@ -31,11 +31,11 @@ public partial class SecretAuthInfo : public string Name { get => this._name; set => this._name = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretInfoBase _secretInfo; + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretInfoBase _secretInfo; /// Password or key vault secret for secret auth. [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretInfoBase SecretInfo { get => (this._secretInfo = this._secretInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.SecretInfoBase()); set => this._secretInfo = value; } + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretInfoBase SecretInfo { get => (this._secretInfo = this._secretInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.SecretInfoBase()); set => this._secretInfo = value; } /// Creates an new instance. public SecretAuthInfo() @@ -58,7 +58,7 @@ public SecretAuthInfo() /// The authentication info when authType is secret public partial interface ISecretAuthInfo : Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBase + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase { /// Username or account name for secret auth. [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( @@ -74,18 +74,18 @@ public partial interface ISecretAuthInfo : ReadOnly = false, Description = @"Password or key vault secret for secret auth.", SerializedName = @"secretInfo", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretInfoBase),typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValueSecretInfo),typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IKeyVaultSecretReferenceSecretInfo),typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IKeyVaultSecretUriSecretInfo) })] - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretInfoBase SecretInfo { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretInfoBase),typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValueSecretInfo),typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IKeyVaultSecretReferenceSecretInfo),typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IKeyVaultSecretUriSecretInfo) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretInfoBase SecretInfo { get; set; } } /// The authentication info when authType is secret internal partial interface ISecretAuthInfoInternal : - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBaseInternal + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBaseInternal { /// Username or account name for secret auth. string Name { get; set; } /// Password or key vault secret for secret auth. - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretInfoBase SecretInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretInfoBase SecretInfo { get; set; } } } \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/SecretAuthInfo.json.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/SecretAuthInfo.json.cs similarity index 94% rename from src/ServiceLinker/generated/api/Models/Api20220501/SecretAuthInfo.json.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/SecretAuthInfo.json.cs index 1c1b8958eaf3..16b32f4cd8e6 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/SecretAuthInfo.json.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/SecretAuthInfo.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class SecretAuthInfo partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretAuthInfo. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretAuthInfo. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretAuthInfo. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretAuthInfo. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretAuthInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretAuthInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json ? new SecretAuthInfo(json) : null; } @@ -77,9 +77,9 @@ internal SecretAuthInfo(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime { return; } - __authInfoBase = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.AuthInfoBase(json); + __authInfoBase = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.AuthInfoBase(json); {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} - {_secretInfo = If( json?.PropertyT("secretInfo"), out var __jsonSecretInfo) ? Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.SecretInfoBase.FromJson(__jsonSecretInfo) : SecretInfo;} + {_secretInfo = If( json?.PropertyT("secretInfo"), out var __jsonSecretInfo) ? Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.SecretInfoBase.FromJson(__jsonSecretInfo) : SecretInfo;} AfterFromJson(json); } diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/SecretInfoBase.PowerShell.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/SecretInfoBase.PowerShell.cs similarity index 78% rename from src/ServiceLinker/generated/api/Models/Api20220501/SecretInfoBase.PowerShell.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/SecretInfoBase.PowerShell.cs index cc957a6bfb34..319e4c9f469c 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/SecretInfoBase.PowerShell.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/SecretInfoBase.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class SecretInfoBase /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class SecretInfoBase /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,27 +55,29 @@ public partial class SecretInfoBase partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretInfoBase DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretInfoBase DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new SecretInfoBase(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretInfoBase DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretInfoBase DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new SecretInfoBase(content); } @@ -83,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api2022050 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretInfoBase FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretInfoBase FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -101,13 +105,13 @@ internal SecretInfoBase(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("SecretType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretInfoBaseInternal)this).SecretType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.SecretType) content.GetValueForProperty("SecretType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretInfoBaseInternal)this).SecretType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.SecretType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretInfoBaseInternal)this).SecretType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.SecretType) content.GetValueForProperty("SecretType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretInfoBaseInternal)this).SecretType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.SecretType.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -122,7 +126,7 @@ internal SecretInfoBase(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("SecretType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretInfoBaseInternal)this).SecretType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.SecretType) content.GetValueForProperty("SecretType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretInfoBaseInternal)this).SecretType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.SecretType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretInfoBaseInternal)this).SecretType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.SecretType) content.GetValueForProperty("SecretType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretInfoBaseInternal)this).SecretType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.SecretType.CreateFrom); } AfterDeserializePSObject(content); } diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/SecretInfoBase.TypeConverter.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/SecretInfoBase.TypeConverter.cs similarity index 82% rename from src/ServiceLinker/generated/api/Models/Api20220501/SecretInfoBase.TypeConverter.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/SecretInfoBase.TypeConverter.cs index 862095dad4a4..a46fcb90009a 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/SecretInfoBase.TypeConverter.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/SecretInfoBase.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; @@ -14,19 +14,20 @@ public partial class SecretInfoBaseTypeConverter : global::System.Management.Aut { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the . + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -74,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -98,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretInfoBase ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretInfoBase ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretInfoBase).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretInfoBase).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/SecretInfoBase.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/SecretInfoBase.cs similarity index 95% rename from src/ServiceLinker/generated/api/Models/Api20220501/SecretInfoBase.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/SecretInfoBase.cs index 2c27576d6d5e..418da5340298 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/SecretInfoBase.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/SecretInfoBase.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; /// The secret info public partial class SecretInfoBase : - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretInfoBase, - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretInfoBaseInternal + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretInfoBase, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretInfoBaseInternal { /// Backing field for property. diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/SecretInfoBase.json.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/SecretInfoBase.json.cs similarity index 96% rename from src/ServiceLinker/generated/api/Models/Api20220501/SecretInfoBase.json.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/SecretInfoBase.json.cs index ce7b82a2af26..ffc8ddb9d301 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/SecretInfoBase.json.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/SecretInfoBase.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; @@ -54,15 +54,15 @@ public partial class SecretInfoBase partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretInfoBase. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretInfoBase interface is polymorphic, + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretInfoBase. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretInfoBase interface is polymorphic, /// and the precise model class that will get deserialized is determined at runtime based on the payload. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretInfoBase. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretInfoBase. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretInfoBase FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretInfoBase FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json)) { diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/SecretStore.PowerShell.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/SecretStore.PowerShell.cs similarity index 73% rename from src/ServiceLinker/generated/api/Models/Api20220501/SecretStore.PowerShell.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/SecretStore.PowerShell.cs index 289d5ccd03f2..4cd0b645e466 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/SecretStore.PowerShell.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/SecretStore.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class SecretStore /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class SecretStore /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,27 +55,27 @@ public partial class SecretStore partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretStore DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretStore DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new SecretStore(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretStore DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretStore DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new SecretStore(content); } @@ -83,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api2022050 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretStore FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretStore FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -101,13 +103,17 @@ internal SecretStore(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("KeyVaultId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretStoreInternal)this).KeyVaultId = (string) content.GetValueForProperty("KeyVaultId",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretStoreInternal)this).KeyVaultId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretStoreInternal)this).KeyVaultId = (string) content.GetValueForProperty("KeyVaultId",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretStoreInternal)this).KeyVaultId, global::System.Convert.ToString); + } + if (content.Contains("KeyVaultSecretName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretStoreInternal)this).KeyVaultSecretName = (string) content.GetValueForProperty("KeyVaultSecretName",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretStoreInternal)this).KeyVaultSecretName, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -122,7 +128,11 @@ internal SecretStore(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("KeyVaultId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretStoreInternal)this).KeyVaultId = (string) content.GetValueForProperty("KeyVaultId",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretStoreInternal)this).KeyVaultId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretStoreInternal)this).KeyVaultId = (string) content.GetValueForProperty("KeyVaultId",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretStoreInternal)this).KeyVaultId, global::System.Convert.ToString); + } + if (content.Contains("KeyVaultSecretName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretStoreInternal)this).KeyVaultSecretName = (string) content.GetValueForProperty("KeyVaultSecretName",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretStoreInternal)this).KeyVaultSecretName, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/SecretStore.TypeConverter.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/SecretStore.TypeConverter.cs similarity index 82% rename from src/ServiceLinker/generated/api/Models/Api20220501/SecretStore.TypeConverter.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/SecretStore.TypeConverter.cs index e879bf42c7f0..bf6e128b000f 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/SecretStore.TypeConverter.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/SecretStore.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; @@ -14,19 +14,20 @@ public partial class SecretStoreTypeConverter : global::System.Management.Automa { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the . + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -74,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -98,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretStore ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretStore ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretStore).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretStore).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/SecretStore.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/SecretStore.cs similarity index 62% rename from src/ServiceLinker/generated/api/Models/Api20220501/SecretStore.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/SecretStore.cs index 3ced8cb4d384..9e4908efb48b 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/SecretStore.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/SecretStore.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; /// An option to store secret value in secure place public partial class SecretStore : - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretStore, - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretStoreInternal + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretStore, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretStoreInternal { /// Backing field for property. @@ -20,6 +20,13 @@ public partial class SecretStore : [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] public string KeyVaultId { get => this._keyVaultId; set => this._keyVaultId = value; } + /// Backing field for property. + private string _keyVaultSecretName; + + /// The key vault secret name to store secret, only valid when storing one secret + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] + public string KeyVaultSecretName { get => this._keyVaultSecretName; set => this._keyVaultSecretName = value; } + /// Creates an new instance. public SecretStore() { @@ -38,6 +45,14 @@ public partial interface ISecretStore : SerializedName = @"keyVaultId", PossibleTypes = new [] { typeof(string) })] string KeyVaultId { get; set; } + /// The key vault secret name to store secret, only valid when storing one secret + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The key vault secret name to store secret, only valid when storing one secret", + SerializedName = @"keyVaultSecretName", + PossibleTypes = new [] { typeof(string) })] + string KeyVaultSecretName { get; set; } } /// An option to store secret value in secure place @@ -46,6 +61,8 @@ internal partial interface ISecretStoreInternal { /// The key vault id to store secret string KeyVaultId { get; set; } + /// The key vault secret name to store secret, only valid when storing one secret + string KeyVaultSecretName { get; set; } } } \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/SecretStore.json.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/SecretStore.json.cs similarity index 89% rename from src/ServiceLinker/generated/api/Models/Api20220501/SecretStore.json.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/SecretStore.json.cs index 9c1fab32c862..6bec08d41755 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/SecretStore.json.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/SecretStore.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class SecretStore partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretStore. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretStore. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretStore. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretStore. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretStore FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretStore FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json ? new SecretStore(json) : null; } @@ -78,6 +78,7 @@ internal SecretStore(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Js return; } {_keyVaultId = If( json?.PropertyT("keyVaultId"), out var __jsonKeyVaultId) ? (string)__jsonKeyVaultId : (string)KeyVaultId;} + {_keyVaultSecretName = If( json?.PropertyT("keyVaultSecretName"), out var __jsonKeyVaultSecretName) ? (string)__jsonKeyVaultSecretName : (string)KeyVaultSecretName;} AfterFromJson(json); } @@ -101,6 +102,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode To return container; } AddIf( null != (((object)this._keyVaultId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonString(this._keyVaultId.ToString()) : null, "keyVaultId" ,container.Add ); + AddIf( null != (((object)this._keyVaultSecretName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonString(this._keyVaultSecretName.ToString()) : null, "keyVaultSecretName" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/src/ServiceLinker/generated/api/Models/Api20/Resource.PowerShell.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/SelfHostedServer.PowerShell.cs similarity index 64% rename from src/ServiceLinker/generated/api/Models/Api20/Resource.PowerShell.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/SelfHostedServer.PowerShell.cs index 733c72197940..1ec63404a249 100644 --- a/src/ServiceLinker/generated/api/Models/Api20/Resource.PowerShell.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/SelfHostedServer.PowerShell.cs @@ -3,15 +3,13 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; - /// - /// Common fields that are returned in the response for all Azure Resource Manager resources - /// - [System.ComponentModel.TypeConverter(typeof(ResourceTypeConverter))] - public partial class Resource + /// The service properties when target service type is SelfHostedServer + [System.ComponentModel.TypeConverter(typeof(SelfHostedServerTypeConverter))] + public partial class SelfHostedServer { /// @@ -33,7 +31,8 @@ public partial class Resource /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -45,7 +44,8 @@ public partial class Resource /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -55,44 +55,46 @@ public partial class Resource partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISelfHostedServer DeserializeFromDictionary(global::System.Collections.IDictionary content) { - return new Resource(content); + return new SelfHostedServer(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISelfHostedServer DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { - return new Resource(content); + return new SelfHostedServer(content); } /// - /// Creates a new instance of , deserializing the content from a json string. + /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISelfHostedServer FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. - internal Resource(global::System.Collections.IDictionary content) + internal SelfHostedServer(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); @@ -101,27 +103,23 @@ internal Resource(global::System.Collections.IDictionary content) return; } // actually deserialize - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) + if (content.Contains("Endpoint")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISelfHostedServerInternal)this).Endpoint = (string) content.GetValueForProperty("Endpoint",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISelfHostedServerInternal)this).Endpoint, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBaseInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.TargetServiceType) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBaseInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.TargetServiceType.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. - internal Resource(global::System.Management.Automation.PSObject content) + internal SelfHostedServer(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); @@ -130,17 +128,13 @@ internal Resource(global::System.Management.Automation.PSObject content) return; } // actually deserialize - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) + if (content.Contains("Endpoint")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISelfHostedServerInternal)this).Endpoint = (string) content.GetValueForProperty("Endpoint",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISelfHostedServerInternal)this).Endpoint, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBaseInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.TargetServiceType) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBaseInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.TargetServiceType.CreateFrom); } AfterDeserializePSObject(content); } @@ -150,9 +144,9 @@ internal Resource(global::System.Management.Automation.PSObject content) /// a containing this model serialized to JSON text. public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SerializationMode.IncludeAll)?.ToString(); } - /// Common fields that are returned in the response for all Azure Resource Manager resources - [System.ComponentModel.TypeConverter(typeof(ResourceTypeConverter))] - public partial interface IResource + /// The service properties when target service type is SelfHostedServer + [System.ComponentModel.TypeConverter(typeof(SelfHostedServerTypeConverter))] + public partial interface ISelfHostedServer { diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/SelfHostedServer.TypeConverter.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/SelfHostedServer.TypeConverter.cs new file mode 100644 index 000000000000..084a5b7c8c1f --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/SelfHostedServer.TypeConverter.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class SelfHostedServerTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISelfHostedServer ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISelfHostedServer).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return SelfHostedServer.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return SelfHostedServer.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return SelfHostedServer.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/SelfHostedServer.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/SelfHostedServer.cs new file mode 100644 index 000000000000..0256bcbc3246 --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/SelfHostedServer.cs @@ -0,0 +1,74 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; + + /// The service properties when target service type is SelfHostedServer + public partial class SelfHostedServer : + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISelfHostedServer, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISelfHostedServerInternal, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase __targetServiceBase = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.TargetServiceBase(); + + /// Backing field for property. + private string _endpoint; + + /// The endpoint of service. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] + public string Endpoint { get => this._endpoint; set => this._endpoint = value; } + + /// The target service type. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.TargetServiceType Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBaseInternal)__targetServiceBase).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBaseInternal)__targetServiceBase).Type = value ; } + + /// Creates an new instance. + public SelfHostedServer() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__targetServiceBase), __targetServiceBase); + await eventListener.AssertObjectIsValid(nameof(__targetServiceBase), __targetServiceBase); + } + } + /// The service properties when target service type is SelfHostedServer + public partial interface ISelfHostedServer : + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase + { + /// The endpoint of service. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The endpoint of service.", + SerializedName = @"endpoint", + PossibleTypes = new [] { typeof(string) })] + string Endpoint { get; set; } + + } + /// The service properties when target service type is SelfHostedServer + internal partial interface ISelfHostedServerInternal : + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBaseInternal + { + /// The endpoint of service. + string Endpoint { get; set; } + + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/SelfHostedServer.json.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/SelfHostedServer.json.cs new file mode 100644 index 000000000000..e50845ae655d --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/SelfHostedServer.json.cs @@ -0,0 +1,110 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; + + /// The service properties when target service type is SelfHostedServer + public partial class SelfHostedServer + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISelfHostedServer. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISelfHostedServer. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISelfHostedServer FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json ? new SelfHostedServer(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject instance to deserialize from. + internal SelfHostedServer(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __targetServiceBase = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.TargetServiceBase(json); + {_endpoint = If( json?.PropertyT("endpoint"), out var __jsonEndpoint) ? (string)__jsonEndpoint : (string)Endpoint;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + __targetServiceBase?.ToJson(container, serializationMode); + AddIf( null != (((object)this._endpoint)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonString(this._endpoint.ToString()) : null, "endpoint" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/ServicePrincipalCertificateAuthInfo.PowerShell.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ServicePrincipalCertificateAuthInfo.PowerShell.cs similarity index 56% rename from src/ServiceLinker/generated/api/Models/Api20220501/ServicePrincipalCertificateAuthInfo.PowerShell.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/ServicePrincipalCertificateAuthInfo.PowerShell.cs index 846c06d3702c..662e55e09bb0 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/ServicePrincipalCertificateAuthInfo.PowerShell.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ServicePrincipalCertificateAuthInfo.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class ServicePrincipalCertificateAuthInfo /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class ServicePrincipalCertificateAuthInfo /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,29 +55,29 @@ public partial class ServicePrincipalCertificateAuthInfo partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IServicePrincipalCertificateAuthInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IServicePrincipalCertificateAuthInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ServicePrincipalCertificateAuthInfo(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IServicePrincipalCertificateAuthInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IServicePrincipalCertificateAuthInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ServicePrincipalCertificateAuthInfo(content); } @@ -87,10 +89,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api2022050 /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IServicePrincipalCertificateAuthInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IServicePrincipalCertificateAuthInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -105,25 +107,33 @@ internal ServicePrincipalCertificateAuthInfo(global::System.Collections.IDiction // actually deserialize if (content.Contains("ClientId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IServicePrincipalCertificateAuthInfoInternal)this).ClientId = (string) content.GetValueForProperty("ClientId",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IServicePrincipalCertificateAuthInfoInternal)this).ClientId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IServicePrincipalCertificateAuthInfoInternal)this).ClientId = (string) content.GetValueForProperty("ClientId",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IServicePrincipalCertificateAuthInfoInternal)this).ClientId, global::System.Convert.ToString); } if (content.Contains("PrincipalId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IServicePrincipalCertificateAuthInfoInternal)this).PrincipalId = (string) content.GetValueForProperty("PrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IServicePrincipalCertificateAuthInfoInternal)this).PrincipalId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IServicePrincipalCertificateAuthInfoInternal)this).PrincipalId = (string) content.GetValueForProperty("PrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IServicePrincipalCertificateAuthInfoInternal)this).PrincipalId, global::System.Convert.ToString); } if (content.Contains("Certificate")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IServicePrincipalCertificateAuthInfoInternal)this).Certificate = (string) content.GetValueForProperty("Certificate",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IServicePrincipalCertificateAuthInfoInternal)this).Certificate, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IServicePrincipalCertificateAuthInfoInternal)this).Certificate = (string) content.GetValueForProperty("Certificate",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IServicePrincipalCertificateAuthInfoInternal)this).Certificate, global::System.Convert.ToString); + } + if (content.Contains("DeleteOrUpdateBehavior")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IServicePrincipalCertificateAuthInfoInternal)this).DeleteOrUpdateBehavior = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior?) content.GetValueForProperty("DeleteOrUpdateBehavior",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IServicePrincipalCertificateAuthInfoInternal)this).DeleteOrUpdateBehavior, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior.CreateFrom); + } + if (content.Contains("Role")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IServicePrincipalCertificateAuthInfoInternal)this).Role = (string[]) content.GetValueForProperty("Role",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IServicePrincipalCertificateAuthInfoInternal)this).Role, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("AuthType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBaseInternal)this).AuthType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType) content.GetValueForProperty("AuthType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBaseInternal)this).AuthType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBaseInternal)this).AuthType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType) content.GetValueForProperty("AuthType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBaseInternal)this).AuthType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -138,19 +148,27 @@ internal ServicePrincipalCertificateAuthInfo(global::System.Management.Automatio // actually deserialize if (content.Contains("ClientId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IServicePrincipalCertificateAuthInfoInternal)this).ClientId = (string) content.GetValueForProperty("ClientId",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IServicePrincipalCertificateAuthInfoInternal)this).ClientId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IServicePrincipalCertificateAuthInfoInternal)this).ClientId = (string) content.GetValueForProperty("ClientId",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IServicePrincipalCertificateAuthInfoInternal)this).ClientId, global::System.Convert.ToString); } if (content.Contains("PrincipalId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IServicePrincipalCertificateAuthInfoInternal)this).PrincipalId = (string) content.GetValueForProperty("PrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IServicePrincipalCertificateAuthInfoInternal)this).PrincipalId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IServicePrincipalCertificateAuthInfoInternal)this).PrincipalId = (string) content.GetValueForProperty("PrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IServicePrincipalCertificateAuthInfoInternal)this).PrincipalId, global::System.Convert.ToString); } if (content.Contains("Certificate")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IServicePrincipalCertificateAuthInfoInternal)this).Certificate = (string) content.GetValueForProperty("Certificate",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IServicePrincipalCertificateAuthInfoInternal)this).Certificate, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IServicePrincipalCertificateAuthInfoInternal)this).Certificate = (string) content.GetValueForProperty("Certificate",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IServicePrincipalCertificateAuthInfoInternal)this).Certificate, global::System.Convert.ToString); + } + if (content.Contains("DeleteOrUpdateBehavior")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IServicePrincipalCertificateAuthInfoInternal)this).DeleteOrUpdateBehavior = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior?) content.GetValueForProperty("DeleteOrUpdateBehavior",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IServicePrincipalCertificateAuthInfoInternal)this).DeleteOrUpdateBehavior, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior.CreateFrom); + } + if (content.Contains("Role")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IServicePrincipalCertificateAuthInfoInternal)this).Role = (string[]) content.GetValueForProperty("Role",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IServicePrincipalCertificateAuthInfoInternal)this).Role, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("AuthType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBaseInternal)this).AuthType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType) content.GetValueForProperty("AuthType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBaseInternal)this).AuthType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBaseInternal)this).AuthType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType) content.GetValueForProperty("AuthType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBaseInternal)this).AuthType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType.CreateFrom); } AfterDeserializePSObject(content); } diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/ServicePrincipalCertificateAuthInfo.TypeConverter.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ServicePrincipalCertificateAuthInfo.TypeConverter.cs similarity index 81% rename from src/ServiceLinker/generated/api/Models/Api20220501/ServicePrincipalCertificateAuthInfo.TypeConverter.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/ServicePrincipalCertificateAuthInfo.TypeConverter.cs index 6afdffe93dd0..302ca2e5b084 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/ServicePrincipalCertificateAuthInfo.TypeConverter.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ServicePrincipalCertificateAuthInfo.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class ServicePrincipalCertificateAuthInfoTypeConverter : global:: { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the . + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -76,19 +76,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -100,21 +101,21 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IServicePrincipalCertificateAuthInfo ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IServicePrincipalCertificateAuthInfo ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IServicePrincipalCertificateAuthInfo).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IServicePrincipalCertificateAuthInfo).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/ServicePrincipalCertificateAuthInfo.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ServicePrincipalCertificateAuthInfo.cs similarity index 62% rename from src/ServiceLinker/generated/api/Models/Api20220501/ServicePrincipalCertificateAuthInfo.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/ServicePrincipalCertificateAuthInfo.cs index 65cbc0e2f416..471f3767d7a7 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/ServicePrincipalCertificateAuthInfo.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ServicePrincipalCertificateAuthInfo.cs @@ -3,25 +3,25 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; /// The authentication info when authType is servicePrincipal certificate public partial class ServicePrincipalCertificateAuthInfo : - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IServicePrincipalCertificateAuthInfo, - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IServicePrincipalCertificateAuthInfoInternal, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IServicePrincipalCertificateAuthInfo, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IServicePrincipalCertificateAuthInfoInternal, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBase __authInfoBase = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.AuthInfoBase(); + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase __authInfoBase = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.AuthInfoBase(); /// The authentication type. [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType AuthType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBaseInternal)__authInfoBase).AuthType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBaseInternal)__authInfoBase).AuthType = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType AuthType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBaseInternal)__authInfoBase).AuthType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBaseInternal)__authInfoBase).AuthType = value ; } /// Backing field for property. private string _certificate; @@ -37,6 +37,15 @@ public partial class ServicePrincipalCertificateAuthInfo : [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] public string ClientId { get => this._clientId; set => this._clientId = value; } + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior? _deleteOrUpdateBehavior; + + /// + /// Indicates whether to clean up previous operation when Linker is updating or deleting + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior? DeleteOrUpdateBehavior { get => this._deleteOrUpdateBehavior; set => this._deleteOrUpdateBehavior = value; } + /// Backing field for property. private string _principalId; @@ -44,6 +53,13 @@ public partial class ServicePrincipalCertificateAuthInfo : [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] public string PrincipalId { get => this._principalId; set => this._principalId = value; } + /// Backing field for property. + private string[] _role; + + /// Optional, this value specifies the Azure roles to be assigned. Automatically + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] + public string[] Role { get => this._role; set => this._role = value; } + /// Creates an new instance. public ServicePrincipalCertificateAuthInfo() { @@ -65,7 +81,7 @@ public ServicePrincipalCertificateAuthInfo() /// The authentication info when authType is servicePrincipal certificate public partial interface IServicePrincipalCertificateAuthInfo : Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBase + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase { /// ServicePrincipal certificate for servicePrincipal auth. [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( @@ -83,6 +99,16 @@ public partial interface IServicePrincipalCertificateAuthInfo : SerializedName = @"clientId", PossibleTypes = new [] { typeof(string) })] string ClientId { get; set; } + /// + /// Indicates whether to clean up previous operation when Linker is updating or deleting + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Indicates whether to clean up previous operation when Linker is updating or deleting", + SerializedName = @"deleteOrUpdateBehavior", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior? DeleteOrUpdateBehavior { get; set; } /// Principal Id for servicePrincipal auth. [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( Required = true, @@ -91,18 +117,32 @@ public partial interface IServicePrincipalCertificateAuthInfo : SerializedName = @"principalId", PossibleTypes = new [] { typeof(string) })] string PrincipalId { get; set; } + /// Optional, this value specifies the Azure roles to be assigned. Automatically + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Optional, this value specifies the Azure roles to be assigned. Automatically ", + SerializedName = @"roles", + PossibleTypes = new [] { typeof(string) })] + string[] Role { get; set; } } /// The authentication info when authType is servicePrincipal certificate internal partial interface IServicePrincipalCertificateAuthInfoInternal : - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBaseInternal + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBaseInternal { /// ServicePrincipal certificate for servicePrincipal auth. string Certificate { get; set; } /// Application clientId for servicePrincipal auth. string ClientId { get; set; } + /// + /// Indicates whether to clean up previous operation when Linker is updating or deleting + /// + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior? DeleteOrUpdateBehavior { get; set; } /// Principal Id for servicePrincipal auth. string PrincipalId { get; set; } + /// Optional, this value specifies the Azure roles to be assigned. Automatically + string[] Role { get; set; } } } \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/ServicePrincipalCertificateAuthInfo.json.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ServicePrincipalCertificateAuthInfo.json.cs similarity index 79% rename from src/ServiceLinker/generated/api/Models/Api20220501/ServicePrincipalCertificateAuthInfo.json.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/ServicePrincipalCertificateAuthInfo.json.cs index 93ca0a829269..95442d2d71db 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/ServicePrincipalCertificateAuthInfo.json.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ServicePrincipalCertificateAuthInfo.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ServicePrincipalCertificateAuthInfo partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IServicePrincipalCertificateAuthInfo. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IServicePrincipalCertificateAuthInfo. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IServicePrincipalCertificateAuthInfo. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IServicePrincipalCertificateAuthInfo. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IServicePrincipalCertificateAuthInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IServicePrincipalCertificateAuthInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json ? new ServicePrincipalCertificateAuthInfo(json) : null; } @@ -77,10 +77,12 @@ internal ServicePrincipalCertificateAuthInfo(Microsoft.Azure.PowerShell.Cmdlets. { return; } - __authInfoBase = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.AuthInfoBase(json); + __authInfoBase = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.AuthInfoBase(json); {_clientId = If( json?.PropertyT("clientId"), out var __jsonClientId) ? (string)__jsonClientId : (string)ClientId;} {_principalId = If( json?.PropertyT("principalId"), out var __jsonPrincipalId) ? (string)__jsonPrincipalId : (string)PrincipalId;} {_certificate = If( json?.PropertyT("certificate"), out var __jsonCertificate) ? (string)__jsonCertificate : (string)Certificate;} + {_deleteOrUpdateBehavior = If( json?.PropertyT("deleteOrUpdateBehavior"), out var __jsonDeleteOrUpdateBehavior) ? (string)__jsonDeleteOrUpdateBehavior : (string)DeleteOrUpdateBehavior;} + {_role = If( json?.PropertyT("roles"), out var __jsonRoles) ? If( __jsonRoles as Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : Role;} AfterFromJson(json); } @@ -108,6 +110,16 @@ public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode To AddIf( null != (((object)this._clientId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonString(this._clientId.ToString()) : null, "clientId" ,container.Add ); AddIf( null != (((object)this._principalId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonString(this._principalId.ToString()) : null, "principalId" ,container.Add ); AddIf( null != (((object)this._certificate)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonString(this._certificate.ToString()) : null, "certificate" ,container.Add ); + AddIf( null != (((object)this._deleteOrUpdateBehavior)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonString(this._deleteOrUpdateBehavior.ToString()) : null, "deleteOrUpdateBehavior" ,container.Add ); + if (null != this._role) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.XNodeArray(); + foreach( var __x in this._role ) + { + AddIf(null != (((object)__x)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonString(__x.ToString()) : null ,__w.Add); + } + container.Add("roles",__w); + } AfterToJson(ref container); return container; } diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/ServicePrincipalSecretAuthInfo.PowerShell.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ServicePrincipalSecretAuthInfo.PowerShell.cs new file mode 100644 index 000000000000..7c303593cb67 --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ServicePrincipalSecretAuthInfo.PowerShell.cs @@ -0,0 +1,194 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; + + /// The authentication info when authType is servicePrincipal secret + [System.ComponentModel.TypeConverter(typeof(ServicePrincipalSecretAuthInfoTypeConverter))] + public partial class ServicePrincipalSecretAuthInfo + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IServicePrincipalSecretAuthInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ServicePrincipalSecretAuthInfo(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IServicePrincipalSecretAuthInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ServicePrincipalSecretAuthInfo(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IServicePrincipalSecretAuthInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ServicePrincipalSecretAuthInfo(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ClientId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IServicePrincipalSecretAuthInfoInternal)this).ClientId = (string) content.GetValueForProperty("ClientId",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IServicePrincipalSecretAuthInfoInternal)this).ClientId, global::System.Convert.ToString); + } + if (content.Contains("PrincipalId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IServicePrincipalSecretAuthInfoInternal)this).PrincipalId = (string) content.GetValueForProperty("PrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IServicePrincipalSecretAuthInfoInternal)this).PrincipalId, global::System.Convert.ToString); + } + if (content.Contains("Secret")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IServicePrincipalSecretAuthInfoInternal)this).Secret = (string) content.GetValueForProperty("Secret",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IServicePrincipalSecretAuthInfoInternal)this).Secret, global::System.Convert.ToString); + } + if (content.Contains("DeleteOrUpdateBehavior")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IServicePrincipalSecretAuthInfoInternal)this).DeleteOrUpdateBehavior = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior?) content.GetValueForProperty("DeleteOrUpdateBehavior",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IServicePrincipalSecretAuthInfoInternal)this).DeleteOrUpdateBehavior, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior.CreateFrom); + } + if (content.Contains("Role")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IServicePrincipalSecretAuthInfoInternal)this).Role = (string[]) content.GetValueForProperty("Role",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IServicePrincipalSecretAuthInfoInternal)this).Role, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("AuthType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBaseInternal)this).AuthType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType) content.GetValueForProperty("AuthType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBaseInternal)this).AuthType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType.CreateFrom); + } + if (content.Contains("UserName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDatabaseAadAuthInfoInternal)this).UserName = (string) content.GetValueForProperty("UserName",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDatabaseAadAuthInfoInternal)this).UserName, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ServicePrincipalSecretAuthInfo(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ClientId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IServicePrincipalSecretAuthInfoInternal)this).ClientId = (string) content.GetValueForProperty("ClientId",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IServicePrincipalSecretAuthInfoInternal)this).ClientId, global::System.Convert.ToString); + } + if (content.Contains("PrincipalId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IServicePrincipalSecretAuthInfoInternal)this).PrincipalId = (string) content.GetValueForProperty("PrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IServicePrincipalSecretAuthInfoInternal)this).PrincipalId, global::System.Convert.ToString); + } + if (content.Contains("Secret")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IServicePrincipalSecretAuthInfoInternal)this).Secret = (string) content.GetValueForProperty("Secret",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IServicePrincipalSecretAuthInfoInternal)this).Secret, global::System.Convert.ToString); + } + if (content.Contains("DeleteOrUpdateBehavior")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IServicePrincipalSecretAuthInfoInternal)this).DeleteOrUpdateBehavior = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior?) content.GetValueForProperty("DeleteOrUpdateBehavior",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IServicePrincipalSecretAuthInfoInternal)this).DeleteOrUpdateBehavior, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior.CreateFrom); + } + if (content.Contains("Role")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IServicePrincipalSecretAuthInfoInternal)this).Role = (string[]) content.GetValueForProperty("Role",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IServicePrincipalSecretAuthInfoInternal)this).Role, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("AuthType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBaseInternal)this).AuthType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType) content.GetValueForProperty("AuthType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBaseInternal)this).AuthType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType.CreateFrom); + } + if (content.Contains("UserName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDatabaseAadAuthInfoInternal)this).UserName = (string) content.GetValueForProperty("UserName",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDatabaseAadAuthInfoInternal)this).UserName, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The authentication info when authType is servicePrincipal secret + [System.ComponentModel.TypeConverter(typeof(ServicePrincipalSecretAuthInfoTypeConverter))] + public partial interface IServicePrincipalSecretAuthInfo + + { + + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/ServicePrincipalSecretAuthInfo.TypeConverter.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ServicePrincipalSecretAuthInfo.TypeConverter.cs similarity index 81% rename from src/ServiceLinker/generated/api/Models/Api20220501/ServicePrincipalSecretAuthInfo.TypeConverter.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/ServicePrincipalSecretAuthInfo.TypeConverter.cs index f17e93c60510..f5637326022e 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/ServicePrincipalSecretAuthInfo.TypeConverter.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ServicePrincipalSecretAuthInfo.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class ServicePrincipalSecretAuthInfoTypeConverter : global::Syste { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the . + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,21 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IServicePrincipalSecretAuthInfo ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IServicePrincipalSecretAuthInfo ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IServicePrincipalSecretAuthInfo).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IServicePrincipalSecretAuthInfo).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/ServicePrincipalSecretAuthInfo.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ServicePrincipalSecretAuthInfo.cs similarity index 53% rename from src/ServiceLinker/generated/api/Models/Api20220501/ServicePrincipalSecretAuthInfo.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/ServicePrincipalSecretAuthInfo.cs index 6668eb78fc97..e47a95595ca3 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/ServicePrincipalSecretAuthInfo.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ServicePrincipalSecretAuthInfo.cs @@ -3,25 +3,31 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; /// The authentication info when authType is servicePrincipal secret public partial class ServicePrincipalSecretAuthInfo : - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IServicePrincipalSecretAuthInfo, - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IServicePrincipalSecretAuthInfoInternal, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IServicePrincipalSecretAuthInfo, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IServicePrincipalSecretAuthInfoInternal, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBase __authInfoBase = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.AuthInfoBase(); + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase __authInfoBase = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.AuthInfoBase(); + + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDatabaseAadAuthInfo __databaseAadAuthInfo = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DatabaseAadAuthInfo(); /// The authentication type. [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType AuthType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBaseInternal)__authInfoBase).AuthType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBaseInternal)__authInfoBase).AuthType = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType AuthType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBaseInternal)__authInfoBase).AuthType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBaseInternal)__authInfoBase).AuthType = value ; } /// Backing field for property. private string _clientId; @@ -30,6 +36,15 @@ public partial class ServicePrincipalSecretAuthInfo : [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] public string ClientId { get => this._clientId; set => this._clientId = value; } + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior? _deleteOrUpdateBehavior; + + /// + /// Indicates whether to clean up previous operation when Linker is updating or deleting + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior? DeleteOrUpdateBehavior { get => this._deleteOrUpdateBehavior; set => this._deleteOrUpdateBehavior = value; } + /// Backing field for property. private string _principalId; @@ -37,6 +52,13 @@ public partial class ServicePrincipalSecretAuthInfo : [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] public string PrincipalId { get => this._principalId; set => this._principalId = value; } + /// Backing field for property. + private string[] _role; + + /// Optional, this value specifies the Azure roles to be assigned. Automatically + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] + public string[] Role { get => this._role; set => this._role = value; } + /// Backing field for property. private string _secret; @@ -44,6 +66,10 @@ public partial class ServicePrincipalSecretAuthInfo : [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] public string Secret { get => this._secret; set => this._secret = value; } + /// Username created in the database which is mapped to a user in AAD. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] + public string UserName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDatabaseAadAuthInfoInternal)__databaseAadAuthInfo).UserName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDatabaseAadAuthInfoInternal)__databaseAadAuthInfo).UserName = value ?? null; } + /// Creates an new instance. public ServicePrincipalSecretAuthInfo() { @@ -60,12 +86,15 @@ public ServicePrincipalSecretAuthInfo() { await eventListener.AssertNotNull(nameof(__authInfoBase), __authInfoBase); await eventListener.AssertObjectIsValid(nameof(__authInfoBase), __authInfoBase); + await eventListener.AssertNotNull(nameof(__databaseAadAuthInfo), __databaseAadAuthInfo); + await eventListener.AssertObjectIsValid(nameof(__databaseAadAuthInfo), __databaseAadAuthInfo); } } /// The authentication info when authType is servicePrincipal secret public partial interface IServicePrincipalSecretAuthInfo : Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBase + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDatabaseAadAuthInfo { /// ServicePrincipal application clientId for servicePrincipal auth. [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( @@ -75,6 +104,16 @@ public partial interface IServicePrincipalSecretAuthInfo : SerializedName = @"clientId", PossibleTypes = new [] { typeof(string) })] string ClientId { get; set; } + /// + /// Indicates whether to clean up previous operation when Linker is updating or deleting + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Indicates whether to clean up previous operation when Linker is updating or deleting", + SerializedName = @"deleteOrUpdateBehavior", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior? DeleteOrUpdateBehavior { get; set; } /// Principal Id for servicePrincipal auth. [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( Required = true, @@ -83,6 +122,14 @@ public partial interface IServicePrincipalSecretAuthInfo : SerializedName = @"principalId", PossibleTypes = new [] { typeof(string) })] string PrincipalId { get; set; } + /// Optional, this value specifies the Azure roles to be assigned. Automatically + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Optional, this value specifies the Azure roles to be assigned. Automatically ", + SerializedName = @"roles", + PossibleTypes = new [] { typeof(string) })] + string[] Role { get; set; } /// Secret for servicePrincipal auth. [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( Required = true, @@ -95,12 +142,19 @@ public partial interface IServicePrincipalSecretAuthInfo : } /// The authentication info when authType is servicePrincipal secret internal partial interface IServicePrincipalSecretAuthInfoInternal : - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBaseInternal + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBaseInternal, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDatabaseAadAuthInfoInternal { /// ServicePrincipal application clientId for servicePrincipal auth. string ClientId { get; set; } + /// + /// Indicates whether to clean up previous operation when Linker is updating or deleting + /// + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior? DeleteOrUpdateBehavior { get; set; } /// Principal Id for servicePrincipal auth. string PrincipalId { get; set; } + /// Optional, this value specifies the Azure roles to be assigned. Automatically + string[] Role { get; set; } /// Secret for servicePrincipal auth. string Secret { get; set; } diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/ServicePrincipalSecretAuthInfo.json.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ServicePrincipalSecretAuthInfo.json.cs similarity index 78% rename from src/ServiceLinker/generated/api/Models/Api20220501/ServicePrincipalSecretAuthInfo.json.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/ServicePrincipalSecretAuthInfo.json.cs index f6ed4da49089..c0f8d2d92f16 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/ServicePrincipalSecretAuthInfo.json.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ServicePrincipalSecretAuthInfo.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ServicePrincipalSecretAuthInfo partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IServicePrincipalSecretAuthInfo. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IServicePrincipalSecretAuthInfo. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IServicePrincipalSecretAuthInfo. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IServicePrincipalSecretAuthInfo. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IServicePrincipalSecretAuthInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IServicePrincipalSecretAuthInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json ? new ServicePrincipalSecretAuthInfo(json) : null; } @@ -77,10 +77,13 @@ internal ServicePrincipalSecretAuthInfo(Microsoft.Azure.PowerShell.Cmdlets.Servi { return; } - __authInfoBase = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.AuthInfoBase(json); + __authInfoBase = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.AuthInfoBase(json); + __databaseAadAuthInfo = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DatabaseAadAuthInfo(json); {_clientId = If( json?.PropertyT("clientId"), out var __jsonClientId) ? (string)__jsonClientId : (string)ClientId;} {_principalId = If( json?.PropertyT("principalId"), out var __jsonPrincipalId) ? (string)__jsonPrincipalId : (string)PrincipalId;} {_secret = If( json?.PropertyT("secret"), out var __jsonSecret) ? (string)__jsonSecret : (string)Secret;} + {_deleteOrUpdateBehavior = If( json?.PropertyT("deleteOrUpdateBehavior"), out var __jsonDeleteOrUpdateBehavior) ? (string)__jsonDeleteOrUpdateBehavior : (string)DeleteOrUpdateBehavior;} + {_role = If( json?.PropertyT("roles"), out var __jsonRoles) ? If( __jsonRoles as Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : Role;} AfterFromJson(json); } @@ -104,9 +107,20 @@ public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode To return container; } __authInfoBase?.ToJson(container, serializationMode); + __databaseAadAuthInfo?.ToJson(container, serializationMode); AddIf( null != (((object)this._clientId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonString(this._clientId.ToString()) : null, "clientId" ,container.Add ); AddIf( null != (((object)this._principalId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonString(this._principalId.ToString()) : null, "principalId" ,container.Add ); AddIf( null != (((object)this._secret)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonString(this._secret.ToString()) : null, "secret" ,container.Add ); + AddIf( null != (((object)this._deleteOrUpdateBehavior)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonString(this._deleteOrUpdateBehavior.ToString()) : null, "deleteOrUpdateBehavior" ,container.Add ); + if (null != this._role) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.XNodeArray(); + foreach( var __x in this._role ) + { + AddIf(null != (((object)__x)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonString(__x.ToString()) : null ,__w.Add); + } + container.Add("roles",__w); + } AfterToJson(ref container); return container; } diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/SourceConfiguration.PowerShell.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/SourceConfiguration.PowerShell.cs similarity index 76% rename from src/ServiceLinker/generated/api/Models/Api20220501/SourceConfiguration.PowerShell.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/SourceConfiguration.PowerShell.cs index e2efb4b14569..c73a95d8fb31 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/SourceConfiguration.PowerShell.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/SourceConfiguration.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class SourceConfiguration /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class SourceConfiguration /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,27 +55,29 @@ public partial class SourceConfiguration partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISourceConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISourceConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new SourceConfiguration(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISourceConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISourceConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new SourceConfiguration(content); } @@ -83,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api2022050 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISourceConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISourceConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -101,17 +105,17 @@ internal SourceConfiguration(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISourceConfigurationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISourceConfigurationInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISourceConfigurationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISourceConfigurationInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISourceConfigurationInternal)this).Value = (string) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISourceConfigurationInternal)this).Value, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISourceConfigurationInternal)this).Value = (string) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISourceConfigurationInternal)this).Value, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -126,11 +130,11 @@ internal SourceConfiguration(global::System.Management.Automation.PSObject conte // actually deserialize if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISourceConfigurationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISourceConfigurationInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISourceConfigurationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISourceConfigurationInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISourceConfigurationInternal)this).Value = (string) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISourceConfigurationInternal)this).Value, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISourceConfigurationInternal)this).Value = (string) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISourceConfigurationInternal)this).Value, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/SourceConfiguration.TypeConverter.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/SourceConfiguration.TypeConverter.cs similarity index 81% rename from src/ServiceLinker/generated/api/Models/Api20220501/SourceConfiguration.TypeConverter.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/SourceConfiguration.TypeConverter.cs index b3104d04c670..e7c62e5bf48a 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/SourceConfiguration.TypeConverter.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/SourceConfiguration.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class SourceConfigurationTypeConverter : global::System.Managemen { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the . + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISourceConfiguration ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISourceConfiguration ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISourceConfiguration).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISourceConfiguration).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/SourceConfiguration.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/SourceConfiguration.cs similarity index 96% rename from src/ServiceLinker/generated/api/Models/Api20220501/SourceConfiguration.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/SourceConfiguration.cs index 463d3b5d4188..3a9f5c30549e 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/SourceConfiguration.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/SourceConfiguration.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; /// A configuration item for source resource public partial class SourceConfiguration : - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISourceConfiguration, - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISourceConfigurationInternal + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISourceConfiguration, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISourceConfigurationInternal { /// Backing field for property. diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/SourceConfiguration.json.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/SourceConfiguration.json.cs similarity index 96% rename from src/ServiceLinker/generated/api/Models/Api20220501/SourceConfiguration.json.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/SourceConfiguration.json.cs index 17f616478065..45fc761cf5bd 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/SourceConfiguration.json.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/SourceConfiguration.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class SourceConfiguration partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISourceConfiguration. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISourceConfiguration. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISourceConfiguration. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISourceConfiguration. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISourceConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISourceConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json ? new SourceConfiguration(json) : null; } diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/ServicePrincipalSecretAuthInfo.PowerShell.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/SystemAssignedIdentityAuthInfo.PowerShell.cs similarity index 55% rename from src/ServiceLinker/generated/api/Models/Api20220501/ServicePrincipalSecretAuthInfo.PowerShell.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/SystemAssignedIdentityAuthInfo.PowerShell.cs index d18efc78ecb5..b37c3ba580e2 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/ServicePrincipalSecretAuthInfo.PowerShell.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/SystemAssignedIdentityAuthInfo.PowerShell.cs @@ -3,13 +3,13 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; - /// The authentication info when authType is servicePrincipal secret - [System.ComponentModel.TypeConverter(typeof(ServicePrincipalSecretAuthInfoTypeConverter))] - public partial class ServicePrincipalSecretAuthInfo + /// The authentication info when authType is systemAssignedIdentity + [System.ComponentModel.TypeConverter(typeof(SystemAssignedIdentityAuthInfoTypeConverter))] + public partial class SystemAssignedIdentityAuthInfo { /// @@ -31,7 +31,8 @@ public partial class ServicePrincipalSecretAuthInfo /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class ServicePrincipalSecretAuthInfo /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,46 +55,46 @@ public partial class ServicePrincipalSecretAuthInfo partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IServicePrincipalSecretAuthInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISystemAssignedIdentityAuthInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) { - return new ServicePrincipalSecretAuthInfo(content); + return new SystemAssignedIdentityAuthInfo(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IServicePrincipalSecretAuthInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISystemAssignedIdentityAuthInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { - return new ServicePrincipalSecretAuthInfo(content); + return new SystemAssignedIdentityAuthInfo(content); } /// - /// Creates a new instance of , deserializing the content from a json string. + /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IServicePrincipalSecretAuthInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISystemAssignedIdentityAuthInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. - internal ServicePrincipalSecretAuthInfo(global::System.Collections.IDictionary content) + internal SystemAssignedIdentityAuthInfo(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); @@ -101,31 +103,31 @@ internal ServicePrincipalSecretAuthInfo(global::System.Collections.IDictionary c return; } // actually deserialize - if (content.Contains("ClientId")) + if (content.Contains("DeleteOrUpdateBehavior")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IServicePrincipalSecretAuthInfoInternal)this).ClientId = (string) content.GetValueForProperty("ClientId",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IServicePrincipalSecretAuthInfoInternal)this).ClientId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISystemAssignedIdentityAuthInfoInternal)this).DeleteOrUpdateBehavior = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior?) content.GetValueForProperty("DeleteOrUpdateBehavior",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISystemAssignedIdentityAuthInfoInternal)this).DeleteOrUpdateBehavior, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior.CreateFrom); } - if (content.Contains("PrincipalId")) + if (content.Contains("Role")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IServicePrincipalSecretAuthInfoInternal)this).PrincipalId = (string) content.GetValueForProperty("PrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IServicePrincipalSecretAuthInfoInternal)this).PrincipalId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISystemAssignedIdentityAuthInfoInternal)this).Role = (string[]) content.GetValueForProperty("Role",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISystemAssignedIdentityAuthInfoInternal)this).Role, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } - if (content.Contains("Secret")) + if (content.Contains("AuthType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IServicePrincipalSecretAuthInfoInternal)this).Secret = (string) content.GetValueForProperty("Secret",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IServicePrincipalSecretAuthInfoInternal)this).Secret, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBaseInternal)this).AuthType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType) content.GetValueForProperty("AuthType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBaseInternal)this).AuthType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType.CreateFrom); } - if (content.Contains("AuthType")) + if (content.Contains("UserName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBaseInternal)this).AuthType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType) content.GetValueForProperty("AuthType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBaseInternal)this).AuthType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDatabaseAadAuthInfoInternal)this).UserName = (string) content.GetValueForProperty("UserName",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDatabaseAadAuthInfoInternal)this).UserName, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. - internal ServicePrincipalSecretAuthInfo(global::System.Management.Automation.PSObject content) + internal SystemAssignedIdentityAuthInfo(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); @@ -134,21 +136,21 @@ internal ServicePrincipalSecretAuthInfo(global::System.Management.Automation.PSO return; } // actually deserialize - if (content.Contains("ClientId")) + if (content.Contains("DeleteOrUpdateBehavior")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IServicePrincipalSecretAuthInfoInternal)this).ClientId = (string) content.GetValueForProperty("ClientId",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IServicePrincipalSecretAuthInfoInternal)this).ClientId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISystemAssignedIdentityAuthInfoInternal)this).DeleteOrUpdateBehavior = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior?) content.GetValueForProperty("DeleteOrUpdateBehavior",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISystemAssignedIdentityAuthInfoInternal)this).DeleteOrUpdateBehavior, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior.CreateFrom); } - if (content.Contains("PrincipalId")) + if (content.Contains("Role")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IServicePrincipalSecretAuthInfoInternal)this).PrincipalId = (string) content.GetValueForProperty("PrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IServicePrincipalSecretAuthInfoInternal)this).PrincipalId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISystemAssignedIdentityAuthInfoInternal)this).Role = (string[]) content.GetValueForProperty("Role",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISystemAssignedIdentityAuthInfoInternal)this).Role, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } - if (content.Contains("Secret")) + if (content.Contains("AuthType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IServicePrincipalSecretAuthInfoInternal)this).Secret = (string) content.GetValueForProperty("Secret",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IServicePrincipalSecretAuthInfoInternal)this).Secret, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBaseInternal)this).AuthType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType) content.GetValueForProperty("AuthType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBaseInternal)this).AuthType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType.CreateFrom); } - if (content.Contains("AuthType")) + if (content.Contains("UserName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBaseInternal)this).AuthType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType) content.GetValueForProperty("AuthType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBaseInternal)this).AuthType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDatabaseAadAuthInfoInternal)this).UserName = (string) content.GetValueForProperty("UserName",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDatabaseAadAuthInfoInternal)this).UserName, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -158,9 +160,9 @@ internal ServicePrincipalSecretAuthInfo(global::System.Management.Automation.PSO /// a containing this model serialized to JSON text. public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SerializationMode.IncludeAll)?.ToString(); } - /// The authentication info when authType is servicePrincipal secret - [System.ComponentModel.TypeConverter(typeof(ServicePrincipalSecretAuthInfoTypeConverter))] - public partial interface IServicePrincipalSecretAuthInfo + /// The authentication info when authType is systemAssignedIdentity + [System.ComponentModel.TypeConverter(typeof(SystemAssignedIdentityAuthInfoTypeConverter))] + public partial interface ISystemAssignedIdentityAuthInfo { diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/SystemAssignedIdentityAuthInfo.TypeConverter.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/SystemAssignedIdentityAuthInfo.TypeConverter.cs similarity index 81% rename from src/ServiceLinker/generated/api/Models/Api20220501/SystemAssignedIdentityAuthInfo.TypeConverter.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/SystemAssignedIdentityAuthInfo.TypeConverter.cs index 8b8618ccf7fb..7d5ce33f5b4f 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/SystemAssignedIdentityAuthInfo.TypeConverter.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/SystemAssignedIdentityAuthInfo.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class SystemAssignedIdentityAuthInfoTypeConverter : global::Syste { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the . + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,21 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISystemAssignedIdentityAuthInfo ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISystemAssignedIdentityAuthInfo ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISystemAssignedIdentityAuthInfo).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISystemAssignedIdentityAuthInfo).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/SystemAssignedIdentityAuthInfo.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/SystemAssignedIdentityAuthInfo.cs new file mode 100644 index 000000000000..4fec753e4cfa --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/SystemAssignedIdentityAuthInfo.cs @@ -0,0 +1,111 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; + + /// The authentication info when authType is systemAssignedIdentity + public partial class SystemAssignedIdentityAuthInfo : + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISystemAssignedIdentityAuthInfo, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISystemAssignedIdentityAuthInfoInternal, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase __authInfoBase = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.AuthInfoBase(); + + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDatabaseAadAuthInfo __databaseAadAuthInfo = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DatabaseAadAuthInfo(); + + /// The authentication type. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType AuthType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBaseInternal)__authInfoBase).AuthType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBaseInternal)__authInfoBase).AuthType = value ; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior? _deleteOrUpdateBehavior; + + /// + /// Indicates whether to clean up previous operation when Linker is updating or deleting + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior? DeleteOrUpdateBehavior { get => this._deleteOrUpdateBehavior; set => this._deleteOrUpdateBehavior = value; } + + /// Backing field for property. + private string[] _role; + + /// Optional, this value specifies the Azure role to be assigned + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] + public string[] Role { get => this._role; set => this._role = value; } + + /// Username created in the database which is mapped to a user in AAD. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] + public string UserName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDatabaseAadAuthInfoInternal)__databaseAadAuthInfo).UserName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDatabaseAadAuthInfoInternal)__databaseAadAuthInfo).UserName = value ?? null; } + + /// Creates an new instance. + public SystemAssignedIdentityAuthInfo() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__authInfoBase), __authInfoBase); + await eventListener.AssertObjectIsValid(nameof(__authInfoBase), __authInfoBase); + await eventListener.AssertNotNull(nameof(__databaseAadAuthInfo), __databaseAadAuthInfo); + await eventListener.AssertObjectIsValid(nameof(__databaseAadAuthInfo), __databaseAadAuthInfo); + } + } + /// The authentication info when authType is systemAssignedIdentity + public partial interface ISystemAssignedIdentityAuthInfo : + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDatabaseAadAuthInfo + { + /// + /// Indicates whether to clean up previous operation when Linker is updating or deleting + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Indicates whether to clean up previous operation when Linker is updating or deleting", + SerializedName = @"deleteOrUpdateBehavior", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior? DeleteOrUpdateBehavior { get; set; } + /// Optional, this value specifies the Azure role to be assigned + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Optional, this value specifies the Azure role to be assigned", + SerializedName = @"roles", + PossibleTypes = new [] { typeof(string) })] + string[] Role { get; set; } + + } + /// The authentication info when authType is systemAssignedIdentity + internal partial interface ISystemAssignedIdentityAuthInfoInternal : + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBaseInternal, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDatabaseAadAuthInfoInternal + { + /// + /// Indicates whether to clean up previous operation when Linker is updating or deleting + /// + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior? DeleteOrUpdateBehavior { get; set; } + /// Optional, this value specifies the Azure role to be assigned + string[] Role { get; set; } + + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/SystemAssignedIdentityAuthInfo.json.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/SystemAssignedIdentityAuthInfo.json.cs new file mode 100644 index 000000000000..f77d4c3895bf --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/SystemAssignedIdentityAuthInfo.json.cs @@ -0,0 +1,122 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; + + /// The authentication info when authType is systemAssignedIdentity + public partial class SystemAssignedIdentityAuthInfo + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISystemAssignedIdentityAuthInfo. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISystemAssignedIdentityAuthInfo. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISystemAssignedIdentityAuthInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json ? new SystemAssignedIdentityAuthInfo(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject instance to deserialize from. + internal SystemAssignedIdentityAuthInfo(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __authInfoBase = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.AuthInfoBase(json); + __databaseAadAuthInfo = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DatabaseAadAuthInfo(json); + {_deleteOrUpdateBehavior = If( json?.PropertyT("deleteOrUpdateBehavior"), out var __jsonDeleteOrUpdateBehavior) ? (string)__jsonDeleteOrUpdateBehavior : (string)DeleteOrUpdateBehavior;} + {_role = If( json?.PropertyT("roles"), out var __jsonRoles) ? If( __jsonRoles as Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : Role;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + __authInfoBase?.ToJson(container, serializationMode); + __databaseAadAuthInfo?.ToJson(container, serializationMode); + AddIf( null != (((object)this._deleteOrUpdateBehavior)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonString(this._deleteOrUpdateBehavior.ToString()) : null, "deleteOrUpdateBehavior" ,container.Add ); + if (null != this._role) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.XNodeArray(); + foreach( var __x in this._role ) + { + AddIf(null != (((object)__x)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonString(__x.ToString()) : null ,__w.Add); + } + container.Add("roles",__w); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/TargetServiceBase.PowerShell.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/TargetServiceBase.PowerShell.cs similarity index 78% rename from src/ServiceLinker/generated/api/Models/Api20220501/TargetServiceBase.PowerShell.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/TargetServiceBase.PowerShell.cs index a2d0c495a9dc..e226bbba2d55 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/TargetServiceBase.PowerShell.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/TargetServiceBase.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class TargetServiceBase /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class TargetServiceBase /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,27 +55,29 @@ public partial class TargetServiceBase partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBase DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new TargetServiceBase(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBase DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new TargetServiceBase(content); } @@ -83,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api2022050 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBase FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -101,13 +105,13 @@ internal TargetServiceBase(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBaseInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.TargetServiceType) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBaseInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.TargetServiceType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBaseInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.TargetServiceType) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBaseInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.TargetServiceType.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -122,7 +126,7 @@ internal TargetServiceBase(global::System.Management.Automation.PSObject content // actually deserialize if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBaseInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.TargetServiceType) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBaseInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.TargetServiceType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBaseInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.TargetServiceType) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBaseInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.TargetServiceType.CreateFrom); } AfterDeserializePSObject(content); } diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/TargetServiceBase.TypeConverter.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/TargetServiceBase.TypeConverter.cs similarity index 81% rename from src/ServiceLinker/generated/api/Models/Api20220501/TargetServiceBase.TypeConverter.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/TargetServiceBase.TypeConverter.cs index 9b42467c0556..1df5e5059441 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/TargetServiceBase.TypeConverter.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/TargetServiceBase.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; @@ -14,19 +14,20 @@ public partial class TargetServiceBaseTypeConverter : global::System.Management. { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the . + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -74,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -98,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBase ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBase).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/TargetServiceBase.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/TargetServiceBase.cs similarity index 95% rename from src/ServiceLinker/generated/api/Models/Api20220501/TargetServiceBase.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/TargetServiceBase.cs index abfdd143fad6..999c7874f410 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/TargetServiceBase.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/TargetServiceBase.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; /// The target service properties public partial class TargetServiceBase : - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBase, - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBaseInternal + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBaseInternal { /// Backing field for property. diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/TargetServiceBase.json.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/TargetServiceBase.json.cs similarity index 94% rename from src/ServiceLinker/generated/api/Models/Api20220501/TargetServiceBase.json.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/TargetServiceBase.json.cs index addeeb205ec8..f9881faa04fb 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/TargetServiceBase.json.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/TargetServiceBase.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; @@ -54,15 +54,15 @@ public partial class TargetServiceBase partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBase. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBase interface is polymorphic, + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase interface is polymorphic, /// and the precise model class that will get deserialized is determined at runtime based on the payload. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBase. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBase FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json)) { @@ -80,6 +80,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api2022050 { return new ConfluentBootstrapServer(json); } + case "SelfHostedServer": + { + return new SelfHostedServer(json); + } case "ConfluentSchemaRegistry": { return new ConfluentSchemaRegistry(json); diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/UserAccountAuthInfo.PowerShell.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/UserAccountAuthInfo.PowerShell.cs new file mode 100644 index 000000000000..47a9a3e2fd51 --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/UserAccountAuthInfo.PowerShell.cs @@ -0,0 +1,178 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; + + /// The authentication info when authType is user account + [System.ComponentModel.TypeConverter(typeof(UserAccountAuthInfoTypeConverter))] + public partial class UserAccountAuthInfo + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IUserAccountAuthInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new UserAccountAuthInfo(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IUserAccountAuthInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new UserAccountAuthInfo(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IUserAccountAuthInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SerializationMode.IncludeAll)?.ToString(); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal UserAccountAuthInfo(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("PrincipalId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IUserAccountAuthInfoInternal)this).PrincipalId = (string) content.GetValueForProperty("PrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IUserAccountAuthInfoInternal)this).PrincipalId, global::System.Convert.ToString); + } + if (content.Contains("DeleteOrUpdateBehavior")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IUserAccountAuthInfoInternal)this).DeleteOrUpdateBehavior = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior?) content.GetValueForProperty("DeleteOrUpdateBehavior",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IUserAccountAuthInfoInternal)this).DeleteOrUpdateBehavior, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior.CreateFrom); + } + if (content.Contains("Role")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IUserAccountAuthInfoInternal)this).Role = (string[]) content.GetValueForProperty("Role",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IUserAccountAuthInfoInternal)this).Role, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("AuthType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBaseInternal)this).AuthType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType) content.GetValueForProperty("AuthType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBaseInternal)this).AuthType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType.CreateFrom); + } + if (content.Contains("UserName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDatabaseAadAuthInfoInternal)this).UserName = (string) content.GetValueForProperty("UserName",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDatabaseAadAuthInfoInternal)this).UserName, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal UserAccountAuthInfo(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("PrincipalId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IUserAccountAuthInfoInternal)this).PrincipalId = (string) content.GetValueForProperty("PrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IUserAccountAuthInfoInternal)this).PrincipalId, global::System.Convert.ToString); + } + if (content.Contains("DeleteOrUpdateBehavior")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IUserAccountAuthInfoInternal)this).DeleteOrUpdateBehavior = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior?) content.GetValueForProperty("DeleteOrUpdateBehavior",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IUserAccountAuthInfoInternal)this).DeleteOrUpdateBehavior, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior.CreateFrom); + } + if (content.Contains("Role")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IUserAccountAuthInfoInternal)this).Role = (string[]) content.GetValueForProperty("Role",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IUserAccountAuthInfoInternal)this).Role, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("AuthType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBaseInternal)this).AuthType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType) content.GetValueForProperty("AuthType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBaseInternal)this).AuthType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType.CreateFrom); + } + if (content.Contains("UserName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDatabaseAadAuthInfoInternal)this).UserName = (string) content.GetValueForProperty("UserName",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDatabaseAadAuthInfoInternal)this).UserName, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + } + /// The authentication info when authType is user account + [System.ComponentModel.TypeConverter(typeof(UserAccountAuthInfoTypeConverter))] + public partial interface IUserAccountAuthInfo + + { + + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/UserAccountAuthInfo.TypeConverter.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/UserAccountAuthInfo.TypeConverter.cs new file mode 100644 index 000000000000..f07a5536fa9e --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/UserAccountAuthInfo.TypeConverter.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class UserAccountAuthInfoTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IUserAccountAuthInfo ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IUserAccountAuthInfo).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return UserAccountAuthInfo.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return UserAccountAuthInfo.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return UserAccountAuthInfo.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/UserAccountAuthInfo.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/UserAccountAuthInfo.cs new file mode 100644 index 000000000000..d3b77adc3944 --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/UserAccountAuthInfo.cs @@ -0,0 +1,128 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; + + /// The authentication info when authType is user account + public partial class UserAccountAuthInfo : + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IUserAccountAuthInfo, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IUserAccountAuthInfoInternal, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase __authInfoBase = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.AuthInfoBase(); + + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDatabaseAadAuthInfo __databaseAadAuthInfo = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DatabaseAadAuthInfo(); + + /// The authentication type. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType AuthType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBaseInternal)__authInfoBase).AuthType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBaseInternal)__authInfoBase).AuthType = value ; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior? _deleteOrUpdateBehavior; + + /// + /// Indicates whether to clean up previous operation when Linker is updating or deleting + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior? DeleteOrUpdateBehavior { get => this._deleteOrUpdateBehavior; set => this._deleteOrUpdateBehavior = value; } + + /// Backing field for property. + private string _principalId; + + /// Principal Id for user account. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] + public string PrincipalId { get => this._principalId; set => this._principalId = value; } + + /// Backing field for property. + private string[] _role; + + /// Optional, this value specifies the Azure roles to be assigned. Automatically + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] + public string[] Role { get => this._role; set => this._role = value; } + + /// Username created in the database which is mapped to a user in AAD. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] + public string UserName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDatabaseAadAuthInfoInternal)__databaseAadAuthInfo).UserName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDatabaseAadAuthInfoInternal)__databaseAadAuthInfo).UserName = value ?? null; } + + /// Creates an new instance. + public UserAccountAuthInfo() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__authInfoBase), __authInfoBase); + await eventListener.AssertObjectIsValid(nameof(__authInfoBase), __authInfoBase); + await eventListener.AssertNotNull(nameof(__databaseAadAuthInfo), __databaseAadAuthInfo); + await eventListener.AssertObjectIsValid(nameof(__databaseAadAuthInfo), __databaseAadAuthInfo); + } + } + /// The authentication info when authType is user account + public partial interface IUserAccountAuthInfo : + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDatabaseAadAuthInfo + { + /// + /// Indicates whether to clean up previous operation when Linker is updating or deleting + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Indicates whether to clean up previous operation when Linker is updating or deleting", + SerializedName = @"deleteOrUpdateBehavior", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior? DeleteOrUpdateBehavior { get; set; } + /// Principal Id for user account. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Principal Id for user account.", + SerializedName = @"principalId", + PossibleTypes = new [] { typeof(string) })] + string PrincipalId { get; set; } + /// Optional, this value specifies the Azure roles to be assigned. Automatically + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Optional, this value specifies the Azure roles to be assigned. Automatically ", + SerializedName = @"roles", + PossibleTypes = new [] { typeof(string) })] + string[] Role { get; set; } + + } + /// The authentication info when authType is user account + internal partial interface IUserAccountAuthInfoInternal : + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBaseInternal, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDatabaseAadAuthInfoInternal + { + /// + /// Indicates whether to clean up previous operation when Linker is updating or deleting + /// + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior? DeleteOrUpdateBehavior { get; set; } + /// Principal Id for user account. + string PrincipalId { get; set; } + /// Optional, this value specifies the Azure roles to be assigned. Automatically + string[] Role { get; set; } + + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/UserAccountAuthInfo.json.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/UserAccountAuthInfo.json.cs new file mode 100644 index 000000000000..5f410a0b4e3c --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/UserAccountAuthInfo.json.cs @@ -0,0 +1,124 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; + + /// The authentication info when authType is user account + public partial class UserAccountAuthInfo + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IUserAccountAuthInfo. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IUserAccountAuthInfo. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IUserAccountAuthInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json ? new UserAccountAuthInfo(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + __authInfoBase?.ToJson(container, serializationMode); + __databaseAadAuthInfo?.ToJson(container, serializationMode); + AddIf( null != (((object)this._principalId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonString(this._principalId.ToString()) : null, "principalId" ,container.Add ); + AddIf( null != (((object)this._deleteOrUpdateBehavior)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonString(this._deleteOrUpdateBehavior.ToString()) : null, "deleteOrUpdateBehavior" ,container.Add ); + if (null != this._role) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.XNodeArray(); + foreach( var __x in this._role ) + { + AddIf(null != (((object)__x)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonString(__x.ToString()) : null ,__w.Add); + } + container.Add("roles",__w); + } + AfterToJson(ref container); + return container; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject instance to deserialize from. + internal UserAccountAuthInfo(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __authInfoBase = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.AuthInfoBase(json); + __databaseAadAuthInfo = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DatabaseAadAuthInfo(json); + {_principalId = If( json?.PropertyT("principalId"), out var __jsonPrincipalId) ? (string)__jsonPrincipalId : (string)PrincipalId;} + {_deleteOrUpdateBehavior = If( json?.PropertyT("deleteOrUpdateBehavior"), out var __jsonDeleteOrUpdateBehavior) ? (string)__jsonDeleteOrUpdateBehavior : (string)DeleteOrUpdateBehavior;} + {_role = If( json?.PropertyT("roles"), out var __jsonRoles) ? If( __jsonRoles as Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : Role;} + AfterFromJson(json); + } + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/UserAssignedIdentityAuthInfo.PowerShell.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/UserAssignedIdentityAuthInfo.PowerShell.cs new file mode 100644 index 000000000000..bc9da8a6d531 --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/UserAssignedIdentityAuthInfo.PowerShell.cs @@ -0,0 +1,186 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; + + /// The authentication info when authType is userAssignedIdentity + [System.ComponentModel.TypeConverter(typeof(UserAssignedIdentityAuthInfoTypeConverter))] + public partial class UserAssignedIdentityAuthInfo + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IUserAssignedIdentityAuthInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new UserAssignedIdentityAuthInfo(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IUserAssignedIdentityAuthInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new UserAssignedIdentityAuthInfo(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IUserAssignedIdentityAuthInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SerializationMode.IncludeAll)?.ToString(); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal UserAssignedIdentityAuthInfo(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ClientId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IUserAssignedIdentityAuthInfoInternal)this).ClientId = (string) content.GetValueForProperty("ClientId",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IUserAssignedIdentityAuthInfoInternal)this).ClientId, global::System.Convert.ToString); + } + if (content.Contains("SubscriptionId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IUserAssignedIdentityAuthInfoInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IUserAssignedIdentityAuthInfoInternal)this).SubscriptionId, global::System.Convert.ToString); + } + if (content.Contains("DeleteOrUpdateBehavior")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IUserAssignedIdentityAuthInfoInternal)this).DeleteOrUpdateBehavior = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior?) content.GetValueForProperty("DeleteOrUpdateBehavior",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IUserAssignedIdentityAuthInfoInternal)this).DeleteOrUpdateBehavior, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior.CreateFrom); + } + if (content.Contains("Role")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IUserAssignedIdentityAuthInfoInternal)this).Role = (string[]) content.GetValueForProperty("Role",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IUserAssignedIdentityAuthInfoInternal)this).Role, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("AuthType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBaseInternal)this).AuthType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType) content.GetValueForProperty("AuthType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBaseInternal)this).AuthType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType.CreateFrom); + } + if (content.Contains("UserName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDatabaseAadAuthInfoInternal)this).UserName = (string) content.GetValueForProperty("UserName",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDatabaseAadAuthInfoInternal)this).UserName, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal UserAssignedIdentityAuthInfo(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ClientId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IUserAssignedIdentityAuthInfoInternal)this).ClientId = (string) content.GetValueForProperty("ClientId",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IUserAssignedIdentityAuthInfoInternal)this).ClientId, global::System.Convert.ToString); + } + if (content.Contains("SubscriptionId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IUserAssignedIdentityAuthInfoInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IUserAssignedIdentityAuthInfoInternal)this).SubscriptionId, global::System.Convert.ToString); + } + if (content.Contains("DeleteOrUpdateBehavior")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IUserAssignedIdentityAuthInfoInternal)this).DeleteOrUpdateBehavior = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior?) content.GetValueForProperty("DeleteOrUpdateBehavior",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IUserAssignedIdentityAuthInfoInternal)this).DeleteOrUpdateBehavior, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior.CreateFrom); + } + if (content.Contains("Role")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IUserAssignedIdentityAuthInfoInternal)this).Role = (string[]) content.GetValueForProperty("Role",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IUserAssignedIdentityAuthInfoInternal)this).Role, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("AuthType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBaseInternal)this).AuthType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType) content.GetValueForProperty("AuthType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBaseInternal)this).AuthType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType.CreateFrom); + } + if (content.Contains("UserName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDatabaseAadAuthInfoInternal)this).UserName = (string) content.GetValueForProperty("UserName",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDatabaseAadAuthInfoInternal)this).UserName, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + } + /// The authentication info when authType is userAssignedIdentity + [System.ComponentModel.TypeConverter(typeof(UserAssignedIdentityAuthInfoTypeConverter))] + public partial interface IUserAssignedIdentityAuthInfo + + { + + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/UserAssignedIdentityAuthInfo.TypeConverter.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/UserAssignedIdentityAuthInfo.TypeConverter.cs similarity index 81% rename from src/ServiceLinker/generated/api/Models/Api20220501/UserAssignedIdentityAuthInfo.TypeConverter.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/UserAssignedIdentityAuthInfo.TypeConverter.cs index 14348bca7fba..2d4880f1f5ff 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/UserAssignedIdentityAuthInfo.TypeConverter.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/UserAssignedIdentityAuthInfo.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class UserAssignedIdentityAuthInfoTypeConverter : global::System. { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the . + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IUserAssignedIdentityAuthInfo ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IUserAssignedIdentityAuthInfo ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IUserAssignedIdentityAuthInfo).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IUserAssignedIdentityAuthInfo).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ServiceLinker/generated/api/Models/Api20221101Preview/UserAssignedIdentityAuthInfo.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/UserAssignedIdentityAuthInfo.cs new file mode 100644 index 000000000000..f030fe7f0d25 --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/UserAssignedIdentityAuthInfo.cs @@ -0,0 +1,145 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; + + /// The authentication info when authType is userAssignedIdentity + public partial class UserAssignedIdentityAuthInfo : + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IUserAssignedIdentityAuthInfo, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IUserAssignedIdentityAuthInfoInternal, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase __authInfoBase = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.AuthInfoBase(); + + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDatabaseAadAuthInfo __databaseAadAuthInfo = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DatabaseAadAuthInfo(); + + /// The authentication type. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType AuthType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBaseInternal)__authInfoBase).AuthType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBaseInternal)__authInfoBase).AuthType = value ; } + + /// Backing field for property. + private string _clientId; + + /// Client Id for userAssignedIdentity. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] + public string ClientId { get => this._clientId; set => this._clientId = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior? _deleteOrUpdateBehavior; + + /// + /// Indicates whether to clean up previous operation when Linker is updating or deleting + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior? DeleteOrUpdateBehavior { get => this._deleteOrUpdateBehavior; set => this._deleteOrUpdateBehavior = value; } + + /// Backing field for property. + private string[] _role; + + /// Optional, this value specifies the Azure role to be assigned + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] + public string[] Role { get => this._role; set => this._role = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// Subscription id for userAssignedIdentity. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// Username created in the database which is mapped to a user in AAD. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] + public string UserName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDatabaseAadAuthInfoInternal)__databaseAadAuthInfo).UserName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDatabaseAadAuthInfoInternal)__databaseAadAuthInfo).UserName = value ?? null; } + + /// Creates an new instance. + public UserAssignedIdentityAuthInfo() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__authInfoBase), __authInfoBase); + await eventListener.AssertObjectIsValid(nameof(__authInfoBase), __authInfoBase); + await eventListener.AssertNotNull(nameof(__databaseAadAuthInfo), __databaseAadAuthInfo); + await eventListener.AssertObjectIsValid(nameof(__databaseAadAuthInfo), __databaseAadAuthInfo); + } + } + /// The authentication info when authType is userAssignedIdentity + public partial interface IUserAssignedIdentityAuthInfo : + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDatabaseAadAuthInfo + { + /// Client Id for userAssignedIdentity. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Client Id for userAssignedIdentity.", + SerializedName = @"clientId", + PossibleTypes = new [] { typeof(string) })] + string ClientId { get; set; } + /// + /// Indicates whether to clean up previous operation when Linker is updating or deleting + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Indicates whether to clean up previous operation when Linker is updating or deleting", + SerializedName = @"deleteOrUpdateBehavior", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior? DeleteOrUpdateBehavior { get; set; } + /// Optional, this value specifies the Azure role to be assigned + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Optional, this value specifies the Azure role to be assigned", + SerializedName = @"roles", + PossibleTypes = new [] { typeof(string) })] + string[] Role { get; set; } + /// Subscription id for userAssignedIdentity. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Subscription id for userAssignedIdentity.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + string SubscriptionId { get; set; } + + } + /// The authentication info when authType is userAssignedIdentity + internal partial interface IUserAssignedIdentityAuthInfoInternal : + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBaseInternal, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDatabaseAadAuthInfoInternal + { + /// Client Id for userAssignedIdentity. + string ClientId { get; set; } + /// + /// Indicates whether to clean up previous operation when Linker is updating or deleting + /// + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior? DeleteOrUpdateBehavior { get; set; } + /// Optional, this value specifies the Azure role to be assigned + string[] Role { get; set; } + /// Subscription id for userAssignedIdentity. + string SubscriptionId { get; set; } + + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/UserAssignedIdentityAuthInfo.json.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/UserAssignedIdentityAuthInfo.json.cs similarity index 77% rename from src/ServiceLinker/generated/api/Models/Api20220501/UserAssignedIdentityAuthInfo.json.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/UserAssignedIdentityAuthInfo.json.cs index ed517292c9de..9ac658c96e9c 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/UserAssignedIdentityAuthInfo.json.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/UserAssignedIdentityAuthInfo.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class UserAssignedIdentityAuthInfo partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IUserAssignedIdentityAuthInfo. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IUserAssignedIdentityAuthInfo. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IUserAssignedIdentityAuthInfo. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IUserAssignedIdentityAuthInfo. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IUserAssignedIdentityAuthInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IUserAssignedIdentityAuthInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json ? new UserAssignedIdentityAuthInfo(json) : null; } @@ -85,8 +85,19 @@ public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode To return container; } __authInfoBase?.ToJson(container, serializationMode); + __databaseAadAuthInfo?.ToJson(container, serializationMode); AddIf( null != (((object)this._clientId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonString(this._clientId.ToString()) : null, "clientId" ,container.Add ); AddIf( null != (((object)this._subscriptionId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonString(this._subscriptionId.ToString()) : null, "subscriptionId" ,container.Add ); + AddIf( null != (((object)this._deleteOrUpdateBehavior)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonString(this._deleteOrUpdateBehavior.ToString()) : null, "deleteOrUpdateBehavior" ,container.Add ); + if (null != this._role) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.XNodeArray(); + foreach( var __x in this._role ) + { + AddIf(null != (((object)__x)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonString(__x.ToString()) : null ,__w.Add); + } + container.Add("roles",__w); + } AfterToJson(ref container); return container; } @@ -103,9 +114,12 @@ internal UserAssignedIdentityAuthInfo(Microsoft.Azure.PowerShell.Cmdlets.Service { return; } - __authInfoBase = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.AuthInfoBase(json); + __authInfoBase = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.AuthInfoBase(json); + __databaseAadAuthInfo = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DatabaseAadAuthInfo(json); {_clientId = If( json?.PropertyT("clientId"), out var __jsonClientId) ? (string)__jsonClientId : (string)ClientId;} {_subscriptionId = If( json?.PropertyT("subscriptionId"), out var __jsonSubscriptionId) ? (string)__jsonSubscriptionId : (string)SubscriptionId;} + {_deleteOrUpdateBehavior = If( json?.PropertyT("deleteOrUpdateBehavior"), out var __jsonDeleteOrUpdateBehavior) ? (string)__jsonDeleteOrUpdateBehavior : (string)DeleteOrUpdateBehavior;} + {_role = If( json?.PropertyT("roles"), out var __jsonRoles) ? If( __jsonRoles as Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : Role;} AfterFromJson(json); } } diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/VNetSolution.PowerShell.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/VNetSolution.PowerShell.cs similarity index 69% rename from src/ServiceLinker/generated/api/Models/Api20220501/VNetSolution.PowerShell.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/VNetSolution.PowerShell.cs index f2a50b293807..29a8b848d527 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/VNetSolution.PowerShell.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/VNetSolution.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class VNetSolution /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class VNetSolution /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,27 +55,27 @@ public partial class VNetSolution partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IVNetSolution DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IVNetSolution DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new VNetSolution(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IVNetSolution DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IVNetSolution DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new VNetSolution(content); } @@ -83,7 +85,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api2022050 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IVNetSolution FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IVNetSolution FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -91,7 +93,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api2022050 public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -106,13 +108,17 @@ internal VNetSolution(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IVNetSolutionInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType?) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IVNetSolutionInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IVNetSolutionInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType?) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IVNetSolutionInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType.CreateFrom); + } + if (content.Contains("DeleteOrUpdateBehavior")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IVNetSolutionInternal)this).DeleteOrUpdateBehavior = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior?) content.GetValueForProperty("DeleteOrUpdateBehavior",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IVNetSolutionInternal)this).DeleteOrUpdateBehavior, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -127,7 +133,11 @@ internal VNetSolution(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IVNetSolutionInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType?) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IVNetSolutionInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IVNetSolutionInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType?) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IVNetSolutionInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType.CreateFrom); + } + if (content.Contains("DeleteOrUpdateBehavior")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IVNetSolutionInternal)this).DeleteOrUpdateBehavior = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior?) content.GetValueForProperty("DeleteOrUpdateBehavior",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IVNetSolutionInternal)this).DeleteOrUpdateBehavior, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior.CreateFrom); } AfterDeserializePSObject(content); } diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/VNetSolution.TypeConverter.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/VNetSolution.TypeConverter.cs similarity index 82% rename from src/ServiceLinker/generated/api/Models/Api20220501/VNetSolution.TypeConverter.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/VNetSolution.TypeConverter.cs index e9c387390ab6..b232703e6f5d 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/VNetSolution.TypeConverter.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/VNetSolution.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; @@ -14,19 +14,20 @@ public partial class VNetSolutionTypeConverter : global::System.Management.Autom { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the . + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -74,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -98,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IVNetSolution ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IVNetSolution ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IVNetSolution).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IVNetSolution).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/VNetSolution.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/VNetSolution.cs similarity index 56% rename from src/ServiceLinker/generated/api/Models/Api20220501/VNetSolution.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/VNetSolution.cs index 3d6c6fbeccf2..3717df32d991 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/VNetSolution.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/VNetSolution.cs @@ -3,16 +3,25 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; /// The VNet solution for linker public partial class VNetSolution : - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IVNetSolution, - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IVNetSolutionInternal + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IVNetSolution, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IVNetSolutionInternal { + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior? _deleteOrUpdateBehavior; + + /// + /// Indicates whether to clean up previous operation when Linker is updating or deleting + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior? DeleteOrUpdateBehavior { get => this._deleteOrUpdateBehavior; set => this._deleteOrUpdateBehavior = value; } + /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType? _type; @@ -30,6 +39,16 @@ public VNetSolution() public partial interface IVNetSolution : Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IJsonSerializable { + /// + /// Indicates whether to clean up previous operation when Linker is updating or deleting + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Indicates whether to clean up previous operation when Linker is updating or deleting", + SerializedName = @"deleteOrUpdateBehavior", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior? DeleteOrUpdateBehavior { get; set; } /// Type of VNet solution. [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( Required = false, @@ -44,6 +63,10 @@ public partial interface IVNetSolution : internal partial interface IVNetSolutionInternal { + /// + /// Indicates whether to clean up previous operation when Linker is updating or deleting + /// + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior? DeleteOrUpdateBehavior { get; set; } /// Type of VNet solution. Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType? Type { get; set; } diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/VNetSolution.json.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/VNetSolution.json.cs similarity index 89% rename from src/ServiceLinker/generated/api/Models/Api20220501/VNetSolution.json.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/VNetSolution.json.cs index 876437aca85a..d46422d3d949 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/VNetSolution.json.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/VNetSolution.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VNetSolution partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IVNetSolution. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IVNetSolution. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IVNetSolution. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IVNetSolution. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IVNetSolution FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IVNetSolution FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json ? new VNetSolution(json) : null; } @@ -85,6 +85,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode To return container; } AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add ); + AddIf( null != (((object)this._deleteOrUpdateBehavior)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonString(this._deleteOrUpdateBehavior.ToString()) : null, "deleteOrUpdateBehavior" ,container.Add ); AfterToJson(ref container); return container; } @@ -102,6 +103,7 @@ internal VNetSolution(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.J return; } {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)Type;} + {_deleteOrUpdateBehavior = If( json?.PropertyT("deleteOrUpdateBehavior"), out var __jsonDeleteOrUpdateBehavior) ? (string)__jsonDeleteOrUpdateBehavior : (string)DeleteOrUpdateBehavior;} AfterFromJson(json); } } diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/ValidateOperationResult.PowerShell.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ValidateOperationResult.PowerShell.cs similarity index 50% rename from src/ServiceLinker/generated/api/Models/Api20220501/ValidateOperationResult.PowerShell.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/ValidateOperationResult.PowerShell.cs index e147af8e1442..e8d00fcb51ef 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/ValidateOperationResult.PowerShell.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ValidateOperationResult.PowerShell.cs @@ -3,11 +3,11 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; - /// The validation operation result for a linker. + /// The validation operation result for a Linker. [System.ComponentModel.TypeConverter(typeof(ValidateOperationResultTypeConverter))] public partial class ValidateOperationResult { @@ -31,7 +31,8 @@ public partial class ValidateOperationResult /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class ValidateOperationResult /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,29 +55,29 @@ public partial class ValidateOperationResult partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateOperationResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateOperationResult DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ValidateOperationResult(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateOperationResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateOperationResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ValidateOperationResult(content); } @@ -85,7 +87,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api2022050 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateOperationResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateOperationResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -93,7 +95,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api2022050 public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -108,53 +110,53 @@ internal ValidateOperationResult(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateOperationResultInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResult) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateOperationResultInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ValidateResultTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateOperationResultInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResult) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateOperationResultInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ValidateResultTypeConverter.ConvertFrom); } if (content.Contains("ResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateOperationResultInternal)this).ResourceId = (string) content.GetValueForProperty("ResourceId",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateOperationResultInternal)this).ResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateOperationResultInternal)this).ResourceId = (string) content.GetValueForProperty("ResourceId",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateOperationResultInternal)this).ResourceId, global::System.Convert.ToString); } if (content.Contains("Status")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateOperationResultInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateOperationResultInternal)this).Status, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateOperationResultInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateOperationResultInternal)this).Status, global::System.Convert.ToString); } if (content.Contains("AuthType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateOperationResultInternal)this).AuthType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType?) content.GetValueForProperty("AuthType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateOperationResultInternal)this).AuthType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateOperationResultInternal)this).AuthType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType?) content.GetValueForProperty("AuthType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateOperationResultInternal)this).AuthType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType.CreateFrom); } if (content.Contains("LinkerName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateOperationResultInternal)this).LinkerName = (string) content.GetValueForProperty("LinkerName",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateOperationResultInternal)this).LinkerName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateOperationResultInternal)this).LinkerName = (string) content.GetValueForProperty("LinkerName",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateOperationResultInternal)this).LinkerName, global::System.Convert.ToString); } if (content.Contains("IsConnectionAvailable")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateOperationResultInternal)this).IsConnectionAvailable = (bool?) content.GetValueForProperty("IsConnectionAvailable",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateOperationResultInternal)this).IsConnectionAvailable, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateOperationResultInternal)this).IsConnectionAvailable = (bool?) content.GetValueForProperty("IsConnectionAvailable",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateOperationResultInternal)this).IsConnectionAvailable, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("ReportStartTimeUtc")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateOperationResultInternal)this).ReportStartTimeUtc = (global::System.DateTime?) content.GetValueForProperty("ReportStartTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateOperationResultInternal)this).ReportStartTimeUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateOperationResultInternal)this).ReportStartTimeUtc = (global::System.DateTime?) content.GetValueForProperty("ReportStartTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateOperationResultInternal)this).ReportStartTimeUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("ReportEndTimeUtc")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateOperationResultInternal)this).ReportEndTimeUtc = (global::System.DateTime?) content.GetValueForProperty("ReportEndTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateOperationResultInternal)this).ReportEndTimeUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateOperationResultInternal)this).ReportEndTimeUtc = (global::System.DateTime?) content.GetValueForProperty("ReportEndTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateOperationResultInternal)this).ReportEndTimeUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateOperationResultInternal)this).SourceId = (string) content.GetValueForProperty("SourceId",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateOperationResultInternal)this).SourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateOperationResultInternal)this).SourceId = (string) content.GetValueForProperty("SourceId",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateOperationResultInternal)this).SourceId, global::System.Convert.ToString); } if (content.Contains("TargetId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateOperationResultInternal)this).TargetId = (string) content.GetValueForProperty("TargetId",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateOperationResultInternal)this).TargetId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateOperationResultInternal)this).TargetId = (string) content.GetValueForProperty("TargetId",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateOperationResultInternal)this).TargetId, global::System.Convert.ToString); } if (content.Contains("ValidationDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateOperationResultInternal)this).ValidationDetail = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidationResultItem[]) content.GetValueForProperty("ValidationDetail",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateOperationResultInternal)this).ValidationDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ValidationResultItemTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateOperationResultInternal)this).ValidationDetail = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidationResultItem[]) content.GetValueForProperty("ValidationDetail",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateOperationResultInternal)this).ValidationDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ValidationResultItemTypeConverter.ConvertFrom)); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -169,52 +171,52 @@ internal ValidateOperationResult(global::System.Management.Automation.PSObject c // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateOperationResultInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResult) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateOperationResultInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ValidateResultTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateOperationResultInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResult) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateOperationResultInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ValidateResultTypeConverter.ConvertFrom); } if (content.Contains("ResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateOperationResultInternal)this).ResourceId = (string) content.GetValueForProperty("ResourceId",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateOperationResultInternal)this).ResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateOperationResultInternal)this).ResourceId = (string) content.GetValueForProperty("ResourceId",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateOperationResultInternal)this).ResourceId, global::System.Convert.ToString); } if (content.Contains("Status")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateOperationResultInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateOperationResultInternal)this).Status, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateOperationResultInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateOperationResultInternal)this).Status, global::System.Convert.ToString); } if (content.Contains("AuthType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateOperationResultInternal)this).AuthType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType?) content.GetValueForProperty("AuthType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateOperationResultInternal)this).AuthType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateOperationResultInternal)this).AuthType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType?) content.GetValueForProperty("AuthType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateOperationResultInternal)this).AuthType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType.CreateFrom); } if (content.Contains("LinkerName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateOperationResultInternal)this).LinkerName = (string) content.GetValueForProperty("LinkerName",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateOperationResultInternal)this).LinkerName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateOperationResultInternal)this).LinkerName = (string) content.GetValueForProperty("LinkerName",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateOperationResultInternal)this).LinkerName, global::System.Convert.ToString); } if (content.Contains("IsConnectionAvailable")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateOperationResultInternal)this).IsConnectionAvailable = (bool?) content.GetValueForProperty("IsConnectionAvailable",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateOperationResultInternal)this).IsConnectionAvailable, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateOperationResultInternal)this).IsConnectionAvailable = (bool?) content.GetValueForProperty("IsConnectionAvailable",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateOperationResultInternal)this).IsConnectionAvailable, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("ReportStartTimeUtc")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateOperationResultInternal)this).ReportStartTimeUtc = (global::System.DateTime?) content.GetValueForProperty("ReportStartTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateOperationResultInternal)this).ReportStartTimeUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateOperationResultInternal)this).ReportStartTimeUtc = (global::System.DateTime?) content.GetValueForProperty("ReportStartTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateOperationResultInternal)this).ReportStartTimeUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("ReportEndTimeUtc")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateOperationResultInternal)this).ReportEndTimeUtc = (global::System.DateTime?) content.GetValueForProperty("ReportEndTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateOperationResultInternal)this).ReportEndTimeUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateOperationResultInternal)this).ReportEndTimeUtc = (global::System.DateTime?) content.GetValueForProperty("ReportEndTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateOperationResultInternal)this).ReportEndTimeUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateOperationResultInternal)this).SourceId = (string) content.GetValueForProperty("SourceId",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateOperationResultInternal)this).SourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateOperationResultInternal)this).SourceId = (string) content.GetValueForProperty("SourceId",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateOperationResultInternal)this).SourceId, global::System.Convert.ToString); } if (content.Contains("TargetId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateOperationResultInternal)this).TargetId = (string) content.GetValueForProperty("TargetId",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateOperationResultInternal)this).TargetId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateOperationResultInternal)this).TargetId = (string) content.GetValueForProperty("TargetId",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateOperationResultInternal)this).TargetId, global::System.Convert.ToString); } if (content.Contains("ValidationDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateOperationResultInternal)this).ValidationDetail = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidationResultItem[]) content.GetValueForProperty("ValidationDetail",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateOperationResultInternal)this).ValidationDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ValidationResultItemTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateOperationResultInternal)this).ValidationDetail = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidationResultItem[]) content.GetValueForProperty("ValidationDetail",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateOperationResultInternal)this).ValidationDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ValidationResultItemTypeConverter.ConvertFrom)); } AfterDeserializePSObject(content); } } - /// The validation operation result for a linker. + /// The validation operation result for a Linker. [System.ComponentModel.TypeConverter(typeof(ValidateOperationResultTypeConverter))] public partial interface IValidateOperationResult diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/ValidateOperationResult.TypeConverter.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ValidateOperationResult.TypeConverter.cs similarity index 81% rename from src/ServiceLinker/generated/api/Models/Api20220501/ValidateOperationResult.TypeConverter.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/ValidateOperationResult.TypeConverter.cs index 4cd1f8021202..08707e2d644b 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/ValidateOperationResult.TypeConverter.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ValidateOperationResult.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class ValidateOperationResultTypeConverter : global::System.Manag { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the . + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateOperationResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateOperationResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateOperationResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateOperationResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/ValidateOperationResult.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ValidateOperationResult.cs similarity index 71% rename from src/ServiceLinker/generated/api/Models/Api20220501/ValidateOperationResult.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/ValidateOperationResult.cs index f3cd4a22c8f4..4c3682c97e04 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/ValidateOperationResult.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ValidateOperationResult.cs @@ -3,56 +3,56 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; - /// The validation operation result for a linker. + /// The validation operation result for a Linker. public partial class ValidateOperationResult : - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateOperationResult, - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateOperationResultInternal + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateOperationResult, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateOperationResultInternal { /// The authentication type. [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType? AuthType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResultInternal)Property).AuthType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResultInternal)Property).AuthType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType? AuthType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResultInternal)Property).AuthType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResultInternal)Property).AuthType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType)""); } /// A boolean value indicating whether the connection is available or not [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] - public bool? IsConnectionAvailable { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResultInternal)Property).IsConnectionAvailable; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResultInternal)Property).IsConnectionAvailable = value ?? default(bool); } + public bool? IsConnectionAvailable { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResultInternal)Property).IsConnectionAvailable; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResultInternal)Property).IsConnectionAvailable = value ?? default(bool); } /// The linker name. [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] - public string LinkerName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResultInternal)Property).LinkerName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResultInternal)Property).LinkerName = value ?? null; } + public string LinkerName { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResultInternal)Property).LinkerName; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResultInternal)Property).LinkerName = value ?? null; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResult Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateOperationResultInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ValidateResult()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResult Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateOperationResultInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ValidateResult()); set { {_property = value;} } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResult _property; + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResult _property; /// The validation result detail. [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResult Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ValidateResult()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResult Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ValidateResult()); set => this._property = value; } /// The end time of the validation report. [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] - public global::System.DateTime? ReportEndTimeUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResultInternal)Property).ReportEndTimeUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResultInternal)Property).ReportEndTimeUtc = value ?? default(global::System.DateTime); } + public global::System.DateTime? ReportEndTimeUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResultInternal)Property).ReportEndTimeUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResultInternal)Property).ReportEndTimeUtc = value ?? default(global::System.DateTime); } /// The start time of the validation report. [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] - public global::System.DateTime? ReportStartTimeUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResultInternal)Property).ReportStartTimeUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResultInternal)Property).ReportStartTimeUtc = value ?? default(global::System.DateTime); } + public global::System.DateTime? ReportStartTimeUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResultInternal)Property).ReportStartTimeUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResultInternal)Property).ReportStartTimeUtc = value ?? default(global::System.DateTime); } /// Backing field for property. private string _resourceId; - /// Validated linker id. + /// Validated Linker id. [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] public string ResourceId { get => this._resourceId; set => this._resourceId = value; } - /// The resource id of the linker source application. + /// The resource id of the Linker source application. [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] - public string SourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResultInternal)Property).SourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResultInternal)Property).SourceId = value ?? null; } + public string SourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResultInternal)Property).SourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResultInternal)Property).SourceId = value ?? null; } /// Backing field for property. private string _status; @@ -63,11 +63,11 @@ public partial class ValidateOperationResult : /// The resource Id of target service. [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] - public string TargetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResultInternal)Property).TargetId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResultInternal)Property).TargetId = value ?? null; } + public string TargetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResultInternal)Property).TargetId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResultInternal)Property).TargetId = value ?? null; } /// The detail of validation result [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidationResultItem[] ValidationDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResultInternal)Property).ValidationDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResultInternal)Property).ValidationDetail = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidationResultItem[] ValidationDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResultInternal)Property).ValidationDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResultInternal)Property).ValidationDetail = value ?? null /* arrayOf */; } /// Creates an new instance. public ValidateOperationResult() @@ -75,7 +75,7 @@ public ValidateOperationResult() } } - /// The validation operation result for a linker. + /// The validation operation result for a Linker. public partial interface IValidateOperationResult : Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IJsonSerializable { @@ -119,19 +119,19 @@ public partial interface IValidateOperationResult : SerializedName = @"reportStartTimeUtc", PossibleTypes = new [] { typeof(global::System.DateTime) })] global::System.DateTime? ReportStartTimeUtc { get; set; } - /// Validated linker id. + /// Validated Linker id. [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Validated linker id.", + Description = @"Validated Linker id.", SerializedName = @"resourceId", PossibleTypes = new [] { typeof(string) })] string ResourceId { get; set; } - /// The resource id of the linker source application. + /// The resource id of the Linker source application. [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( Required = false, ReadOnly = false, - Description = @"The resource id of the linker source application.", + Description = @"The resource id of the Linker source application.", SerializedName = @"sourceId", PossibleTypes = new [] { typeof(string) })] string SourceId { get; set; } @@ -157,11 +157,11 @@ public partial interface IValidateOperationResult : ReadOnly = false, Description = @"The detail of validation result", SerializedName = @"validationDetail", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidationResultItem) })] - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidationResultItem[] ValidationDetail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidationResultItem) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidationResultItem[] ValidationDetail { get; set; } } - /// The validation operation result for a linker. + /// The validation operation result for a Linker. internal partial interface IValidateOperationResultInternal { @@ -172,21 +172,21 @@ internal partial interface IValidateOperationResultInternal /// The linker name. string LinkerName { get; set; } /// The validation result detail. - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResult Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResult Property { get; set; } /// The end time of the validation report. global::System.DateTime? ReportEndTimeUtc { get; set; } /// The start time of the validation report. global::System.DateTime? ReportStartTimeUtc { get; set; } - /// Validated linker id. + /// Validated Linker id. string ResourceId { get; set; } - /// The resource id of the linker source application. + /// The resource id of the Linker source application. string SourceId { get; set; } /// Validation operation status. string Status { get; set; } /// The resource Id of target service. string TargetId { get; set; } /// The detail of validation result - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidationResultItem[] ValidationDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidationResultItem[] ValidationDetail { get; set; } } } \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/ValidateOperationResult.json.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ValidateOperationResult.json.cs similarity index 94% rename from src/ServiceLinker/generated/api/Models/Api20220501/ValidateOperationResult.json.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/ValidateOperationResult.json.cs index 6d4c6fcd24d0..93db7758e6aa 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/ValidateOperationResult.json.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ValidateOperationResult.json.cs @@ -3,11 +3,11 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; - /// The validation operation result for a linker. + /// The validation operation result for a Linker. public partial class ValidateOperationResult { @@ -54,13 +54,13 @@ public partial class ValidateOperationResult partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateOperationResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateOperationResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateOperationResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateOperationResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateOperationResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateOperationResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json ? new ValidateOperationResult(json) : null; } @@ -103,7 +103,7 @@ internal ValidateOperationResult(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinke { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ValidateResult.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ValidateResult.FromJson(__jsonProperties) : Property;} {_resourceId = If( json?.PropertyT("resourceId"), out var __jsonResourceId) ? (string)__jsonResourceId : (string)ResourceId;} {_status = If( json?.PropertyT("status"), out var __jsonStatus) ? (string)__jsonStatus : (string)Status;} AfterFromJson(json); diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/ValidateResult.PowerShell.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ValidateResult.PowerShell.cs similarity index 54% rename from src/ServiceLinker/generated/api/Models/Api20220501/ValidateResult.PowerShell.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/ValidateResult.PowerShell.cs index 279e9e6c5a17..7bdfde774dfa 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/ValidateResult.PowerShell.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ValidateResult.PowerShell.cs @@ -3,11 +3,11 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; - /// The validation result for a linker. + /// The validation result for a Linker. [System.ComponentModel.TypeConverter(typeof(ValidateResultTypeConverter))] public partial class ValidateResult { @@ -31,7 +31,8 @@ public partial class ValidateResult /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class ValidateResult /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,27 +55,29 @@ public partial class ValidateResult partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResult DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ValidateResult(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ValidateResult(content); } @@ -83,7 +87,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api2022050 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -91,7 +95,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api2022050 public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -106,41 +110,41 @@ internal ValidateResult(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("LinkerName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResultInternal)this).LinkerName = (string) content.GetValueForProperty("LinkerName",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResultInternal)this).LinkerName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResultInternal)this).LinkerName = (string) content.GetValueForProperty("LinkerName",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResultInternal)this).LinkerName, global::System.Convert.ToString); } if (content.Contains("IsConnectionAvailable")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResultInternal)this).IsConnectionAvailable = (bool?) content.GetValueForProperty("IsConnectionAvailable",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResultInternal)this).IsConnectionAvailable, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResultInternal)this).IsConnectionAvailable = (bool?) content.GetValueForProperty("IsConnectionAvailable",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResultInternal)this).IsConnectionAvailable, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("ReportStartTimeUtc")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResultInternal)this).ReportStartTimeUtc = (global::System.DateTime?) content.GetValueForProperty("ReportStartTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResultInternal)this).ReportStartTimeUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResultInternal)this).ReportStartTimeUtc = (global::System.DateTime?) content.GetValueForProperty("ReportStartTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResultInternal)this).ReportStartTimeUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("ReportEndTimeUtc")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResultInternal)this).ReportEndTimeUtc = (global::System.DateTime?) content.GetValueForProperty("ReportEndTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResultInternal)this).ReportEndTimeUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResultInternal)this).ReportEndTimeUtc = (global::System.DateTime?) content.GetValueForProperty("ReportEndTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResultInternal)this).ReportEndTimeUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResultInternal)this).SourceId = (string) content.GetValueForProperty("SourceId",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResultInternal)this).SourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResultInternal)this).SourceId = (string) content.GetValueForProperty("SourceId",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResultInternal)this).SourceId, global::System.Convert.ToString); } if (content.Contains("TargetId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResultInternal)this).TargetId = (string) content.GetValueForProperty("TargetId",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResultInternal)this).TargetId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResultInternal)this).TargetId = (string) content.GetValueForProperty("TargetId",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResultInternal)this).TargetId, global::System.Convert.ToString); } if (content.Contains("AuthType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResultInternal)this).AuthType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType?) content.GetValueForProperty("AuthType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResultInternal)this).AuthType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResultInternal)this).AuthType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType?) content.GetValueForProperty("AuthType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResultInternal)this).AuthType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType.CreateFrom); } if (content.Contains("ValidationDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResultInternal)this).ValidationDetail = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidationResultItem[]) content.GetValueForProperty("ValidationDetail",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResultInternal)this).ValidationDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ValidationResultItemTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResultInternal)this).ValidationDetail = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidationResultItem[]) content.GetValueForProperty("ValidationDetail",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResultInternal)this).ValidationDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ValidationResultItemTypeConverter.ConvertFrom)); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -155,40 +159,40 @@ internal ValidateResult(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("LinkerName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResultInternal)this).LinkerName = (string) content.GetValueForProperty("LinkerName",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResultInternal)this).LinkerName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResultInternal)this).LinkerName = (string) content.GetValueForProperty("LinkerName",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResultInternal)this).LinkerName, global::System.Convert.ToString); } if (content.Contains("IsConnectionAvailable")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResultInternal)this).IsConnectionAvailable = (bool?) content.GetValueForProperty("IsConnectionAvailable",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResultInternal)this).IsConnectionAvailable, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResultInternal)this).IsConnectionAvailable = (bool?) content.GetValueForProperty("IsConnectionAvailable",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResultInternal)this).IsConnectionAvailable, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("ReportStartTimeUtc")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResultInternal)this).ReportStartTimeUtc = (global::System.DateTime?) content.GetValueForProperty("ReportStartTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResultInternal)this).ReportStartTimeUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResultInternal)this).ReportStartTimeUtc = (global::System.DateTime?) content.GetValueForProperty("ReportStartTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResultInternal)this).ReportStartTimeUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("ReportEndTimeUtc")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResultInternal)this).ReportEndTimeUtc = (global::System.DateTime?) content.GetValueForProperty("ReportEndTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResultInternal)this).ReportEndTimeUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResultInternal)this).ReportEndTimeUtc = (global::System.DateTime?) content.GetValueForProperty("ReportEndTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResultInternal)this).ReportEndTimeUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResultInternal)this).SourceId = (string) content.GetValueForProperty("SourceId",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResultInternal)this).SourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResultInternal)this).SourceId = (string) content.GetValueForProperty("SourceId",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResultInternal)this).SourceId, global::System.Convert.ToString); } if (content.Contains("TargetId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResultInternal)this).TargetId = (string) content.GetValueForProperty("TargetId",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResultInternal)this).TargetId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResultInternal)this).TargetId = (string) content.GetValueForProperty("TargetId",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResultInternal)this).TargetId, global::System.Convert.ToString); } if (content.Contains("AuthType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResultInternal)this).AuthType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType?) content.GetValueForProperty("AuthType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResultInternal)this).AuthType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResultInternal)this).AuthType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType?) content.GetValueForProperty("AuthType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResultInternal)this).AuthType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType.CreateFrom); } if (content.Contains("ValidationDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResultInternal)this).ValidationDetail = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidationResultItem[]) content.GetValueForProperty("ValidationDetail",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResultInternal)this).ValidationDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ValidationResultItemTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResultInternal)this).ValidationDetail = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidationResultItem[]) content.GetValueForProperty("ValidationDetail",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResultInternal)this).ValidationDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ValidationResultItemTypeConverter.ConvertFrom)); } AfterDeserializePSObject(content); } } - /// The validation result for a linker. + /// The validation result for a Linker. [System.ComponentModel.TypeConverter(typeof(ValidateResultTypeConverter))] public partial interface IValidateResult diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/ValidateResult.TypeConverter.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ValidateResult.TypeConverter.cs similarity index 82% rename from src/ServiceLinker/generated/api/Models/Api20220501/ValidateResult.TypeConverter.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/ValidateResult.TypeConverter.cs index d655a3c0c25a..3da507a88208 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/ValidateResult.TypeConverter.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ValidateResult.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; @@ -14,19 +14,20 @@ public partial class ValidateResultTypeConverter : global::System.Management.Aut { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the . + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -74,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -98,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/ValidateResult.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ValidateResult.cs similarity index 90% rename from src/ServiceLinker/generated/api/Models/Api20220501/ValidateResult.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/ValidateResult.cs index 3906bbcb8a5a..3b5498fd9129 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/ValidateResult.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ValidateResult.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; - /// The validation result for a linker. + /// The validation result for a Linker. public partial class ValidateResult : - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResult, - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResultInternal + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResult, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResultInternal { /// Backing field for property. @@ -51,7 +51,7 @@ public partial class ValidateResult : /// Backing field for property. private string _sourceId; - /// The resource id of the linker source application. + /// The resource id of the Linker source application. [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] public string SourceId { get => this._sourceId; set => this._sourceId = value; } @@ -63,11 +63,11 @@ public partial class ValidateResult : public string TargetId { get => this._targetId; set => this._targetId = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidationResultItem[] _validationDetail; + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidationResultItem[] _validationDetail; /// The detail of validation result [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidationResultItem[] ValidationDetail { get => this._validationDetail; set => this._validationDetail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidationResultItem[] ValidationDetail { get => this._validationDetail; set => this._validationDetail = value; } /// Creates an new instance. public ValidateResult() @@ -75,7 +75,7 @@ public ValidateResult() } } - /// The validation result for a linker. + /// The validation result for a Linker. public partial interface IValidateResult : Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IJsonSerializable { @@ -119,11 +119,11 @@ public partial interface IValidateResult : SerializedName = @"reportStartTimeUtc", PossibleTypes = new [] { typeof(global::System.DateTime) })] global::System.DateTime? ReportStartTimeUtc { get; set; } - /// The resource id of the linker source application. + /// The resource id of the Linker source application. [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( Required = false, ReadOnly = false, - Description = @"The resource id of the linker source application.", + Description = @"The resource id of the Linker source application.", SerializedName = @"sourceId", PossibleTypes = new [] { typeof(string) })] string SourceId { get; set; } @@ -141,11 +141,11 @@ public partial interface IValidateResult : ReadOnly = false, Description = @"The detail of validation result", SerializedName = @"validationDetail", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidationResultItem) })] - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidationResultItem[] ValidationDetail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidationResultItem) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidationResultItem[] ValidationDetail { get; set; } } - /// The validation result for a linker. + /// The validation result for a Linker. internal partial interface IValidateResultInternal { @@ -159,12 +159,12 @@ internal partial interface IValidateResultInternal global::System.DateTime? ReportEndTimeUtc { get; set; } /// The start time of the validation report. global::System.DateTime? ReportStartTimeUtc { get; set; } - /// The resource id of the linker source application. + /// The resource id of the Linker source application. string SourceId { get; set; } /// The resource Id of target service. string TargetId { get; set; } /// The detail of validation result - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidationResultItem[] ValidationDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidationResultItem[] ValidationDetail { get; set; } } } \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/ValidateResult.json.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ValidateResult.json.cs similarity index 94% rename from src/ServiceLinker/generated/api/Models/Api20220501/ValidateResult.json.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/ValidateResult.json.cs index 2ab1bc205cef..cb948e60cdcd 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/ValidateResult.json.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ValidateResult.json.cs @@ -3,11 +3,11 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; - /// The validation result for a linker. + /// The validation result for a Linker. public partial class ValidateResult { @@ -54,13 +54,13 @@ public partial class ValidateResult partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json ? new ValidateResult(json) : null; } @@ -123,7 +123,7 @@ internal ValidateResult(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime {_sourceId = If( json?.PropertyT("sourceId"), out var __jsonSourceId) ? (string)__jsonSourceId : (string)SourceId;} {_targetId = If( json?.PropertyT("targetId"), out var __jsonTargetId) ? (string)__jsonTargetId : (string)TargetId;} {_authType = If( json?.PropertyT("authType"), out var __jsonAuthType) ? (string)__jsonAuthType : (string)AuthType;} - {_validationDetail = If( json?.PropertyT("validationDetail"), out var __jsonValidationDetail) ? If( __jsonValidationDetail as Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidationResultItem) (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ValidationResultItem.FromJson(__u) )) ))() : null : ValidationDetail;} + {_validationDetail = If( json?.PropertyT("validationDetail"), out var __jsonValidationDetail) ? If( __jsonValidationDetail as Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidationResultItem) (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ValidationResultItem.FromJson(__u) )) ))() : null : ValidationDetail;} AfterFromJson(json); } } diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/ValidationResultItem.PowerShell.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ValidationResultItem.PowerShell.cs similarity index 64% rename from src/ServiceLinker/generated/api/Models/Api20220501/ValidationResultItem.PowerShell.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/ValidationResultItem.PowerShell.cs index f9e14adc7adb..e57d7146f1dc 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/ValidationResultItem.PowerShell.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ValidationResultItem.PowerShell.cs @@ -3,11 +3,11 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; - /// The validation item for a linker. + /// The validation item for a Linker. [System.ComponentModel.TypeConverter(typeof(ValidationResultItemTypeConverter))] public partial class ValidationResultItem { @@ -31,7 +31,8 @@ public partial class ValidationResultItem /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class ValidationResultItem /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,27 +55,29 @@ public partial class ValidationResultItem partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidationResultItem DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidationResultItem DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ValidationResultItem(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidationResultItem DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidationResultItem DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ValidationResultItem(content); } @@ -83,7 +87,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api2022050 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidationResultItem FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidationResultItem FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -91,7 +95,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api2022050 public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -106,29 +110,29 @@ internal ValidationResultItem(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidationResultItemInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidationResultItemInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidationResultItemInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidationResultItemInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidationResultItemInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidationResultItemInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidationResultItemInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidationResultItemInternal)this).Description, global::System.Convert.ToString); } if (content.Contains("Result")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidationResultItemInternal)this).Result = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ValidationResultStatus?) content.GetValueForProperty("Result",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidationResultItemInternal)this).Result, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ValidationResultStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidationResultItemInternal)this).Result = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ValidationResultStatus?) content.GetValueForProperty("Result",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidationResultItemInternal)this).Result, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ValidationResultStatus.CreateFrom); } if (content.Contains("ErrorMessage")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidationResultItemInternal)this).ErrorMessage = (string) content.GetValueForProperty("ErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidationResultItemInternal)this).ErrorMessage, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidationResultItemInternal)this).ErrorMessage = (string) content.GetValueForProperty("ErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidationResultItemInternal)this).ErrorMessage, global::System.Convert.ToString); } if (content.Contains("ErrorCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidationResultItemInternal)this).ErrorCode = (string) content.GetValueForProperty("ErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidationResultItemInternal)this).ErrorCode, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidationResultItemInternal)this).ErrorCode = (string) content.GetValueForProperty("ErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidationResultItemInternal)this).ErrorCode, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -143,28 +147,28 @@ internal ValidationResultItem(global::System.Management.Automation.PSObject cont // actually deserialize if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidationResultItemInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidationResultItemInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidationResultItemInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidationResultItemInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidationResultItemInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidationResultItemInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidationResultItemInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidationResultItemInternal)this).Description, global::System.Convert.ToString); } if (content.Contains("Result")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidationResultItemInternal)this).Result = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ValidationResultStatus?) content.GetValueForProperty("Result",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidationResultItemInternal)this).Result, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ValidationResultStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidationResultItemInternal)this).Result = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ValidationResultStatus?) content.GetValueForProperty("Result",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidationResultItemInternal)this).Result, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ValidationResultStatus.CreateFrom); } if (content.Contains("ErrorMessage")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidationResultItemInternal)this).ErrorMessage = (string) content.GetValueForProperty("ErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidationResultItemInternal)this).ErrorMessage, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidationResultItemInternal)this).ErrorMessage = (string) content.GetValueForProperty("ErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidationResultItemInternal)this).ErrorMessage, global::System.Convert.ToString); } if (content.Contains("ErrorCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidationResultItemInternal)this).ErrorCode = (string) content.GetValueForProperty("ErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidationResultItemInternal)this).ErrorCode, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidationResultItemInternal)this).ErrorCode = (string) content.GetValueForProperty("ErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidationResultItemInternal)this).ErrorCode, global::System.Convert.ToString); } AfterDeserializePSObject(content); } } - /// The validation item for a linker. + /// The validation item for a Linker. [System.ComponentModel.TypeConverter(typeof(ValidationResultItemTypeConverter))] public partial interface IValidationResultItem diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/ValidationResultItem.TypeConverter.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ValidationResultItem.TypeConverter.cs similarity index 81% rename from src/ServiceLinker/generated/api/Models/Api20220501/ValidationResultItem.TypeConverter.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/ValidationResultItem.TypeConverter.cs index 1a121fd218a9..2f80ea58a623 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/ValidationResultItem.TypeConverter.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ValidationResultItem.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class ValidationResultItemTypeConverter : global::System.Manageme { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the . + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidationResultItem ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidationResultItem ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidationResultItem).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidationResultItem).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/ValidationResultItem.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ValidationResultItem.cs similarity index 95% rename from src/ServiceLinker/generated/api/Models/Api20220501/ValidationResultItem.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/ValidationResultItem.cs index e0352c27e70c..9f4f57a12693 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/ValidationResultItem.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ValidationResultItem.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; - /// The validation item for a linker. + /// The validation item for a Linker. public partial class ValidationResultItem : - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidationResultItem, - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidationResultItemInternal + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidationResultItem, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidationResultItemInternal { /// Backing field for property. @@ -54,7 +54,7 @@ public ValidationResultItem() } } - /// The validation item for a linker. + /// The validation item for a Linker. public partial interface IValidationResultItem : Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IJsonSerializable { @@ -100,7 +100,7 @@ public partial interface IValidationResultItem : Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ValidationResultStatus? Result { get; set; } } - /// The validation item for a linker. + /// The validation item for a Linker. internal partial interface IValidationResultItemInternal { diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/ValidationResultItem.json.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ValidationResultItem.json.cs similarity index 96% rename from src/ServiceLinker/generated/api/Models/Api20220501/ValidationResultItem.json.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/ValidationResultItem.json.cs index b2ed592a81e8..7203a80e7214 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/ValidationResultItem.json.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ValidationResultItem.json.cs @@ -3,11 +3,11 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; - /// The validation item for a linker. + /// The validation item for a Linker. public partial class ValidationResultItem { @@ -54,13 +54,13 @@ public partial class ValidationResultItem partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidationResultItem. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidationResultItem. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidationResultItem. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidationResultItem. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidationResultItem FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidationResultItem FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json ? new ValidationResultItem(json) : null; } diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/ValueSecretInfo.PowerShell.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ValueSecretInfo.PowerShell.cs similarity index 75% rename from src/ServiceLinker/generated/api/Models/Api20220501/ValueSecretInfo.PowerShell.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/ValueSecretInfo.PowerShell.cs index 1d66fcd2aa44..5034098ddad7 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/ValueSecretInfo.PowerShell.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ValueSecretInfo.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; @@ -33,7 +33,8 @@ public partial class ValueSecretInfo /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -45,7 +46,8 @@ public partial class ValueSecretInfo /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -55,27 +57,29 @@ public partial class ValueSecretInfo partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValueSecretInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValueSecretInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ValueSecretInfo(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValueSecretInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValueSecretInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ValueSecretInfo(content); } @@ -85,7 +89,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api2022050 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValueSecretInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValueSecretInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -93,7 +97,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api2022050 public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -108,17 +112,17 @@ internal ValueSecretInfo(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValueSecretInfoInternal)this).Value = (string) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValueSecretInfoInternal)this).Value, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValueSecretInfoInternal)this).Value = (string) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValueSecretInfoInternal)this).Value, global::System.Convert.ToString); } if (content.Contains("SecretType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretInfoBaseInternal)this).SecretType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.SecretType) content.GetValueForProperty("SecretType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretInfoBaseInternal)this).SecretType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.SecretType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretInfoBaseInternal)this).SecretType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.SecretType) content.GetValueForProperty("SecretType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretInfoBaseInternal)this).SecretType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.SecretType.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -133,11 +137,11 @@ internal ValueSecretInfo(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValueSecretInfoInternal)this).Value = (string) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValueSecretInfoInternal)this).Value, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValueSecretInfoInternal)this).Value = (string) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValueSecretInfoInternal)this).Value, global::System.Convert.ToString); } if (content.Contains("SecretType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretInfoBaseInternal)this).SecretType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.SecretType) content.GetValueForProperty("SecretType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretInfoBaseInternal)this).SecretType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.SecretType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretInfoBaseInternal)this).SecretType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.SecretType) content.GetValueForProperty("SecretType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretInfoBaseInternal)this).SecretType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.SecretType.CreateFrom); } AfterDeserializePSObject(content); } diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/ValueSecretInfo.TypeConverter.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ValueSecretInfo.TypeConverter.cs similarity index 82% rename from src/ServiceLinker/generated/api/Models/Api20220501/ValueSecretInfo.TypeConverter.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/ValueSecretInfo.TypeConverter.cs index 33b14f1012bf..3a273ac5d63e 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/ValueSecretInfo.TypeConverter.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ValueSecretInfo.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; @@ -14,19 +14,20 @@ public partial class ValueSecretInfoTypeConverter : global::System.Management.Au { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the . + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -74,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -98,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValueSecretInfo ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValueSecretInfo ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValueSecretInfo).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValueSecretInfo).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/ValueSecretInfo.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ValueSecretInfo.cs similarity index 84% rename from src/ServiceLinker/generated/api/Models/Api20220501/ValueSecretInfo.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/ValueSecretInfo.cs index 9a9a506120a3..30a2e09a1d45 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/ValueSecretInfo.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ValueSecretInfo.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; @@ -11,19 +11,19 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 /// The secret info when type is rawValue. It's for scenarios that user input the secret. /// public partial class ValueSecretInfo : - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValueSecretInfo, - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValueSecretInfoInternal, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValueSecretInfo, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValueSecretInfoInternal, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretInfoBase __secretInfoBase = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.SecretInfoBase(); + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretInfoBase __secretInfoBase = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.SecretInfoBase(); /// The secret type. [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.SecretType SecretType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretInfoBaseInternal)__secretInfoBase).SecretType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretInfoBaseInternal)__secretInfoBase).SecretType = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.SecretType SecretType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretInfoBaseInternal)__secretInfoBase).SecretType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretInfoBaseInternal)__secretInfoBase).SecretType = value ; } /// Backing field for property. private string _value; @@ -53,7 +53,7 @@ public ValueSecretInfo() /// The secret info when type is rawValue. It's for scenarios that user input the secret. public partial interface IValueSecretInfo : Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretInfoBase + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretInfoBase { /// The actual value of the secret. [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( @@ -67,7 +67,7 @@ public partial interface IValueSecretInfo : } /// The secret info when type is rawValue. It's for scenarios that user input the secret. internal partial interface IValueSecretInfoInternal : - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISecretInfoBaseInternal + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISecretInfoBaseInternal { /// The actual value of the secret. string Value { get; set; } diff --git a/src/ServiceLinker/generated/api/Models/Api20220501/ValueSecretInfo.json.cs b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ValueSecretInfo.json.cs similarity index 95% rename from src/ServiceLinker/generated/api/Models/Api20220501/ValueSecretInfo.json.cs rename to src/ServiceLinker/generated/api/Models/Api20221101Preview/ValueSecretInfo.json.cs index a7bad4940ecf..c8d5746531d9 100644 --- a/src/ServiceLinker/generated/api/Models/Api20220501/ValueSecretInfo.json.cs +++ b/src/ServiceLinker/generated/api/Models/Api20221101Preview/ValueSecretInfo.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview { using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; @@ -56,13 +56,13 @@ public partial class ValueSecretInfo partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValueSecretInfo. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValueSecretInfo. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValueSecretInfo. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValueSecretInfo. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValueSecretInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValueSecretInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json ? new ValueSecretInfo(json) : null; } @@ -104,7 +104,7 @@ internal ValueSecretInfo(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtim { return; } - __secretInfoBase = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.SecretInfoBase(json); + __secretInfoBase = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.SecretInfoBase(json); {_value = If( json?.PropertyT("value"), out var __jsonValue) ? (string)__jsonValue : (string)Value;} AfterFromJson(json); } diff --git a/src/ServiceLinker/generated/api/Models/Api20/ErrorAdditionalInfo.PowerShell.cs b/src/ServiceLinker/generated/api/Models/Api30/ErrorAdditionalInfo.PowerShell.cs similarity index 86% rename from src/ServiceLinker/generated/api/Models/Api20/ErrorAdditionalInfo.PowerShell.cs rename to src/ServiceLinker/generated/api/Models/Api30/ErrorAdditionalInfo.PowerShell.cs index a42d22eb8076..d1286b7370eb 100644 --- a/src/ServiceLinker/generated/api/Models/Api20/ErrorAdditionalInfo.PowerShell.cs +++ b/src/ServiceLinker/generated/api/Models/Api30/ErrorAdditionalInfo.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30 { using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class ErrorAdditionalInfo /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class ErrorAdditionalInfo /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,33 +55,33 @@ public partial class ErrorAdditionalInfo partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorAdditionalInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorAdditionalInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ErrorAdditionalInfo(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorAdditionalInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorAdditionalInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ErrorAdditionalInfo(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -94,17 +96,17 @@ internal ErrorAdditionalInfo(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorAdditionalInfoInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorAdditionalInfoInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorAdditionalInfoInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorAdditionalInfoInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("Info")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorAdditionalInfoInternal)this).Info = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IAny) content.GetValueForProperty("Info",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorAdditionalInfoInternal)this).Info, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.AnyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorAdditionalInfoInternal)this).Info = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IAny) content.GetValueForProperty("Info",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorAdditionalInfoInternal)this).Info, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.AnyTypeConverter.ConvertFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -119,11 +121,11 @@ internal ErrorAdditionalInfo(global::System.Management.Automation.PSObject conte // actually deserialize if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorAdditionalInfoInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorAdditionalInfoInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorAdditionalInfoInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorAdditionalInfoInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("Info")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorAdditionalInfoInternal)this).Info = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IAny) content.GetValueForProperty("Info",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorAdditionalInfoInternal)this).Info, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.AnyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorAdditionalInfoInternal)this).Info = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IAny) content.GetValueForProperty("Info",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorAdditionalInfoInternal)this).Info, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.AnyTypeConverter.ConvertFrom); } AfterDeserializePSObject(content); } @@ -133,7 +135,7 @@ internal ErrorAdditionalInfo(global::System.Management.Automation.PSObject conte /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorAdditionalInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorAdditionalInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/ServiceLinker/generated/api/Models/Api20/ErrorAdditionalInfo.TypeConverter.cs b/src/ServiceLinker/generated/api/Models/Api30/ErrorAdditionalInfo.TypeConverter.cs similarity index 82% rename from src/ServiceLinker/generated/api/Models/Api20/ErrorAdditionalInfo.TypeConverter.cs rename to src/ServiceLinker/generated/api/Models/Api30/ErrorAdditionalInfo.TypeConverter.cs index 7db9e21b6715..962053db83ae 100644 --- a/src/ServiceLinker/generated/api/Models/Api20/ErrorAdditionalInfo.TypeConverter.cs +++ b/src/ServiceLinker/generated/api/Models/Api30/ErrorAdditionalInfo.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30 { using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class ErrorAdditionalInfoTypeConverter : global::System.Managemen { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the . + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorAdditionalInfo ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorAdditionalInfo ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorAdditionalInfo).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorAdditionalInfo).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ServiceLinker/generated/api/Models/Api20/ErrorAdditionalInfo.cs b/src/ServiceLinker/generated/api/Models/Api30/ErrorAdditionalInfo.cs similarity index 94% rename from src/ServiceLinker/generated/api/Models/Api20/ErrorAdditionalInfo.cs rename to src/ServiceLinker/generated/api/Models/Api30/ErrorAdditionalInfo.cs index 40122d4b23c8..1a45eaa7022b 100644 --- a/src/ServiceLinker/generated/api/Models/Api20/ErrorAdditionalInfo.cs +++ b/src/ServiceLinker/generated/api/Models/Api30/ErrorAdditionalInfo.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30 { using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; /// The resource management error additional info. public partial class ErrorAdditionalInfo : - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorAdditionalInfo, - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorAdditionalInfoInternal + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorAdditionalInfo, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorAdditionalInfoInternal { /// Backing field for property. @@ -21,10 +21,10 @@ public partial class ErrorAdditionalInfo : public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IAny Info { get => (this._info = this._info ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Any()); } /// Internal Acessors for Info - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IAny Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorAdditionalInfoInternal.Info { get => (this._info = this._info ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Any()); set { {_info = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IAny Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorAdditionalInfoInternal.Info { get => (this._info = this._info ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Any()); set { {_info = value;} } } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorAdditionalInfoInternal.Type { get => this._type; set { {_type = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorAdditionalInfoInternal.Type { get => this._type; set { {_type = value;} } } /// Backing field for property. private string _type; diff --git a/src/ServiceLinker/generated/api/Models/Api20/ErrorAdditionalInfo.json.cs b/src/ServiceLinker/generated/api/Models/Api30/ErrorAdditionalInfo.json.cs similarity index 97% rename from src/ServiceLinker/generated/api/Models/Api20/ErrorAdditionalInfo.json.cs rename to src/ServiceLinker/generated/api/Models/Api30/ErrorAdditionalInfo.json.cs index 6cc63af7ac40..94e103476241 100644 --- a/src/ServiceLinker/generated/api/Models/Api20/ErrorAdditionalInfo.json.cs +++ b/src/ServiceLinker/generated/api/Models/Api30/ErrorAdditionalInfo.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30 { using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; @@ -71,13 +71,13 @@ internal ErrorAdditionalInfo(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Ru } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorAdditionalInfo. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorAdditionalInfo. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorAdditionalInfo. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorAdditionalInfo. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorAdditionalInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorAdditionalInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json ? new ErrorAdditionalInfo(json) : null; } diff --git a/src/ServiceLinker/generated/api/Models/Api20/ErrorDetail.PowerShell.cs b/src/ServiceLinker/generated/api/Models/Api30/ErrorDetail.PowerShell.cs similarity index 77% rename from src/ServiceLinker/generated/api/Models/Api20/ErrorDetail.PowerShell.cs rename to src/ServiceLinker/generated/api/Models/Api30/ErrorDetail.PowerShell.cs index 6fffe04349f4..da49fba40996 100644 --- a/src/ServiceLinker/generated/api/Models/Api20/ErrorDetail.PowerShell.cs +++ b/src/ServiceLinker/generated/api/Models/Api30/ErrorDetail.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30 { using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class ErrorDetail /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class ErrorDetail /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,33 +55,33 @@ public partial class ErrorDetail partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorDetail DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorDetail DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ErrorDetail(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorDetail DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorDetail DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ErrorDetail(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -94,29 +96,29 @@ internal ErrorDetail(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorDetailInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorDetailInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorDetailInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorDetailInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorDetailInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorDetailInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorDetailInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorDetailInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorDetailInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorDetailInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorDetailInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorDetailInternal)this).Target, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorDetailInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorDetail[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorDetailInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ErrorDetailTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorDetailInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorDetail[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorDetailInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ErrorDetailTypeConverter.ConvertFrom)); } if (content.Contains("AdditionalInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorDetailInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorDetailInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ErrorAdditionalInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorDetailInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorDetailInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ErrorAdditionalInfoTypeConverter.ConvertFrom)); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -131,23 +133,23 @@ internal ErrorDetail(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorDetailInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorDetailInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorDetailInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorDetailInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorDetailInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorDetailInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorDetailInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorDetailInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorDetailInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorDetailInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorDetailInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorDetailInternal)this).Target, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorDetailInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorDetail[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorDetailInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ErrorDetailTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorDetailInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorDetail[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorDetailInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ErrorDetailTypeConverter.ConvertFrom)); } if (content.Contains("AdditionalInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorDetailInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorDetailInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ErrorAdditionalInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorDetailInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorDetailInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ErrorAdditionalInfoTypeConverter.ConvertFrom)); } AfterDeserializePSObject(content); } @@ -157,7 +159,7 @@ internal ErrorDetail(global::System.Management.Automation.PSObject content) /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorDetail FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorDetail FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/ServiceLinker/generated/api/Models/Api20/ErrorDetail.TypeConverter.cs b/src/ServiceLinker/generated/api/Models/Api30/ErrorDetail.TypeConverter.cs similarity index 82% rename from src/ServiceLinker/generated/api/Models/Api20/ErrorDetail.TypeConverter.cs rename to src/ServiceLinker/generated/api/Models/Api30/ErrorDetail.TypeConverter.cs index a8c4fff24bf0..4e18ea4996b2 100644 --- a/src/ServiceLinker/generated/api/Models/Api20/ErrorDetail.TypeConverter.cs +++ b/src/ServiceLinker/generated/api/Models/Api30/ErrorDetail.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30 { using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; @@ -14,19 +14,20 @@ public partial class ErrorDetailTypeConverter : global::System.Management.Automa { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the . + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -74,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -98,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorDetail ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorDetail ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorDetail).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorDetail).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ServiceLinker/generated/api/Models/Api20/ErrorDetail.cs b/src/ServiceLinker/generated/api/Models/Api30/ErrorDetail.cs similarity index 85% rename from src/ServiceLinker/generated/api/Models/Api20/ErrorDetail.cs rename to src/ServiceLinker/generated/api/Models/Api30/ErrorDetail.cs index 663272dd1898..ef277fa786e6 100644 --- a/src/ServiceLinker/generated/api/Models/Api20/ErrorDetail.cs +++ b/src/ServiceLinker/generated/api/Models/Api30/ErrorDetail.cs @@ -3,22 +3,22 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30 { using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; /// The error detail. public partial class ErrorDetail : - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorDetail, - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorDetailInternal + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorDetail, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorDetailInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorAdditionalInfo[] _additionalInfo; + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorAdditionalInfo[] _additionalInfo; /// The error additional info. [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorAdditionalInfo[] AdditionalInfo { get => this._additionalInfo; } + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorAdditionalInfo[] AdditionalInfo { get => this._additionalInfo; } /// Backing field for property. private string _code; @@ -28,11 +28,11 @@ public partial class ErrorDetail : public string Code { get => this._code; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorDetail[] _detail; + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorDetail[] _detail; /// The error details. [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorDetail[] Detail { get => this._detail; } + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorDetail[] Detail { get => this._detail; } /// Backing field for property. private string _message; @@ -42,19 +42,19 @@ public partial class ErrorDetail : public string Message { get => this._message; } /// Internal Acessors for AdditionalInfo - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorAdditionalInfo[] Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorDetailInternal.AdditionalInfo { get => this._additionalInfo; set { {_additionalInfo = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorAdditionalInfo[] Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorDetailInternal.AdditionalInfo { get => this._additionalInfo; set { {_additionalInfo = value;} } } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorDetailInternal.Code { get => this._code; set { {_code = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorDetailInternal.Code { get => this._code; set { {_code = value;} } } /// Internal Acessors for Detail - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorDetail[] Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorDetailInternal.Detail { get => this._detail; set { {_detail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorDetail[] Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorDetailInternal.Detail { get => this._detail; set { {_detail = value;} } } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorDetailInternal.Message { get => this._message; set { {_message = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorDetailInternal.Message { get => this._message; set { {_message = value;} } } /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorDetailInternal.Target { get => this._target; set { {_target = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorDetailInternal.Target { get => this._target; set { {_target = value;} } } /// Backing field for property. private string _target; @@ -79,8 +79,8 @@ public partial interface IErrorDetail : ReadOnly = true, Description = @"The error additional info.", SerializedName = @"additionalInfo", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorAdditionalInfo) })] - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorAdditionalInfo[] AdditionalInfo { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorAdditionalInfo) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorAdditionalInfo[] AdditionalInfo { get; } /// The error code. [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( Required = false, @@ -95,8 +95,8 @@ public partial interface IErrorDetail : ReadOnly = true, Description = @"The error details.", SerializedName = @"details", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorDetail) })] - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorDetail[] Detail { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorDetail) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorDetail[] Detail { get; } /// The error message. [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( Required = false, @@ -120,11 +120,11 @@ internal partial interface IErrorDetailInternal { /// The error additional info. - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorAdditionalInfo[] AdditionalInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorAdditionalInfo[] AdditionalInfo { get; set; } /// The error code. string Code { get; set; } /// The error details. - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorDetail[] Detail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorDetail[] Detail { get; set; } /// The error message. string Message { get; set; } /// The error target. diff --git a/src/ServiceLinker/generated/api/Models/Api20/ErrorDetail.json.cs b/src/ServiceLinker/generated/api/Models/Api30/ErrorDetail.json.cs similarity index 94% rename from src/ServiceLinker/generated/api/Models/Api20/ErrorDetail.json.cs rename to src/ServiceLinker/generated/api/Models/Api30/ErrorDetail.json.cs index eafae11b297a..4ebe0bda51d3 100644 --- a/src/ServiceLinker/generated/api/Models/Api20/ErrorDetail.json.cs +++ b/src/ServiceLinker/generated/api/Models/Api30/ErrorDetail.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30 { using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; @@ -68,19 +68,19 @@ internal ErrorDetail(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Js {_code = If( json?.PropertyT("code"), out var __jsonCode) ? (string)__jsonCode : (string)Code;} {_message = If( json?.PropertyT("message"), out var __jsonMessage) ? (string)__jsonMessage : (string)Message;} {_target = If( json?.PropertyT("target"), out var __jsonTarget) ? (string)__jsonTarget : (string)Target;} - {_detail = If( json?.PropertyT("details"), out var __jsonDetails) ? If( __jsonDetails as Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorDetail) (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ErrorDetail.FromJson(__u) )) ))() : null : Detail;} - {_additionalInfo = If( json?.PropertyT("additionalInfo"), out var __jsonAdditionalInfo) ? If( __jsonAdditionalInfo as Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorAdditionalInfo) (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ErrorAdditionalInfo.FromJson(__p) )) ))() : null : AdditionalInfo;} + {_detail = If( json?.PropertyT("details"), out var __jsonDetails) ? If( __jsonDetails as Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorDetail) (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ErrorDetail.FromJson(__u) )) ))() : null : Detail;} + {_additionalInfo = If( json?.PropertyT("additionalInfo"), out var __jsonAdditionalInfo) ? If( __jsonAdditionalInfo as Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorAdditionalInfo) (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ErrorAdditionalInfo.FromJson(__p) )) ))() : null : AdditionalInfo;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorDetail. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorDetail. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorDetail. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorDetail. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorDetail FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorDetail FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json ? new ErrorDetail(json) : null; } diff --git a/src/ServiceLinker/generated/api/Models/Api20/ErrorResponse.PowerShell.cs b/src/ServiceLinker/generated/api/Models/Api30/ErrorResponse.PowerShell.cs similarity index 76% rename from src/ServiceLinker/generated/api/Models/Api20/ErrorResponse.PowerShell.cs rename to src/ServiceLinker/generated/api/Models/Api30/ErrorResponse.PowerShell.cs index 6644e547eee1..33736ae0469e 100644 --- a/src/ServiceLinker/generated/api/Models/Api20/ErrorResponse.PowerShell.cs +++ b/src/ServiceLinker/generated/api/Models/Api30/ErrorResponse.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30 { using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; @@ -34,7 +34,8 @@ public partial class ErrorResponse /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -46,7 +47,8 @@ public partial class ErrorResponse /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -56,33 +58,33 @@ public partial class ErrorResponse partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorResponse DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponse DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ErrorResponse(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorResponse DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponse DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ErrorResponse(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -97,33 +99,33 @@ internal ErrorResponse(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Error")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorResponseInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorDetail) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorResponseInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ErrorDetailTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponseInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorDetail) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponseInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ErrorDetailTypeConverter.ConvertFrom); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorResponseInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponseInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorResponseInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponseInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorResponseInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorResponseInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponseInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponseInternal)this).Target, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorResponseInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorDetail[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorResponseInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ErrorDetailTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponseInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorDetail[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponseInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ErrorDetailTypeConverter.ConvertFrom)); } if (content.Contains("AdditionalInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorResponseInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorResponseInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ErrorAdditionalInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponseInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponseInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ErrorAdditionalInfoTypeConverter.ConvertFrom)); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -138,27 +140,27 @@ internal ErrorResponse(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Error")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorResponseInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorDetail) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorResponseInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ErrorDetailTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponseInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorDetail) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponseInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ErrorDetailTypeConverter.ConvertFrom); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorResponseInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponseInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorResponseInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponseInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorResponseInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorResponseInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponseInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponseInternal)this).Target, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorResponseInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorDetail[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorResponseInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ErrorDetailTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponseInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorDetail[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponseInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ErrorDetailTypeConverter.ConvertFrom)); } if (content.Contains("AdditionalInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorResponseInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorResponseInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ErrorAdditionalInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponseInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponseInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ErrorAdditionalInfoTypeConverter.ConvertFrom)); } AfterDeserializePSObject(content); } @@ -168,7 +170,7 @@ internal ErrorResponse(global::System.Management.Automation.PSObject content) /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorResponse FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponse FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/ServiceLinker/generated/api/Models/Api20/ErrorResponse.TypeConverter.cs b/src/ServiceLinker/generated/api/Models/Api30/ErrorResponse.TypeConverter.cs similarity index 82% rename from src/ServiceLinker/generated/api/Models/Api20/ErrorResponse.TypeConverter.cs rename to src/ServiceLinker/generated/api/Models/Api30/ErrorResponse.TypeConverter.cs index a9fe620a6ffa..5dc1b6360284 100644 --- a/src/ServiceLinker/generated/api/Models/Api20/ErrorResponse.TypeConverter.cs +++ b/src/ServiceLinker/generated/api/Models/Api30/ErrorResponse.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30 { using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; @@ -14,19 +14,20 @@ public partial class ErrorResponseTypeConverter : global::System.Management.Auto { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the . + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -74,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -98,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorResponse ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponse ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorResponse).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponse).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ServiceLinker/generated/api/Models/Api20/ErrorResponse.cs b/src/ServiceLinker/generated/api/Models/Api30/ErrorResponse.cs similarity index 75% rename from src/ServiceLinker/generated/api/Models/Api20/ErrorResponse.cs rename to src/ServiceLinker/generated/api/Models/Api30/ErrorResponse.cs index 54e66ac6b22f..4add55ab3058 100644 --- a/src/ServiceLinker/generated/api/Models/Api20/ErrorResponse.cs +++ b/src/ServiceLinker/generated/api/Models/Api30/ErrorResponse.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30 { using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; @@ -12,54 +12,54 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20 /// the OData error response format.). /// public partial class ErrorResponse : - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorResponse, - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorResponseInternal + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponse, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponseInternal { /// The error additional info. [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorAdditionalInfo[] AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorDetailInternal)Error).AdditionalInfo; } + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorAdditionalInfo[] AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorDetailInternal)Error).AdditionalInfo; } /// The error code. [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] - public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorDetailInternal)Error).Code; } + public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorDetailInternal)Error).Code; } /// The error details. [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorDetail[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorDetailInternal)Error).Detail; } + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorDetail[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorDetailInternal)Error).Detail; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorDetail _error; + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorDetail _error; /// The error object. [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorDetail Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ErrorDetail()); set => this._error = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorDetail Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ErrorDetail()); set => this._error = value; } /// The error message. [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] - public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorDetailInternal)Error).Message; } + public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorDetailInternal)Error).Message; } /// Internal Acessors for AdditionalInfo - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorAdditionalInfo[] Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorDetailInternal)Error).AdditionalInfo = value; } + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorAdditionalInfo[] Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorDetailInternal)Error).AdditionalInfo = value; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorDetailInternal)Error).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorDetailInternal)Error).Code = value; } /// Internal Acessors for Detail - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorDetail[] Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorDetailInternal)Error).Detail = value; } + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorDetail[] Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorDetailInternal)Error).Detail = value; } /// Internal Acessors for Error - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorResponseInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ErrorDetail()); set { {_error = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponseInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ErrorDetail()); set { {_error = value;} } } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorDetailInternal)Error).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorDetailInternal)Error).Message = value; } /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorDetailInternal)Error).Target = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorDetailInternal)Error).Target = value; } /// The error target. [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] - public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorDetailInternal)Error).Target; } + public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorDetailInternal)Error).Target; } /// Creates an new instance. public ErrorResponse() @@ -78,8 +78,8 @@ public partial interface IErrorResponse : ReadOnly = true, Description = @"The error additional info.", SerializedName = @"additionalInfo", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorAdditionalInfo) })] - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorAdditionalInfo[] AdditionalInfo { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorAdditionalInfo) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorAdditionalInfo[] AdditionalInfo { get; } /// The error code. [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( Required = false, @@ -94,8 +94,8 @@ public partial interface IErrorResponse : ReadOnly = true, Description = @"The error details.", SerializedName = @"details", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorDetail) })] - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorDetail[] Detail { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorDetail) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorDetail[] Detail { get; } /// The error message. [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( Required = false, @@ -120,13 +120,13 @@ internal partial interface IErrorResponseInternal { /// The error additional info. - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorAdditionalInfo[] AdditionalInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorAdditionalInfo[] AdditionalInfo { get; set; } /// The error code. string Code { get; set; } /// The error details. - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorDetail[] Detail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorDetail[] Detail { get; set; } /// The error object. - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorDetail Error { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorDetail Error { get; set; } /// The error message. string Message { get; set; } /// The error target. diff --git a/src/ServiceLinker/generated/api/Models/Api20/ErrorResponse.json.cs b/src/ServiceLinker/generated/api/Models/Api30/ErrorResponse.json.cs similarity index 96% rename from src/ServiceLinker/generated/api/Models/Api20/ErrorResponse.json.cs rename to src/ServiceLinker/generated/api/Models/Api30/ErrorResponse.json.cs index 4ea4ebb8cf61..0cb3fafbfe45 100644 --- a/src/ServiceLinker/generated/api/Models/Api20/ErrorResponse.json.cs +++ b/src/ServiceLinker/generated/api/Models/Api30/ErrorResponse.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30 { using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; @@ -68,18 +68,18 @@ internal ErrorResponse(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime. { return; } - {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ErrorDetail.FromJson(__jsonError) : Error;} + {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ErrorDetail.FromJson(__jsonError) : Error;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorResponse. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponse. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorResponse. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponse. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IErrorResponse FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponse FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json ? new ErrorResponse(json) : null; } diff --git a/src/ServiceLinker/generated/api/Models/Api20/Operation.PowerShell.cs b/src/ServiceLinker/generated/api/Models/Api30/Operation.PowerShell.cs similarity index 78% rename from src/ServiceLinker/generated/api/Models/Api20/Operation.PowerShell.cs rename to src/ServiceLinker/generated/api/Models/Api30/Operation.PowerShell.cs index 4bdd436b7027..b670f34cbd18 100644 --- a/src/ServiceLinker/generated/api/Models/Api20/Operation.PowerShell.cs +++ b/src/ServiceLinker/generated/api/Models/Api30/Operation.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30 { using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; @@ -33,7 +33,8 @@ public partial class Operation /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -45,7 +46,8 @@ public partial class Operation /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -55,27 +57,27 @@ public partial class Operation partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperation DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperation DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new Operation(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperation DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperation DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new Operation(content); } @@ -85,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOpe /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperation FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperation FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -103,45 +105,45 @@ internal Operation(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Display")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationInternal)this).Display = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationDisplay) content.GetValueForProperty("Display",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationInternal)this).Display, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.OperationDisplayTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationInternal)this).Display = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationDisplay) content.GetValueForProperty("Display",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationInternal)this).Display, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.OperationDisplayTypeConverter.ConvertFrom); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("IsDataAction")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationInternal)this).IsDataAction = (bool?) content.GetValueForProperty("IsDataAction",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationInternal)this).IsDataAction, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationInternal)this).IsDataAction = (bool?) content.GetValueForProperty("IsDataAction",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationInternal)this).IsDataAction, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("Origin")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationInternal)this).Origin = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.Origin?) content.GetValueForProperty("Origin",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationInternal)this).Origin, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.Origin.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationInternal)this).Origin = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.Origin?) content.GetValueForProperty("Origin",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationInternal)this).Origin, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.Origin.CreateFrom); } if (content.Contains("ActionType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationInternal)this).ActionType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType?) content.GetValueForProperty("ActionType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationInternal)this).ActionType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationInternal)this).ActionType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType?) content.GetValueForProperty("ActionType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationInternal)this).ActionType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType.CreateFrom); } if (content.Contains("DisplayProvider")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationInternal)this).DisplayProvider = (string) content.GetValueForProperty("DisplayProvider",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationInternal)this).DisplayProvider, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationInternal)this).DisplayProvider = (string) content.GetValueForProperty("DisplayProvider",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationInternal)this).DisplayProvider, global::System.Convert.ToString); } if (content.Contains("DisplayResource")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationInternal)this).DisplayResource = (string) content.GetValueForProperty("DisplayResource",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationInternal)this).DisplayResource, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationInternal)this).DisplayResource = (string) content.GetValueForProperty("DisplayResource",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationInternal)this).DisplayResource, global::System.Convert.ToString); } if (content.Contains("DisplayOperation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationInternal)this).DisplayOperation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationInternal)this).DisplayOperation, global::System.Convert.ToString); } if (content.Contains("DisplayDescription")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationInternal)this).DisplayDescription, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationInternal)this).DisplayDescription, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -156,39 +158,39 @@ internal Operation(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Display")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationInternal)this).Display = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationDisplay) content.GetValueForProperty("Display",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationInternal)this).Display, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.OperationDisplayTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationInternal)this).Display = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationDisplay) content.GetValueForProperty("Display",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationInternal)this).Display, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.OperationDisplayTypeConverter.ConvertFrom); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("IsDataAction")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationInternal)this).IsDataAction = (bool?) content.GetValueForProperty("IsDataAction",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationInternal)this).IsDataAction, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationInternal)this).IsDataAction = (bool?) content.GetValueForProperty("IsDataAction",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationInternal)this).IsDataAction, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("Origin")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationInternal)this).Origin = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.Origin?) content.GetValueForProperty("Origin",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationInternal)this).Origin, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.Origin.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationInternal)this).Origin = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.Origin?) content.GetValueForProperty("Origin",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationInternal)this).Origin, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.Origin.CreateFrom); } if (content.Contains("ActionType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationInternal)this).ActionType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType?) content.GetValueForProperty("ActionType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationInternal)this).ActionType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationInternal)this).ActionType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType?) content.GetValueForProperty("ActionType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationInternal)this).ActionType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType.CreateFrom); } if (content.Contains("DisplayProvider")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationInternal)this).DisplayProvider = (string) content.GetValueForProperty("DisplayProvider",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationInternal)this).DisplayProvider, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationInternal)this).DisplayProvider = (string) content.GetValueForProperty("DisplayProvider",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationInternal)this).DisplayProvider, global::System.Convert.ToString); } if (content.Contains("DisplayResource")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationInternal)this).DisplayResource = (string) content.GetValueForProperty("DisplayResource",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationInternal)this).DisplayResource, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationInternal)this).DisplayResource = (string) content.GetValueForProperty("DisplayResource",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationInternal)this).DisplayResource, global::System.Convert.ToString); } if (content.Contains("DisplayOperation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationInternal)this).DisplayOperation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationInternal)this).DisplayOperation, global::System.Convert.ToString); } if (content.Contains("DisplayDescription")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationInternal)this).DisplayDescription, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationInternal)this).DisplayDescription, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/ServiceLinker/generated/api/Models/Api20/Operation.TypeConverter.cs b/src/ServiceLinker/generated/api/Models/Api30/Operation.TypeConverter.cs similarity index 82% rename from src/ServiceLinker/generated/api/Models/Api20/Operation.TypeConverter.cs rename to src/ServiceLinker/generated/api/Models/Api30/Operation.TypeConverter.cs index f13eaf62ec4b..ef3b8588c854 100644 --- a/src/ServiceLinker/generated/api/Models/Api20/Operation.TypeConverter.cs +++ b/src/ServiceLinker/generated/api/Models/Api30/Operation.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30 { using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; @@ -14,19 +14,19 @@ public partial class OperationTypeConverter : global::System.Management.Automati { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the . + /// Determines if the converter can convert the parameter to the type. /// /// the instance to check if it can be converted to the type. @@ -74,19 +74,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -98,21 +99,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperation ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperation ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperation).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperation).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ServiceLinker/generated/api/Models/Api20/Operation.cs b/src/ServiceLinker/generated/api/Models/Api30/Operation.cs similarity index 89% rename from src/ServiceLinker/generated/api/Models/Api20/Operation.cs rename to src/ServiceLinker/generated/api/Models/Api30/Operation.cs index 7b05478324e6..a71cb198cabe 100644 --- a/src/ServiceLinker/generated/api/Models/Api20/Operation.cs +++ b/src/ServiceLinker/generated/api/Models/Api30/Operation.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30 { using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; @@ -11,8 +11,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20 /// Details of a REST API operation, returned from the Resource Provider Operations API /// public partial class Operation : - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperation, - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationInternal + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperation, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationInternal { /// Backing field for property. @@ -25,36 +25,36 @@ public partial class Operation : public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType? ActionType { get => this._actionType; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationDisplay _display; + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationDisplay _display; /// Localized display information for this particular operation. [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationDisplay Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.OperationDisplay()); set => this._display = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationDisplay Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.OperationDisplay()); set => this._display = value; } /// /// The short, localized friendly description of the operation; suitable for tool tips and detailed views. /// [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] - public string DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationDisplayInternal)Display).Description; } + public string DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationDisplayInternal)Display).Description; } /// /// The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual Machine", /// "Restart Virtual Machine". /// [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] - public string DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationDisplayInternal)Display).Operation; } + public string DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationDisplayInternal)Display).Operation; } /// /// The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute". /// [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] - public string DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationDisplayInternal)Display).Provider; } + public string DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationDisplayInternal)Display).Provider; } /// /// The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job Schedule Collections". /// [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] - public string DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationDisplayInternal)Display).Resource; } + public string DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationDisplayInternal)Display).Resource; } /// Backing field for property. private bool? _isDataAction; @@ -67,31 +67,31 @@ public partial class Operation : public bool? IsDataAction { get => this._isDataAction; } /// Internal Acessors for ActionType - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType? Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationInternal.ActionType { get => this._actionType; set { {_actionType = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType? Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationInternal.ActionType { get => this._actionType; set { {_actionType = value;} } } /// Internal Acessors for Display - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationDisplay Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationInternal.Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.OperationDisplay()); set { {_display = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationDisplay Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationInternal.Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.OperationDisplay()); set { {_display = value;} } } /// Internal Acessors for DisplayDescription - string Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationInternal.DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationDisplayInternal)Display).Description = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationInternal.DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationDisplayInternal)Display).Description = value; } /// Internal Acessors for DisplayOperation - string Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationDisplayInternal)Display).Operation = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationDisplayInternal)Display).Operation = value; } /// Internal Acessors for DisplayProvider - string Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationDisplayInternal)Display).Provider = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationDisplayInternal)Display).Provider = value; } /// Internal Acessors for DisplayResource - string Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationDisplayInternal)Display).Resource = value; } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationDisplayInternal)Display).Resource = value; } /// Internal Acessors for IsDataAction - bool? Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationInternal.IsDataAction { get => this._isDataAction; set { {_isDataAction = value;} } } + bool? Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationInternal.IsDataAction { get => this._isDataAction; set { {_isDataAction = value;} } } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationInternal.Name { get => this._name; set { {_name = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationInternal.Name { get => this._name; set { {_name = value;} } } /// Internal Acessors for Origin - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.Origin? Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationInternal.Origin { get => this._origin; set { {_origin = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.Origin? Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationInternal.Origin { get => this._origin; set { {_origin = value;} } } /// Backing field for property. private string _name; @@ -218,7 +218,7 @@ internal partial interface IOperationInternal /// Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType? ActionType { get; set; } /// Localized display information for this particular operation. - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationDisplay Display { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationDisplay Display { get; set; } /// /// The short, localized friendly description of the operation; suitable for tool tips and detailed views. /// diff --git a/src/ServiceLinker/generated/api/Models/Api20/Operation.json.cs b/src/ServiceLinker/generated/api/Models/Api30/Operation.json.cs similarity index 97% rename from src/ServiceLinker/generated/api/Models/Api20/Operation.json.cs rename to src/ServiceLinker/generated/api/Models/Api30/Operation.json.cs index 89f1e9a303fe..937a84cba627 100644 --- a/src/ServiceLinker/generated/api/Models/Api20/Operation.json.cs +++ b/src/ServiceLinker/generated/api/Models/Api30/Operation.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30 { using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; @@ -56,13 +56,13 @@ public partial class Operation partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperation. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperation. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperation. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperation. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperation FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperation FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json ? new Operation(json) : null; } @@ -79,7 +79,7 @@ internal Operation(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json { return; } - {_display = If( json?.PropertyT("display"), out var __jsonDisplay) ? Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.OperationDisplay.FromJson(__jsonDisplay) : Display;} + {_display = If( json?.PropertyT("display"), out var __jsonDisplay) ? Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.OperationDisplay.FromJson(__jsonDisplay) : Display;} {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} {_isDataAction = If( json?.PropertyT("isDataAction"), out var __jsonIsDataAction) ? (bool?)__jsonIsDataAction : IsDataAction;} {_origin = If( json?.PropertyT("origin"), out var __jsonOrigin) ? (string)__jsonOrigin : (string)Origin;} diff --git a/src/ServiceLinker/generated/api/Models/Api20/OperationDisplay.PowerShell.cs b/src/ServiceLinker/generated/api/Models/Api30/OperationDisplay.PowerShell.cs similarity index 83% rename from src/ServiceLinker/generated/api/Models/Api20/OperationDisplay.PowerShell.cs rename to src/ServiceLinker/generated/api/Models/Api30/OperationDisplay.PowerShell.cs index a3e03db122f6..fe8f9d5533f2 100644 --- a/src/ServiceLinker/generated/api/Models/Api20/OperationDisplay.PowerShell.cs +++ b/src/ServiceLinker/generated/api/Models/Api30/OperationDisplay.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30 { using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class OperationDisplay /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class OperationDisplay /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,27 +55,27 @@ public partial class OperationDisplay partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationDisplay DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationDisplay DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new OperationDisplay(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationDisplay DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationDisplay DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new OperationDisplay(content); } @@ -83,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOpe /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationDisplay FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationDisplay FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -101,25 +103,25 @@ internal OperationDisplay(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Provider")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationDisplayInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationDisplayInternal)this).Provider, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationDisplayInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationDisplayInternal)this).Provider, global::System.Convert.ToString); } if (content.Contains("Resource")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationDisplayInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationDisplayInternal)this).Resource, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationDisplayInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationDisplayInternal)this).Resource, global::System.Convert.ToString); } if (content.Contains("Operation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationDisplayInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationDisplayInternal)this).Operation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationDisplayInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationDisplayInternal)this).Operation, global::System.Convert.ToString); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationDisplayInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationDisplayInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationDisplayInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationDisplayInternal)this).Description, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -134,19 +136,19 @@ internal OperationDisplay(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Provider")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationDisplayInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationDisplayInternal)this).Provider, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationDisplayInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationDisplayInternal)this).Provider, global::System.Convert.ToString); } if (content.Contains("Resource")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationDisplayInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationDisplayInternal)this).Resource, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationDisplayInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationDisplayInternal)this).Resource, global::System.Convert.ToString); } if (content.Contains("Operation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationDisplayInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationDisplayInternal)this).Operation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationDisplayInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationDisplayInternal)this).Operation, global::System.Convert.ToString); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationDisplayInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationDisplayInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationDisplayInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationDisplayInternal)this).Description, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/ServiceLinker/generated/api/Models/Api20/OperationDisplay.TypeConverter.cs b/src/ServiceLinker/generated/api/Models/Api30/OperationDisplay.TypeConverter.cs similarity index 82% rename from src/ServiceLinker/generated/api/Models/Api20/OperationDisplay.TypeConverter.cs rename to src/ServiceLinker/generated/api/Models/Api30/OperationDisplay.TypeConverter.cs index ec0b0b8849b5..ee0ab355a31e 100644 --- a/src/ServiceLinker/generated/api/Models/Api20/OperationDisplay.TypeConverter.cs +++ b/src/ServiceLinker/generated/api/Models/Api30/OperationDisplay.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30 { using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; @@ -14,19 +14,20 @@ public partial class OperationDisplayTypeConverter : global::System.Management.A { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the . + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -74,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -98,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationDisplay ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationDisplay ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationDisplay).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationDisplay).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ServiceLinker/generated/api/Models/Api20/OperationDisplay.cs b/src/ServiceLinker/generated/api/Models/Api30/OperationDisplay.cs similarity index 95% rename from src/ServiceLinker/generated/api/Models/Api20/OperationDisplay.cs rename to src/ServiceLinker/generated/api/Models/Api30/OperationDisplay.cs index 7b6392b7245b..eff581f5919d 100644 --- a/src/ServiceLinker/generated/api/Models/Api20/OperationDisplay.cs +++ b/src/ServiceLinker/generated/api/Models/Api30/OperationDisplay.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30 { using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; /// Localized display information for this particular operation. public partial class OperationDisplay : - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationDisplay, - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationDisplayInternal + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationDisplay, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationDisplayInternal { /// Backing field for property. @@ -23,16 +23,16 @@ public partial class OperationDisplay : public string Description { get => this._description; } /// Internal Acessors for Description - string Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationDisplayInternal.Description { get => this._description; set { {_description = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationDisplayInternal.Description { get => this._description; set { {_description = value;} } } /// Internal Acessors for Operation - string Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationDisplayInternal.Operation { get => this._operation; set { {_operation = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationDisplayInternal.Operation { get => this._operation; set { {_operation = value;} } } /// Internal Acessors for Provider - string Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationDisplayInternal.Provider { get => this._provider; set { {_provider = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationDisplayInternal.Provider { get => this._provider; set { {_provider = value;} } } /// Internal Acessors for Resource - string Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationDisplayInternal.Resource { get => this._resource; set { {_resource = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationDisplayInternal.Resource { get => this._resource; set { {_resource = value;} } } /// Backing field for property. private string _operation; diff --git a/src/ServiceLinker/generated/api/Models/Api20/OperationDisplay.json.cs b/src/ServiceLinker/generated/api/Models/Api30/OperationDisplay.json.cs similarity index 98% rename from src/ServiceLinker/generated/api/Models/Api20/OperationDisplay.json.cs rename to src/ServiceLinker/generated/api/Models/Api30/OperationDisplay.json.cs index 5339e38ac991..e4d65414adea 100644 --- a/src/ServiceLinker/generated/api/Models/Api20/OperationDisplay.json.cs +++ b/src/ServiceLinker/generated/api/Models/Api30/OperationDisplay.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30 { using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class OperationDisplay partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationDisplay. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationDisplay. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationDisplay. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationDisplay. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationDisplay FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationDisplay FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json ? new OperationDisplay(json) : null; } diff --git a/src/ServiceLinker/generated/api/Models/Api20/OperationListResult.PowerShell.cs b/src/ServiceLinker/generated/api/Models/Api30/OperationListResult.PowerShell.cs similarity index 83% rename from src/ServiceLinker/generated/api/Models/Api20/OperationListResult.PowerShell.cs rename to src/ServiceLinker/generated/api/Models/Api30/OperationListResult.PowerShell.cs index f310d610b65a..51d9ac554f2b 100644 --- a/src/ServiceLinker/generated/api/Models/Api20/OperationListResult.PowerShell.cs +++ b/src/ServiceLinker/generated/api/Models/Api30/OperationListResult.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30 { using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; @@ -34,7 +34,8 @@ public partial class OperationListResult /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -46,7 +47,8 @@ public partial class OperationListResult /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -56,27 +58,27 @@ public partial class OperationListResult partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new OperationListResult(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new OperationListResult(content); } @@ -86,10 +88,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOpe /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -104,17 +106,17 @@ internal OperationListResult(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperation[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.OperationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperation[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.OperationTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -129,11 +131,11 @@ internal OperationListResult(global::System.Management.Automation.PSObject conte // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperation[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.OperationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperation[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.OperationTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/ServiceLinker/generated/api/Models/Api20/OperationListResult.TypeConverter.cs b/src/ServiceLinker/generated/api/Models/Api30/OperationListResult.TypeConverter.cs similarity index 82% rename from src/ServiceLinker/generated/api/Models/Api20/OperationListResult.TypeConverter.cs rename to src/ServiceLinker/generated/api/Models/Api30/OperationListResult.TypeConverter.cs index ed10d4581983..92d8c7afed02 100644 --- a/src/ServiceLinker/generated/api/Models/Api20/OperationListResult.TypeConverter.cs +++ b/src/ServiceLinker/generated/api/Models/Api30/OperationListResult.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30 { using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; @@ -14,20 +14,20 @@ public partial class OperationListResultTypeConverter : global::System.Managemen { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the . + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationListResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationListResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationListResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ServiceLinker/generated/api/Models/Api20/OperationListResult.cs b/src/ServiceLinker/generated/api/Models/Api30/OperationListResult.cs similarity index 88% rename from src/ServiceLinker/generated/api/Models/Api20/OperationListResult.cs rename to src/ServiceLinker/generated/api/Models/Api30/OperationListResult.cs index 1b4c59575100..c06c7c6805b0 100644 --- a/src/ServiceLinker/generated/api/Models/Api20/OperationListResult.cs +++ b/src/ServiceLinker/generated/api/Models/Api30/OperationListResult.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30 { using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; @@ -12,15 +12,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20 /// results. /// public partial class OperationListResult : - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationListResult, - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationListResultInternal + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationListResult, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationListResultInternal { /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } /// Internal Acessors for Value - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperation[] Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationListResultInternal.Value { get => this._value; set { {_value = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperation[] Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationListResultInternal.Value { get => this._value; set { {_value = value;} } } /// Backing field for property. private string _nextLink; @@ -30,11 +30,11 @@ public partial class OperationListResult : public string NextLink { get => this._nextLink; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperation[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperation[] _value; /// List of operations supported by the resource provider [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperation[] Value { get => this._value; } + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperation[] Value { get => this._value; } /// Creates an new instance. public OperationListResult() @@ -61,8 +61,8 @@ public partial interface IOperationListResult : ReadOnly = true, Description = @"List of operations supported by the resource provider", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperation) })] - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperation[] Value { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperation) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperation[] Value { get; } } /// A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of @@ -73,7 +73,7 @@ internal partial interface IOperationListResultInternal /// URL to get the next set of operation list results (if there are any). string NextLink { get; set; } /// List of operations supported by the resource provider - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperation[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperation[] Value { get; set; } } } \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20/OperationListResult.json.cs b/src/ServiceLinker/generated/api/Models/Api30/OperationListResult.json.cs similarity index 95% rename from src/ServiceLinker/generated/api/Models/Api20/OperationListResult.json.cs rename to src/ServiceLinker/generated/api/Models/Api30/OperationListResult.json.cs index 15f8aab62bb2..b6c389de7b08 100644 --- a/src/ServiceLinker/generated/api/Models/Api20/OperationListResult.json.cs +++ b/src/ServiceLinker/generated/api/Models/Api30/OperationListResult.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30 { using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; @@ -57,13 +57,13 @@ public partial class OperationListResult partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationListResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationListResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperationListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json ? new OperationListResult(json) : null; } @@ -80,7 +80,7 @@ internal OperationListResult(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Ru { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperation) (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.Operation.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperation) (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.Operation.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } diff --git a/src/ServiceLinker/generated/api/Models/Api30/ProxyResource.PowerShell.cs b/src/ServiceLinker/generated/api/Models/Api30/ProxyResource.PowerShell.cs new file mode 100644 index 000000000000..0f4484d9e5bf --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api30/ProxyResource.PowerShell.cs @@ -0,0 +1,218 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30 +{ + using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; + + /// + /// The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location + /// + [System.ComponentModel.TypeConverter(typeof(ProxyResourceTypeConverter))] + public partial class ProxyResource + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IProxyResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ProxyResource(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IProxyResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ProxyResource(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IProxyResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ProxyResource(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ProxyResource(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location + [System.ComponentModel.TypeConverter(typeof(ProxyResourceTypeConverter))] + public partial interface IProxyResource + + { + + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20/ProxyResource.TypeConverter.cs b/src/ServiceLinker/generated/api/Models/Api30/ProxyResource.TypeConverter.cs similarity index 82% rename from src/ServiceLinker/generated/api/Models/Api20/ProxyResource.TypeConverter.cs rename to src/ServiceLinker/generated/api/Models/Api30/ProxyResource.TypeConverter.cs index d0e15e900e26..646ad0e05d40 100644 --- a/src/ServiceLinker/generated/api/Models/Api20/ProxyResource.TypeConverter.cs +++ b/src/ServiceLinker/generated/api/Models/Api30/ProxyResource.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30 { using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; @@ -14,19 +14,20 @@ public partial class ProxyResourceTypeConverter : global::System.Management.Auto { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the . + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -74,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -98,21 +100,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IProxyResource ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IProxyResource ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IProxyResource).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IProxyResource).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ServiceLinker/generated/api/Models/Api30/ProxyResource.cs b/src/ServiceLinker/generated/api/Models/Api30/ProxyResource.cs new file mode 100644 index 000000000000..2d12969a03d5 --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api30/ProxyResource.cs @@ -0,0 +1,113 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; + + /// + /// The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location + /// + public partial class ProxyResource : + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IProxyResource, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IProxyResourceInternal, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.Resource(); + + /// + /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)__resource).Id; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)__resource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)__resource).Name = value; } + + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)__resource).SystemData = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)__resource).Type = value; } + + /// The name of the resource + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)__resource).Name; } + + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)__resource).SystemData; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)__resource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType)""); } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType)""); } + + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)__resource).Type; } + + /// Creates an new instance. + public ProxyResource() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__resource), __resource); + await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + } + } + /// The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location + public partial interface IProxyResource : + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResource + { + + } + /// The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location + internal partial interface IProxyResourceInternal : + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal + { + + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20/ProxyResource.json.cs b/src/ServiceLinker/generated/api/Models/Api30/ProxyResource.json.cs similarity index 96% rename from src/ServiceLinker/generated/api/Models/Api20/ProxyResource.json.cs rename to src/ServiceLinker/generated/api/Models/Api30/ProxyResource.json.cs index cf0b364150f2..3057ac37d5e5 100644 --- a/src/ServiceLinker/generated/api/Models/Api20/ProxyResource.json.cs +++ b/src/ServiceLinker/generated/api/Models/Api30/ProxyResource.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30 { using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; @@ -56,13 +56,13 @@ public partial class ProxyResource partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IProxyResource. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IProxyResource. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IProxyResource. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IProxyResource. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IProxyResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IProxyResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json ? new ProxyResource(json) : null; } @@ -79,7 +79,7 @@ internal ProxyResource(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime. { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.Resource(json); + __resource = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.Resource(json); AfterFromJson(json); } diff --git a/src/ServiceLinker/generated/api/Models/Api30/Resource.PowerShell.cs b/src/ServiceLinker/generated/api/Models/Api30/Resource.PowerShell.cs new file mode 100644 index 000000000000..2d59e04bb9ec --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api30/Resource.PowerShell.cs @@ -0,0 +1,218 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30 +{ + using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; + + /// + /// Common fields that are returned in the response for all Azure Resource Manager resources + /// + [System.ComponentModel.TypeConverter(typeof(ResourceTypeConverter))] + public partial class Resource + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new Resource(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new Resource(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal Resource(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal Resource(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Common fields that are returned in the response for all Azure Resource Manager resources + [System.ComponentModel.TypeConverter(typeof(ResourceTypeConverter))] + public partial interface IResource + + { + + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20/Resource.TypeConverter.cs b/src/ServiceLinker/generated/api/Models/Api30/Resource.TypeConverter.cs similarity index 82% rename from src/ServiceLinker/generated/api/Models/Api20/Resource.TypeConverter.cs rename to src/ServiceLinker/generated/api/Models/Api30/Resource.TypeConverter.cs index 8f02dd2f96a0..36137338c55c 100644 --- a/src/ServiceLinker/generated/api/Models/Api20/Resource.TypeConverter.cs +++ b/src/ServiceLinker/generated/api/Models/Api30/Resource.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30 { using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; @@ -14,19 +14,19 @@ public partial class ResourceTypeConverter : global::System.Management.Automatio { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the . + /// Determines if the converter can convert the parameter to the type. /// /// the instance to check if it can be converted to the type. @@ -74,19 +74,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -98,21 +99,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResource ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResource ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResource).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResource).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ServiceLinker/generated/api/Models/Api30/Resource.cs b/src/ServiceLinker/generated/api/Models/Api30/Resource.cs new file mode 100644 index 000000000000..bb9a2a0574b3 --- /dev/null +++ b/src/ServiceLinker/generated/api/Models/Api30/Resource.cs @@ -0,0 +1,208 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; + + /// + /// Common fields that are returned in the response for all Azure Resource Manager resources + /// + public partial class Resource : + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResource, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal + { + + /// Backing field for property. + private string _id; + + /// + /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] + public string Id { get => this._id; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal.Id { get => this._id; set { {_id = value;} } } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal.Name { get => this._name; set { {_name = value;} } } + + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ISystemData Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.SystemData()); set { {_systemData = value;} } } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResourceInternal.Type { get => this._type; set { {_type = value;} } } + + /// Backing field for property. + private string _name; + + /// The name of the resource + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] + public string Name { get => this._name; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ISystemData _systemData; + + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ISystemData SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.SystemData()); } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ISystemDataInternal)SystemData).CreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType)""); } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ISystemDataInternal)SystemData).LastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType)""); } + + /// Backing field for property. + private string _type; + + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] + public string Type { get => this._type; } + + /// Creates an new instance. + public Resource() + { + + } + } + /// Common fields that are returned in the response for all Azure Resource Manager resources + public partial interface IResource : + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IJsonSerializable + { + /// + /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string Id { get; } + /// The name of the resource + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The name of the resource", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; } + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The timestamp of resource creation (UTC).", + SerializedName = @"createdAt", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? SystemDataCreatedAt { get; set; } + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The identity that created the resource.", + SerializedName = @"createdBy", + PossibleTypes = new [] { typeof(string) })] + string SystemDataCreatedBy { get; set; } + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The type of identity that created the resource.", + SerializedName = @"createdByType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType? SystemDataCreatedByType { get; set; } + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The timestamp of resource last modification (UTC)", + SerializedName = @"lastModifiedAt", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? SystemDataLastModifiedAt { get; set; } + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The identity that last modified the resource.", + SerializedName = @"lastModifiedBy", + PossibleTypes = new [] { typeof(string) })] + string SystemDataLastModifiedBy { get; set; } + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The type of identity that last modified the resource.", + SerializedName = @"lastModifiedByType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType) })] + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType? SystemDataLastModifiedByType { get; set; } + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The type of the resource. E.g. ""Microsoft.Compute/virtualMachines"" or ""Microsoft.Storage/storageAccounts""", + SerializedName = @"type", + PossibleTypes = new [] { typeof(string) })] + string Type { get; } + + } + /// Common fields that are returned in the response for all Azure Resource Manager resources + internal partial interface IResourceInternal + + { + /// + /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// + string Id { get; set; } + /// The name of the resource + string Name { get; set; } + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ISystemData SystemData { get; set; } + /// The timestamp of resource creation (UTC). + global::System.DateTime? SystemDataCreatedAt { get; set; } + /// The identity that created the resource. + string SystemDataCreatedBy { get; set; } + /// The type of identity that created the resource. + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType? SystemDataCreatedByType { get; set; } + /// The timestamp of resource last modification (UTC) + global::System.DateTime? SystemDataLastModifiedAt { get; set; } + /// The identity that last modified the resource. + string SystemDataLastModifiedBy { get; set; } + /// The type of identity that last modified the resource. + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType? SystemDataLastModifiedByType { get; set; } + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// + string Type { get; set; } + + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/Api20/Resource.json.cs b/src/ServiceLinker/generated/api/Models/Api30/Resource.json.cs similarity index 90% rename from src/ServiceLinker/generated/api/Models/Api20/Resource.json.cs rename to src/ServiceLinker/generated/api/Models/Api30/Resource.json.cs index 98b66a3b6e30..437c997420f1 100644 --- a/src/ServiceLinker/generated/api/Models/Api20/Resource.json.cs +++ b/src/ServiceLinker/generated/api/Models/Api30/Resource.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30 { using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; @@ -56,13 +56,13 @@ public partial class Resource partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResource. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResource. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResource. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResource. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json ? new Resource(json) : null; } @@ -79,6 +79,7 @@ internal Resource(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json. { return; } + {_systemData = If( json?.PropertyT("systemData"), out var __jsonSystemData) ? Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.SystemData.FromJson(__jsonSystemData) : SystemData;} {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)Type;} @@ -105,6 +106,10 @@ public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode To return container; } if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != this._systemData ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) this._systemData.ToJson(null,serializationMode) : null, "systemData" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SerializationMode.IncludeReadOnly)) { AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); } diff --git a/src/ServiceLinker/generated/api/Models/Api20/SystemData.PowerShell.cs b/src/ServiceLinker/generated/api/Models/Api30/SystemData.PowerShell.cs similarity index 82% rename from src/ServiceLinker/generated/api/Models/Api20/SystemData.PowerShell.cs rename to src/ServiceLinker/generated/api/Models/Api30/SystemData.PowerShell.cs index e0ccdafde4b3..0d5630da89b6 100644 --- a/src/ServiceLinker/generated/api/Models/Api20/SystemData.PowerShell.cs +++ b/src/ServiceLinker/generated/api/Models/Api30/SystemData.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30 { using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; @@ -31,7 +31,8 @@ public partial class SystemData /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class SystemData /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -53,27 +55,27 @@ public partial class SystemData partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ISystemData DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ISystemData DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new SystemData(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ISystemData DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ISystemData DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new SystemData(content); } @@ -83,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ISys /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ISystemData FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ISystemData FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -101,33 +103,33 @@ internal SystemData(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("CreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ISystemDataInternal)this).CreatedBy = (string) content.GetValueForProperty("CreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ISystemDataInternal)this).CreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ISystemDataInternal)this).CreatedBy = (string) content.GetValueForProperty("CreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ISystemDataInternal)this).CreatedBy, global::System.Convert.ToString); } if (content.Contains("CreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ISystemDataInternal)this).CreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType?) content.GetValueForProperty("CreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ISystemDataInternal)this).CreatedByType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ISystemDataInternal)this).CreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType?) content.GetValueForProperty("CreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ISystemDataInternal)this).CreatedByType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType.CreateFrom); } if (content.Contains("CreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ISystemDataInternal)this).CreatedAt = (global::System.DateTime?) content.GetValueForProperty("CreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ISystemDataInternal)this).CreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ISystemDataInternal)this).CreatedAt = (global::System.DateTime?) content.GetValueForProperty("CreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ISystemDataInternal)this).CreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("LastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ISystemDataInternal)this).LastModifiedBy = (string) content.GetValueForProperty("LastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ISystemDataInternal)this).LastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ISystemDataInternal)this).LastModifiedBy = (string) content.GetValueForProperty("LastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ISystemDataInternal)this).LastModifiedBy, global::System.Convert.ToString); } if (content.Contains("LastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ISystemDataInternal)this).LastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType?) content.GetValueForProperty("LastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ISystemDataInternal)this).LastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ISystemDataInternal)this).LastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType?) content.GetValueForProperty("LastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ISystemDataInternal)this).LastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType.CreateFrom); } if (content.Contains("LastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ISystemDataInternal)this).LastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("LastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ISystemDataInternal)this).LastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ISystemDataInternal)this).LastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("LastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ISystemDataInternal)this).LastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -142,27 +144,27 @@ internal SystemData(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("CreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ISystemDataInternal)this).CreatedBy = (string) content.GetValueForProperty("CreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ISystemDataInternal)this).CreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ISystemDataInternal)this).CreatedBy = (string) content.GetValueForProperty("CreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ISystemDataInternal)this).CreatedBy, global::System.Convert.ToString); } if (content.Contains("CreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ISystemDataInternal)this).CreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType?) content.GetValueForProperty("CreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ISystemDataInternal)this).CreatedByType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ISystemDataInternal)this).CreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType?) content.GetValueForProperty("CreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ISystemDataInternal)this).CreatedByType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType.CreateFrom); } if (content.Contains("CreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ISystemDataInternal)this).CreatedAt = (global::System.DateTime?) content.GetValueForProperty("CreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ISystemDataInternal)this).CreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ISystemDataInternal)this).CreatedAt = (global::System.DateTime?) content.GetValueForProperty("CreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ISystemDataInternal)this).CreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("LastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ISystemDataInternal)this).LastModifiedBy = (string) content.GetValueForProperty("LastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ISystemDataInternal)this).LastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ISystemDataInternal)this).LastModifiedBy = (string) content.GetValueForProperty("LastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ISystemDataInternal)this).LastModifiedBy, global::System.Convert.ToString); } if (content.Contains("LastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ISystemDataInternal)this).LastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType?) content.GetValueForProperty("LastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ISystemDataInternal)this).LastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ISystemDataInternal)this).LastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType?) content.GetValueForProperty("LastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ISystemDataInternal)this).LastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.CreatedByType.CreateFrom); } if (content.Contains("LastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ISystemDataInternal)this).LastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("LastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ISystemDataInternal)this).LastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ISystemDataInternal)this).LastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("LastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ISystemDataInternal)this).LastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } AfterDeserializePSObject(content); } diff --git a/src/ServiceLinker/generated/api/Models/Api20/SystemData.TypeConverter.cs b/src/ServiceLinker/generated/api/Models/Api30/SystemData.TypeConverter.cs similarity index 82% rename from src/ServiceLinker/generated/api/Models/Api20/SystemData.TypeConverter.cs rename to src/ServiceLinker/generated/api/Models/Api30/SystemData.TypeConverter.cs index ab0a3c9dc566..2df403b4eaba 100644 --- a/src/ServiceLinker/generated/api/Models/Api20/SystemData.TypeConverter.cs +++ b/src/ServiceLinker/generated/api/Models/Api30/SystemData.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30 { using Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell; @@ -14,19 +14,19 @@ public partial class SystemDataTypeConverter : global::System.Management.Automat { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the . + /// Determines if the converter can convert the parameter to the type. /// /// the instance to check if it can be converted to the type. @@ -74,19 +74,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -98,21 +99,20 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ISystemData ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ISystemData ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ISystemData).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ISystemData).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/ServiceLinker/generated/api/Models/Api20/SystemData.cs b/src/ServiceLinker/generated/api/Models/Api30/SystemData.cs similarity index 99% rename from src/ServiceLinker/generated/api/Models/Api20/SystemData.cs rename to src/ServiceLinker/generated/api/Models/Api30/SystemData.cs index 9a05fb5b8792..8b0ec13df116 100644 --- a/src/ServiceLinker/generated/api/Models/Api20/SystemData.cs +++ b/src/ServiceLinker/generated/api/Models/Api30/SystemData.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30 { using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; /// Metadata pertaining to creation and last modification of the resource. public partial class SystemData : - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ISystemData, - Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ISystemDataInternal + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ISystemData, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ISystemDataInternal { /// Backing field for property. diff --git a/src/ServiceLinker/generated/api/Models/Api20/SystemData.json.cs b/src/ServiceLinker/generated/api/Models/Api30/SystemData.json.cs similarity index 98% rename from src/ServiceLinker/generated/api/Models/Api20/SystemData.json.cs rename to src/ServiceLinker/generated/api/Models/Api30/SystemData.json.cs index 29569022bd07..017fd580f89c 100644 --- a/src/ServiceLinker/generated/api/Models/Api20/SystemData.json.cs +++ b/src/ServiceLinker/generated/api/Models/Api30/SystemData.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30 { using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class SystemData partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ISystemData. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ISystemData. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ISystemData. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ISystemData. /// - public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ISystemData FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ISystemData FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json ? new SystemData(json) : null; } diff --git a/src/ServiceLinker/generated/api/Models/ServiceLinkerIdentity.PowerShell.cs b/src/ServiceLinker/generated/api/Models/ServiceLinkerIdentity.PowerShell.cs index b3a861462959..e476e55f7989 100644 --- a/src/ServiceLinker/generated/api/Models/ServiceLinkerIdentity.PowerShell.cs +++ b/src/ServiceLinker/generated/api/Models/ServiceLinkerIdentity.PowerShell.cs @@ -30,7 +30,8 @@ public partial class ServiceLinkerIdentity /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -42,7 +43,8 @@ public partial class ServiceLinkerIdentity /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -98,6 +100,26 @@ internal ServiceLinkerIdentity(global::System.Collections.IDictionary content) return; } // actually deserialize + if (content.Contains("SubscriptionId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentityInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentityInternal)this).SubscriptionId, global::System.Convert.ToString); + } + if (content.Contains("ResourceGroupName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentityInternal)this).ResourceGroupName = (string) content.GetValueForProperty("ResourceGroupName",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentityInternal)this).ResourceGroupName, global::System.Convert.ToString); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentityInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentityInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("DryrunName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentityInternal)this).DryrunName = (string) content.GetValueForProperty("DryrunName",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentityInternal)this).DryrunName, global::System.Convert.ToString); + } + if (content.Contains("ConnectorName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentityInternal)this).ConnectorName = (string) content.GetValueForProperty("ConnectorName",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentityInternal)this).ConnectorName, global::System.Convert.ToString); + } if (content.Contains("ResourceUri")) { ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentityInternal)this).ResourceUri = (string) content.GetValueForProperty("ResourceUri",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentityInternal)this).ResourceUri, global::System.Convert.ToString); @@ -127,6 +149,26 @@ internal ServiceLinkerIdentity(global::System.Management.Automation.PSObject con return; } // actually deserialize + if (content.Contains("SubscriptionId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentityInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentityInternal)this).SubscriptionId, global::System.Convert.ToString); + } + if (content.Contains("ResourceGroupName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentityInternal)this).ResourceGroupName = (string) content.GetValueForProperty("ResourceGroupName",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentityInternal)this).ResourceGroupName, global::System.Convert.ToString); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentityInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentityInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("DryrunName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentityInternal)this).DryrunName = (string) content.GetValueForProperty("DryrunName",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentityInternal)this).DryrunName, global::System.Convert.ToString); + } + if (content.Contains("ConnectorName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentityInternal)this).ConnectorName = (string) content.GetValueForProperty("ConnectorName",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentityInternal)this).ConnectorName, global::System.Convert.ToString); + } if (content.Contains("ResourceUri")) { ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentityInternal)this).ResourceUri = (string) content.GetValueForProperty("ResourceUri",((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentityInternal)this).ResourceUri, global::System.Convert.ToString); diff --git a/src/ServiceLinker/generated/api/Models/ServiceLinkerIdentity.TypeConverter.cs b/src/ServiceLinker/generated/api/Models/ServiceLinkerIdentity.TypeConverter.cs index b914cfbf3c67..7be4384d6954 100644 --- a/src/ServiceLinker/generated/api/Models/ServiceLinkerIdentity.TypeConverter.cs +++ b/src/ServiceLinker/generated/api/Models/ServiceLinkerIdentity.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class ServiceLinkerIdentityTypeConverter : global::System.Managem { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the . + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -80,19 +80,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -104,8 +105,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/ServiceLinker/generated/api/Models/ServiceLinkerIdentity.cs b/src/ServiceLinker/generated/api/Models/ServiceLinkerIdentity.cs index b287fc2cdeb3..3b300f19461e 100644 --- a/src/ServiceLinker/generated/api/Models/ServiceLinkerIdentity.cs +++ b/src/ServiceLinker/generated/api/Models/ServiceLinkerIdentity.cs @@ -12,6 +12,20 @@ public partial class ServiceLinkerIdentity : Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentityInternal { + /// Backing field for property. + private string _connectorName; + + /// The name of resource. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] + public string ConnectorName { get => this._connectorName; set => this._connectorName = value; } + + /// Backing field for property. + private string _dryrunName; + + /// The name of dryrun. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] + public string DryrunName { get => this._dryrunName; set => this._dryrunName = value; } + /// Backing field for property. private string _id; @@ -26,6 +40,20 @@ public partial class ServiceLinkerIdentity : [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] public string LinkerName { get => this._linkerName; set => this._linkerName = value; } + /// Backing field for property. + private string _location; + + /// The name of Azure region. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] + public string Location { get => this._location; set => this._location = value; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + /// Backing field for property. private string _resourceUri; @@ -35,6 +63,13 @@ public partial class ServiceLinkerIdentity : [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] public string ResourceUri { get => this._resourceUri; set => this._resourceUri = value; } + /// Backing field for property. + private string _subscriptionId; + + /// The ID of the target subscription. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Origin(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.PropertyOrigin.Owned)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + /// Creates an new instance. public ServiceLinkerIdentity() { @@ -44,6 +79,22 @@ public ServiceLinkerIdentity() public partial interface IServiceLinkerIdentity : Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IJsonSerializable { + /// The name of resource. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The name of resource.", + SerializedName = @"connectorName", + PossibleTypes = new [] { typeof(string) })] + string ConnectorName { get; set; } + /// The name of dryrun. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The name of dryrun.", + SerializedName = @"dryrunName", + PossibleTypes = new [] { typeof(string) })] + string DryrunName { get; set; } /// Resource identity path [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( Required = false, @@ -60,6 +111,22 @@ public partial interface IServiceLinkerIdentity : SerializedName = @"linkerName", PossibleTypes = new [] { typeof(string) })] string LinkerName { get; set; } + /// The name of Azure region. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The name of Azure region.", + SerializedName = @"location", + PossibleTypes = new [] { typeof(string) })] + string Location { get; set; } + /// The name of the resource group. The name is case insensitive. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + string ResourceGroupName { get; set; } /// /// The fully qualified Azure Resource manager identifier of the resource to be connected. /// @@ -70,19 +137,37 @@ public partial interface IServiceLinkerIdentity : SerializedName = @"resourceUri", PossibleTypes = new [] { typeof(string) })] string ResourceUri { get; set; } + /// The ID of the target subscription. + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The ID of the target subscription.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + string SubscriptionId { get; set; } } internal partial interface IServiceLinkerIdentityInternal { + /// The name of resource. + string ConnectorName { get; set; } + /// The name of dryrun. + string DryrunName { get; set; } /// Resource identity path string Id { get; set; } /// The name Linker resource. string LinkerName { get; set; } + /// The name of Azure region. + string Location { get; set; } + /// The name of the resource group. The name is case insensitive. + string ResourceGroupName { get; set; } /// /// The fully qualified Azure Resource manager identifier of the resource to be connected. /// string ResourceUri { get; set; } + /// The ID of the target subscription. + string SubscriptionId { get; set; } } } \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Models/ServiceLinkerIdentity.json.cs b/src/ServiceLinker/generated/api/Models/ServiceLinkerIdentity.json.cs index 77b66bc5f357..9fe970417783 100644 --- a/src/ServiceLinker/generated/api/Models/ServiceLinkerIdentity.json.cs +++ b/src/ServiceLinker/generated/api/Models/ServiceLinkerIdentity.json.cs @@ -76,6 +76,11 @@ internal ServiceLinkerIdentity(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker. { return; } + {_subscriptionId = If( json?.PropertyT("subscriptionId"), out var __jsonSubscriptionId) ? (string)__jsonSubscriptionId : (string)SubscriptionId;} + {_resourceGroupName = If( json?.PropertyT("resourceGroupName"), out var __jsonResourceGroupName) ? (string)__jsonResourceGroupName : (string)ResourceGroupName;} + {_location = If( json?.PropertyT("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)Location;} + {_dryrunName = If( json?.PropertyT("dryrunName"), out var __jsonDryrunName) ? (string)__jsonDryrunName : (string)DryrunName;} + {_connectorName = If( json?.PropertyT("connectorName"), out var __jsonConnectorName) ? (string)__jsonConnectorName : (string)ConnectorName;} {_resourceUri = If( json?.PropertyT("resourceUri"), out var __jsonResourceUri) ? (string)__jsonResourceUri : (string)ResourceUri;} {_linkerName = If( json?.PropertyT("linkerName"), out var __jsonLinkerName) ? (string)__jsonLinkerName : (string)LinkerName;} {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} @@ -101,6 +106,11 @@ public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode To { return container; } + AddIf( null != (((object)this._subscriptionId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonString(this._subscriptionId.ToString()) : null, "subscriptionId" ,container.Add ); + AddIf( null != (((object)this._resourceGroupName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonString(this._resourceGroupName.ToString()) : null, "resourceGroupName" ,container.Add ); + AddIf( null != (((object)this._location)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonString(this._location.ToString()) : null, "location" ,container.Add ); + AddIf( null != (((object)this._dryrunName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonString(this._dryrunName.ToString()) : null, "dryrunName" ,container.Add ); + AddIf( null != (((object)this._connectorName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonString(this._connectorName.ToString()) : null, "connectorName" ,container.Add ); AddIf( null != (((object)this._resourceUri)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonString(this._resourceUri.ToString()) : null, "resourceUri" ,container.Add ); AddIf( null != (((object)this._linkerName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonString(this._linkerName.ToString()) : null, "linkerName" ,container.Add ); AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); diff --git a/src/ServiceLinker/generated/api/ServiceLinker.cs b/src/ServiceLinker/generated/api/ServiceLinker.cs index 2ba9affcbeae..ec906d8e4f73 100644 --- a/src/ServiceLinker/generated/api/ServiceLinker.cs +++ b/src/ServiceLinker/generated/api/ServiceLinker.cs @@ -14,11 +14,4274 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker public partial class ServiceLinker { - /// Create or update linker resource. + /// + /// Lists the configuration names generated by Service Connector for all target, client types, auth types. + /// + /// OData filter options. + /// OData skipToken option for pagination. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ConfigurationNamesList(string Filter, string SkipToken, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + { + var apiVersion = @"2022-11-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/providers/Microsoft.ServiceLinker/configurationNames" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (string.IsNullOrEmpty(Filter) ? global::System.String.Empty : "$filter=" + global::System.Uri.EscapeDataString(Filter)) + + "&" + + (string.IsNullOrEmpty(SkipToken) ? global::System.String.Empty : "$skipToken=" + global::System.Uri.EscapeDataString(SkipToken)) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ConfigurationNamesList_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// + /// Lists the configuration names generated by Service Connector for all target, client types, auth types. + /// + /// + /// OData filter options. + /// OData skipToken option for pagination. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ConfigurationNamesListViaIdentity(global::System.String viaIdentity, string Filter, string SkipToken, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + { + var apiVersion = @"2022-11-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/providers/Microsoft.ServiceLinker/configurationNames$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/providers/Microsoft.ServiceLinker/configurationNames'"); + } + + // replace URI parameters with values from identity + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/providers/Microsoft.ServiceLinker/configurationNames" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (string.IsNullOrEmpty(Filter) ? global::System.String.Empty : "$filter=" + global::System.Uri.EscapeDataString(Filter)) + + "&" + + (string.IsNullOrEmpty(SkipToken) ? global::System.String.Empty : "$skipToken=" + global::System.Uri.EscapeDataString(SkipToken)) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ConfigurationNamesList_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ConfigurationNamesList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationNameResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// OData filter options. + /// OData skipToken option for pagination. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ConfigurationNamesList_Validate(string Filter, string SkipToken, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(Filter),Filter); + await eventListener.AssertNotNull(nameof(SkipToken),SkipToken); + } + } + + /// create a dryrun job to do necessary check before actual creation + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of Azure region. + /// The name of dryrun. + /// dryrun resource. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ConnectorCreateDryrun(string subscriptionId, string resourceGroupName, string location, string dryrunName, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResource body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + { + var apiVersion = @"2022-11-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourcegroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.ServiceLinker/locations/" + + global::System.Uri.EscapeDataString(location) + + "/dryruns/" + + global::System.Uri.EscapeDataString(dryrunName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ConnectorCreateDryrun_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// create a dryrun job to do necessary check before actual creation + /// + /// dryrun resource. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ConnectorCreateDryrunViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResource body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + { + var apiVersion = @"2022-11-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourcegroups/(?[^/]+)/providers/Microsoft.ServiceLinker/locations/(?[^/]+)/dryruns/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.ServiceLinker/locations/{location}/dryruns/{dryrunName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var location = _match.Groups["location"].Value; + var dryrunName = _match.Groups["dryrunName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourcegroups/" + + resourceGroupName + + "/providers/Microsoft.ServiceLinker/locations/" + + location + + "/dryruns/" + + dryrunName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ConnectorCreateDryrun_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ConnectorCreateDryrun_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: azure-async-operation + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DryrunResource.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of Azure region. + /// The name of dryrun. + /// dryrun resource. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ConnectorCreateDryrun_Validate(string subscriptionId, string resourceGroupName, string location, string dryrunName, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResource body, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(location),location); + await eventListener.AssertMinimumLength(nameof(location),location,1); + await eventListener.AssertNotNull(nameof(dryrunName),dryrunName); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); + } + } + + /// Create or update Connector resource. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of Azure region. + /// The name of resource. + /// Connector details. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ConnectorCreateOrUpdate(string subscriptionId, string resourceGroupName, string location, string connectorName, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + { + var apiVersion = @"2022-11-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourcegroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.ServiceLinker/locations/" + + global::System.Uri.EscapeDataString(location) + + "/connectors/" + + global::System.Uri.EscapeDataString(connectorName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ConnectorCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Create or update Connector resource. + /// + /// Connector details. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ConnectorCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + { + var apiVersion = @"2022-11-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourcegroups/(?[^/]+)/providers/Microsoft.ServiceLinker/locations/(?[^/]+)/connectors/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.ServiceLinker/locations/{location}/connectors/{connectorName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var location = _match.Groups["location"].Value; + var connectorName = _match.Groups["connectorName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourcegroups/" + + resourceGroupName + + "/providers/Microsoft.ServiceLinker/locations/" + + location + + "/connectors/" + + connectorName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ConnectorCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ConnectorCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: azure-async-operation + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.LinkerResource.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get + /// validation events back. + /// + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of Azure region. + /// The name of resource. + /// Connector details. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ConnectorCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string location, string connectorName, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource body, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(location),location); + await eventListener.AssertMinimumLength(nameof(location),location,1); + await eventListener.AssertNotNull(nameof(connectorName),connectorName); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); + } + } + + /// Delete a Connector. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of Azure region. + /// The name of resource. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ConnectorDelete(string subscriptionId, string resourceGroupName, string location, string connectorName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + { + var apiVersion = @"2022-11-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourcegroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.ServiceLinker/locations/" + + global::System.Uri.EscapeDataString(location) + + "/connectors/" + + global::System.Uri.EscapeDataString(connectorName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Delete, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ConnectorDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); + } + } + + /// delete a dryrun job + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of Azure region. + /// The name of dryrun. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ConnectorDeleteDryrun(string subscriptionId, string resourceGroupName, string location, string dryrunName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + { + var apiVersion = @"2022-11-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourcegroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.ServiceLinker/locations/" + + global::System.Uri.EscapeDataString(location) + + "/dryruns/" + + global::System.Uri.EscapeDataString(dryrunName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Delete, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ConnectorDeleteDryrun_Call(request,onOk,onNoContent,onDefault,eventListener,sender); + } + } + + /// delete a dryrun job + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ConnectorDeleteDryrunViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + { + var apiVersion = @"2022-11-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourcegroups/(?[^/]+)/providers/Microsoft.ServiceLinker/locations/(?[^/]+)/dryruns/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.ServiceLinker/locations/{location}/dryruns/{dryrunName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var location = _match.Groups["location"].Value; + var dryrunName = _match.Groups["dryrunName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourcegroups/" + + resourceGroupName + + "/providers/Microsoft.ServiceLinker/locations/" + + location + + "/dryruns/" + + dryrunName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Delete, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ConnectorDeleteDryrun_Call(request,onOk,onNoContent,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ConnectorDeleteDryrun_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response); + break; + } + case global::System.Net.HttpStatusCode.NoContent: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onNoContent(_response); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of Azure region. + /// The name of dryrun. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ConnectorDeleteDryrun_Validate(string subscriptionId, string resourceGroupName, string location, string dryrunName, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(location),location); + await eventListener.AssertMinimumLength(nameof(location),location,1); + await eventListener.AssertNotNull(nameof(dryrunName),dryrunName); + } + } + + /// Delete a Connector. + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ConnectorDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + { + var apiVersion = @"2022-11-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourcegroups/(?[^/]+)/providers/Microsoft.ServiceLinker/locations/(?[^/]+)/connectors/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.ServiceLinker/locations/{location}/connectors/{connectorName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var location = _match.Groups["location"].Value; + var connectorName = _match.Groups["connectorName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourcegroups/" + + resourceGroupName + + "/providers/Microsoft.ServiceLinker/locations/" + + location + + "/connectors/" + + connectorName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Delete, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ConnectorDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ConnectorDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: azure-async-operation + var _finalUri = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response); + break; + } + case global::System.Net.HttpStatusCode.NoContent: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onNoContent(_response); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of Azure region. + /// The name of resource. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ConnectorDelete_Validate(string subscriptionId, string resourceGroupName, string location, string connectorName, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(location),location); + await eventListener.AssertMinimumLength(nameof(location),location,1); + await eventListener.AssertNotNull(nameof(connectorName),connectorName); + } + } + + /// Generate configurations for a Connector. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of Azure region. + /// The name of resource. + /// Connection Info, including format, secret store, etc + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ConnectorGenerateConfigurations(string subscriptionId, string resourceGroupName, string location, string connectorName, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfo body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + { + var apiVersion = @"2022-11-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourcegroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.ServiceLinker/locations/" + + global::System.Uri.EscapeDataString(location) + + "/connectors/" + + global::System.Uri.EscapeDataString(connectorName) + + "/generateConfigurations" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ConnectorGenerateConfigurations_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Generate configurations for a Connector. + /// + /// Connection Info, including format, secret store, etc + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ConnectorGenerateConfigurationsViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfo body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + { + var apiVersion = @"2022-11-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourcegroups/(?[^/]+)/providers/Microsoft.ServiceLinker/locations/(?[^/]+)/connectors/(?[^/]+)/generateConfigurations$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.ServiceLinker/locations/{location}/connectors/{connectorName}/generateConfigurations'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var location = _match.Groups["location"].Value; + var connectorName = _match.Groups["connectorName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourcegroups/" + + resourceGroupName + + "/providers/Microsoft.ServiceLinker/locations/" + + location + + "/connectors/" + + connectorName + + "/generateConfigurations" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ConnectorGenerateConfigurations_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ConnectorGenerateConfigurations_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will + /// get validation events back. + /// + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of Azure region. + /// The name of resource. + /// Connection Info, including format, secret store, etc + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ConnectorGenerateConfigurations_Validate(string subscriptionId, string resourceGroupName, string location, string connectorName, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfo body, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(location),location); + await eventListener.AssertMinimumLength(nameof(location),location,1); + await eventListener.AssertNotNull(nameof(connectorName),connectorName); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); + } + } + + /// Returns Connector resource for a given name. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of Azure region. + /// The name of resource. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ConnectorGet(string subscriptionId, string resourceGroupName, string location, string connectorName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + { + var apiVersion = @"2022-11-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourcegroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.ServiceLinker/locations/" + + global::System.Uri.EscapeDataString(location) + + "/connectors/" + + global::System.Uri.EscapeDataString(connectorName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ConnectorGet_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// get a dryrun job + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of Azure region. + /// The name of dryrun. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ConnectorGetDryrun(string subscriptionId, string resourceGroupName, string location, string dryrunName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + { + var apiVersion = @"2022-11-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourcegroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.ServiceLinker/locations/" + + global::System.Uri.EscapeDataString(location) + + "/dryruns/" + + global::System.Uri.EscapeDataString(dryrunName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ConnectorGetDryrun_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// get a dryrun job + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ConnectorGetDryrunViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + { + var apiVersion = @"2022-11-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourcegroups/(?[^/]+)/providers/Microsoft.ServiceLinker/locations/(?[^/]+)/dryruns/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.ServiceLinker/locations/{location}/dryruns/{dryrunName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var location = _match.Groups["location"].Value; + var dryrunName = _match.Groups["dryrunName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourcegroups/" + + resourceGroupName + + "/providers/Microsoft.ServiceLinker/locations/" + + location + + "/dryruns/" + + dryrunName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ConnectorGetDryrun_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ConnectorGetDryrun_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DryrunResource.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of Azure region. + /// The name of dryrun. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ConnectorGetDryrun_Validate(string subscriptionId, string resourceGroupName, string location, string dryrunName, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(location),location); + await eventListener.AssertMinimumLength(nameof(location),location,1); + await eventListener.AssertNotNull(nameof(dryrunName),dryrunName); + } + } + + /// Returns Connector resource for a given name. + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ConnectorGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + { + var apiVersion = @"2022-11-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourcegroups/(?[^/]+)/providers/Microsoft.ServiceLinker/locations/(?[^/]+)/connectors/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.ServiceLinker/locations/{location}/connectors/{connectorName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var location = _match.Groups["location"].Value; + var connectorName = _match.Groups["connectorName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourcegroups/" + + resourceGroupName + + "/providers/Microsoft.ServiceLinker/locations/" + + location + + "/connectors/" + + connectorName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ConnectorGet_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ConnectorGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.LinkerResource.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of Azure region. + /// The name of resource. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ConnectorGet_Validate(string subscriptionId, string resourceGroupName, string location, string connectorName, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(location),location); + await eventListener.AssertMinimumLength(nameof(location),location,1); + await eventListener.AssertNotNull(nameof(connectorName),connectorName); + } + } + + /// + /// Returns list of connector which connects to the resource, which supports to config the target service during the resource + /// provision. + /// + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of Azure region. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ConnectorList(string subscriptionId, string resourceGroupName, string location, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + { + var apiVersion = @"2022-11-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourcegroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.ServiceLinker/locations/" + + global::System.Uri.EscapeDataString(location) + + "/connectors" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ConnectorList_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// list dryrun jobs + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of Azure region. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ConnectorListDryrun(string subscriptionId, string resourceGroupName, string location, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + { + var apiVersion = @"2022-11-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourcegroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.ServiceLinker/locations/" + + global::System.Uri.EscapeDataString(location) + + "/dryruns" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ConnectorListDryrun_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// list dryrun jobs + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ConnectorListDryrunViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + { + var apiVersion = @"2022-11-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourcegroups/(?[^/]+)/providers/Microsoft.ServiceLinker/locations/(?[^/]+)/dryruns$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.ServiceLinker/locations/{location}/dryruns'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var location = _match.Groups["location"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourcegroups/" + + resourceGroupName + + "/providers/Microsoft.ServiceLinker/locations/" + + location + + "/dryruns" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ConnectorListDryrun_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ConnectorListDryrun_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DryrunList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of Azure region. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ConnectorListDryrun_Validate(string subscriptionId, string resourceGroupName, string location, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(location),location); + await eventListener.AssertMinimumLength(nameof(location),location,1); + } + } + + /// + /// Returns list of connector which connects to the resource, which supports to config the target service during the resource + /// provision. + /// + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ConnectorListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + { + var apiVersion = @"2022-11-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourcegroups/(?[^/]+)/providers/Microsoft.ServiceLinker/locations/(?[^/]+)/connectors$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.ServiceLinker/locations/{location}/connectors'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var location = _match.Groups["location"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourcegroups/" + + resourceGroupName + + "/providers/Microsoft.ServiceLinker/locations/" + + location + + "/connectors" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ConnectorList_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ConnectorList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ResourceList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of Azure region. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ConnectorList_Validate(string subscriptionId, string resourceGroupName, string location, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(location),location); + await eventListener.AssertMinimumLength(nameof(location),location,1); + } + } + + /// Operation to update an existing Connector. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of Azure region. + /// The name of resource. + /// Connector details. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ConnectorUpdate(string subscriptionId, string resourceGroupName, string location, string connectorName, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + { + var apiVersion = @"2022-11-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourcegroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.ServiceLinker/locations/" + + global::System.Uri.EscapeDataString(location) + + "/connectors/" + + global::System.Uri.EscapeDataString(connectorName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Patch, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ConnectorUpdate_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// update a dryrun job to do necessary check before actual creation + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of Azure region. + /// The name of dryrun. + /// dryrun resource. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ConnectorUpdateDryrun(string subscriptionId, string resourceGroupName, string location, string dryrunName, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + { + var apiVersion = @"2022-11-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourcegroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.ServiceLinker/locations/" + + global::System.Uri.EscapeDataString(location) + + "/dryruns/" + + global::System.Uri.EscapeDataString(dryrunName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Patch, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ConnectorUpdateDryrun_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// update a dryrun job to do necessary check before actual creation + /// + /// dryrun resource. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ConnectorUpdateDryrunViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + { + var apiVersion = @"2022-11-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourcegroups/(?[^/]+)/providers/Microsoft.ServiceLinker/locations/(?[^/]+)/dryruns/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.ServiceLinker/locations/{location}/dryruns/{dryrunName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var location = _match.Groups["location"].Value; + var dryrunName = _match.Groups["dryrunName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourcegroups/" + + resourceGroupName + + "/providers/Microsoft.ServiceLinker/locations/" + + location + + "/dryruns/" + + dryrunName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Patch, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ConnectorUpdateDryrun_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ConnectorUpdateDryrun_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: azure-async-operation + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DryrunResource.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of Azure region. + /// The name of dryrun. + /// dryrun resource. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ConnectorUpdateDryrun_Validate(string subscriptionId, string resourceGroupName, string location, string dryrunName, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPatch body, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(location),location); + await eventListener.AssertMinimumLength(nameof(location),location,1); + await eventListener.AssertNotNull(nameof(dryrunName),dryrunName); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); + } + } + + /// Operation to update an existing Connector. + /// + /// Connector details. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ConnectorUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + { + var apiVersion = @"2022-11-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourcegroups/(?[^/]+)/providers/Microsoft.ServiceLinker/locations/(?[^/]+)/connectors/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.ServiceLinker/locations/{location}/connectors/{connectorName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var location = _match.Groups["location"].Value; + var connectorName = _match.Groups["connectorName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourcegroups/" + + resourceGroupName + + "/providers/Microsoft.ServiceLinker/locations/" + + location + + "/connectors/" + + connectorName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Patch, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ConnectorUpdate_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ConnectorUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: azure-async-operation + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.LinkerResource.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of Azure region. + /// The name of resource. + /// Connector details. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ConnectorUpdate_Validate(string subscriptionId, string resourceGroupName, string location, string connectorName, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatch body, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(location),location); + await eventListener.AssertMinimumLength(nameof(location),location,1); + await eventListener.AssertNotNull(nameof(connectorName),connectorName); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); + } + } + + /// Validate a Connector. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of Azure region. + /// The name of resource. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ConnectorValidate(string subscriptionId, string resourceGroupName, string location, string connectorName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + { + var apiVersion = @"2022-11-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourcegroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.ServiceLinker/locations/" + + global::System.Uri.EscapeDataString(location) + + "/connectors/" + + global::System.Uri.EscapeDataString(connectorName) + + "/validate" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ConnectorValidate_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Validate a Connector. + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ConnectorValidateViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + { + var apiVersion = @"2022-11-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourcegroups/(?[^/]+)/providers/Microsoft.ServiceLinker/locations/(?[^/]+)/connectors/(?[^/]+)/validate$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.ServiceLinker/locations/{location}/connectors/{connectorName}/validate'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var location = _match.Groups["location"].Value; + var connectorName = _match.Groups["connectorName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourcegroups/" + + resourceGroupName + + "/providers/Microsoft.ServiceLinker/locations/" + + location + + "/connectors/" + + connectorName + + "/validate" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ConnectorValidate_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ConnectorValidate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ValidateOperationResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of Azure region. + /// The name of resource. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task ConnectorValidate_Validate(string subscriptionId, string resourceGroupName, string location, string connectorName, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(location),location); + await eventListener.AssertMinimumLength(nameof(location),location,1); + await eventListener.AssertNotNull(nameof(connectorName),connectorName); + } + } + + /// Create or update Linker resource. + /// The fully qualified Azure Resource manager identifier of the resource to be connected. + /// The name Linker resource. + /// + /// Linker details. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task LinkerCreateOrUpdate(string resourceUri, string linkerName, string xMSServiceconnectorUserToken, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + { + var apiVersion = @"2022-11-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/" + + (resourceUri) + + "/providers/Microsoft.ServiceLinker/linkers/" + + global::System.Uri.EscapeDataString(linkerName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // add headers parameters + if (null != xMSServiceconnectorUserToken) + { + request.Headers.Add("x-ms-serviceconnector-user-token",xMSServiceconnectorUserToken); + } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.LinkerCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Create or update Linker resource. + /// + /// + /// Linker details. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task LinkerCreateOrUpdateViaIdentity(global::System.String viaIdentity, string xMSServiceconnectorUserToken, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + { + var apiVersion = @"2022-11-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/(?[^/]+)/providers/Microsoft.ServiceLinker/linkers/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/{resourceUri}/providers/Microsoft.ServiceLinker/linkers/{linkerName}'"); + } + + // replace URI parameters with values from identity + var resourceUri = _match.Groups["resourceUri"].Value; + var linkerName = _match.Groups["linkerName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/" + + resourceUri + + "/providers/Microsoft.ServiceLinker/linkers/" + + linkerName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // add headers parameters + if (null != xMSServiceconnectorUserToken) + { + request.Headers.Add("x-ms-serviceconnector-user-token",xMSServiceconnectorUserToken); + } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.LinkerCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task LinkerCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: azure-async-operation + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.LinkerResource.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// The fully qualified Azure Resource manager identifier of the resource to be connected. + /// The name Linker resource. + /// + /// Linker details. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task LinkerCreateOrUpdate_Validate(string resourceUri, string linkerName, string xMSServiceconnectorUserToken, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource body, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(resourceUri),resourceUri); + await eventListener.AssertNotNull(nameof(linkerName),linkerName); + await eventListener.AssertNotNull(nameof(xMSServiceconnectorUserToken),xMSServiceconnectorUserToken); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); + } + } + + /// Delete a Linker. + /// The fully qualified Azure Resource manager identifier of the resource to be connected. + /// The name Linker resource. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task LinkerDelete(string resourceUri, string linkerName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + { + var apiVersion = @"2022-11-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/" + + (resourceUri) + + "/providers/Microsoft.ServiceLinker/linkers/" + + global::System.Uri.EscapeDataString(linkerName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Delete, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.LinkerDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); + } + } + + /// Delete a Linker. + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task LinkerDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + { + var apiVersion = @"2022-11-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/(?[^/]+)/providers/Microsoft.ServiceLinker/linkers/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/{resourceUri}/providers/Microsoft.ServiceLinker/linkers/{linkerName}'"); + } + + // replace URI parameters with values from identity + var resourceUri = _match.Groups["resourceUri"].Value; + var linkerName = _match.Groups["linkerName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/" + + resourceUri + + "/providers/Microsoft.ServiceLinker/linkers/" + + linkerName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Delete, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.LinkerDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task LinkerDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: azure-async-operation + var _finalUri = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response); + break; + } + case global::System.Net.HttpStatusCode.NoContent: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onNoContent(_response); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// The fully qualified Azure Resource manager identifier of the resource to be connected. + /// The name Linker resource. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task LinkerDelete_Validate(string resourceUri, string linkerName, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(resourceUri),resourceUri); + await eventListener.AssertNotNull(nameof(linkerName),linkerName); + } + } + + /// Returns Linker resource for a given name. + /// The fully qualified Azure Resource manager identifier of the resource to be connected. + /// The name Linker resource. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task LinkerGet(string resourceUri, string linkerName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + { + var apiVersion = @"2022-11-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/" + + (resourceUri) + + "/providers/Microsoft.ServiceLinker/linkers/" + + global::System.Uri.EscapeDataString(linkerName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.LinkerGet_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Returns Linker resource for a given name. + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task LinkerGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + { + var apiVersion = @"2022-11-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/(?[^/]+)/providers/Microsoft.ServiceLinker/linkers/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/{resourceUri}/providers/Microsoft.ServiceLinker/linkers/{linkerName}'"); + } + + // replace URI parameters with values from identity + var resourceUri = _match.Groups["resourceUri"].Value; + var linkerName = _match.Groups["linkerName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/" + + resourceUri + + "/providers/Microsoft.ServiceLinker/linkers/" + + linkerName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.LinkerGet_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task LinkerGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.LinkerResource.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation events + /// back. + /// + /// The fully qualified Azure Resource manager identifier of the resource to be connected. + /// The name Linker resource. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task LinkerGet_Validate(string resourceUri, string linkerName, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(resourceUri),resourceUri); + await eventListener.AssertNotNull(nameof(linkerName),linkerName); + } + } + + /// + /// Returns list of Linkers which connects to the resource. which supports to config both application and target service during + /// the resource provision. + /// + /// The fully qualified Azure Resource manager identifier of the resource to be connected. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task LinkerList(string resourceUri, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + { + var apiVersion = @"2022-11-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/" + + (resourceUri) + + "/providers/Microsoft.ServiceLinker/linkers" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.LinkerList_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// list source configurations for a Linker. + /// The fully qualified Azure Resource manager identifier of the resource to be connected. + /// The name Linker resource. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task LinkerListConfigurations(string resourceUri, string linkerName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + { + var apiVersion = @"2022-11-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/" + + (resourceUri) + + "/providers/Microsoft.ServiceLinker/linkers/" + + global::System.Uri.EscapeDataString(linkerName) + + "/listConfigurations" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.LinkerListConfigurations_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// list source configurations for a Linker. + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task LinkerListConfigurationsViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + { + var apiVersion = @"2022-11-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/(?[^/]+)/providers/Microsoft.ServiceLinker/linkers/(?[^/]+)/listConfigurations$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/{resourceUri}/providers/Microsoft.ServiceLinker/linkers/{linkerName}/listConfigurations'"); + } + + // replace URI parameters with values from identity + var resourceUri = _match.Groups["resourceUri"].Value; + var linkerName = _match.Groups["linkerName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/" + + resourceUri + + "/providers/Microsoft.ServiceLinker/linkers/" + + linkerName + + "/listConfigurations" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.LinkerListConfigurations_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task LinkerListConfigurations_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get + /// validation events back. + /// + /// The fully qualified Azure Resource manager identifier of the resource to be connected. + /// The name Linker resource. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task LinkerListConfigurations_Validate(string resourceUri, string linkerName, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(resourceUri),resourceUri); + await eventListener.AssertNotNull(nameof(linkerName),linkerName); + } + } + + /// + /// Returns list of Linkers which connects to the resource. which supports to config both application and target service during + /// the resource provision. + /// + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task LinkerListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + { + var apiVersion = @"2022-11-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/(?[^/]+)/providers/Microsoft.ServiceLinker/linkers$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/{resourceUri}/providers/Microsoft.ServiceLinker/linkers'"); + } + + // replace URI parameters with values from identity + var resourceUri = _match.Groups["resourceUri"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/" + + resourceUri + + "/providers/Microsoft.ServiceLinker/linkers" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.LinkerList_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task LinkerList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ResourceList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation events + /// back. + /// + /// The fully qualified Azure Resource manager identifier of the resource to be connected. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task LinkerList_Validate(string resourceUri, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(resourceUri),resourceUri); + } + } + + /// Operation to update an existing Linker. + /// The fully qualified Azure Resource manager identifier of the resource to be connected. + /// The name Linker resource. + /// + /// Linker details. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task LinkerUpdate(string resourceUri, string linkerName, string xMSServiceconnectorUserToken, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + { + var apiVersion = @"2022-11-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/" + + (resourceUri) + + "/providers/Microsoft.ServiceLinker/linkers/" + + global::System.Uri.EscapeDataString(linkerName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Patch, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // add headers parameters + if (null != xMSServiceconnectorUserToken) + { + request.Headers.Add("x-ms-serviceconnector-user-token",xMSServiceconnectorUserToken); + } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.LinkerUpdate_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Operation to update an existing Linker. + /// + /// + /// Linker details. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task LinkerUpdateViaIdentity(global::System.String viaIdentity, string xMSServiceconnectorUserToken, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + { + var apiVersion = @"2022-11-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/(?[^/]+)/providers/Microsoft.ServiceLinker/linkers/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/{resourceUri}/providers/Microsoft.ServiceLinker/linkers/{linkerName}'"); + } + + // replace URI parameters with values from identity + var resourceUri = _match.Groups["resourceUri"].Value; + var linkerName = _match.Groups["linkerName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/" + + resourceUri + + "/providers/Microsoft.ServiceLinker/linkers/" + + linkerName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Patch, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // add headers parameters + if (null != xMSServiceconnectorUserToken) + { + request.Headers.Add("x-ms-serviceconnector-user-token",xMSServiceconnectorUserToken); + } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.LinkerUpdate_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task LinkerUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: azure-async-operation + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.LinkerResource.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// /// The fully qualified Azure Resource manager identifier of the resource to be connected. /// The name Linker resource. /// /// Linker details. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task LinkerUpdate_Validate(string resourceUri, string linkerName, string xMSServiceconnectorUserToken, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatch body, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(resourceUri),resourceUri); + await eventListener.AssertNotNull(nameof(linkerName),linkerName); + await eventListener.AssertNotNull(nameof(xMSServiceconnectorUserToken),xMSServiceconnectorUserToken); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); + } + } + + /// Validate a Linker. + /// The fully qualified Azure Resource manager identifier of the resource to be connected. + /// The name Linker resource. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -27,9 +4290,9 @@ public partial class ServiceLinker /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task LinkerCreateOrUpdate(string resourceUri, string linkerName, string xMSServiceconnectorUserToken, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task LinkerValidate(string resourceUri, string linkerName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2022-11-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -39,6 +4302,7 @@ public partial class ServiceLinker + (resourceUri) + "/providers/Microsoft.ServiceLinker/linkers/" + global::System.Uri.EscapeDataString(linkerName) + + "/validateLinker" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -47,29 +4311,17 @@ public partial class ServiceLinker // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Put, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Post, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - // add headers parameters - if (null != xMSServiceconnectorUserToken) - { - request.Headers.Add("x-ms-serviceconnector-user-token",xMSServiceconnectorUserToken); - } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.LinkerCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); + await this.LinkerValidate_Call(request,onOk,onDefault,eventListener,sender); } } - /// Create or update linker resource. + /// Validate a Linker. /// - /// - /// Linker details. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -78,18 +4330,18 @@ public partial class ServiceLinker /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task LinkerCreateOrUpdateViaIdentity(global::System.String viaIdentity, string xMSServiceconnectorUserToken, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task LinkerValidateViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2022-11-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/(?[^/]+)/providers/Microsoft.ServiceLinker/linkers/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/(?[^/]+)/providers/Microsoft.ServiceLinker/linkers/(?[^/]+)/validateLinker$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/{resourceUri}/providers/Microsoft.ServiceLinker/linkers/{linkerName}'"); + throw new global::System.Exception("Invalid identity for URI '/{resourceUri}/providers/Microsoft.ServiceLinker/linkers/{linkerName}/validateLinker'"); } // replace URI parameters with values from identity @@ -101,6 +4353,7 @@ public partial class ServiceLinker + resourceUri + "/providers/Microsoft.ServiceLinker/linkers/" + linkerName + + "/validateLinker" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -109,26 +4362,16 @@ public partial class ServiceLinker // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Put, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Post, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - // add headers parameters - if (null != xMSServiceconnectorUserToken) - { - request.Headers.Add("x-ms-serviceconnector-user-token",xMSServiceconnectorUserToken); - } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.LinkerCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); + await this.LinkerValidate_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -138,7 +4381,7 @@ public partial class ServiceLinker /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task LinkerCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task LinkerValidate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -151,7 +4394,8 @@ public partial class ServiceLinker await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: azure-async-operation + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -235,13 +4479,14 @@ public partial class ServiceLinker } // we are done polling, do a request on final target? // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Get); + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Get); // drop the old response _response?.Dispose(); // make the final call _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } break; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -251,13 +4496,13 @@ public partial class ServiceLinker case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.LinkerResource.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ValidateOperationResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -273,34 +4518,29 @@ public partial class ServiceLinker } /// - /// Validation method for method. Call this like the actual call, but you will get validation + /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// /// The fully qualified Azure Resource manager identifier of the resource to be connected. /// The name Linker resource. - /// - /// Linker details. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task LinkerCreateOrUpdate_Validate(string resourceUri, string linkerName, string xMSServiceconnectorUserToken, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource body, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task LinkerValidate_Validate(string resourceUri, string linkerName, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(resourceUri),resourceUri); await eventListener.AssertNotNull(nameof(linkerName),linkerName); - await eventListener.AssertNotNull(nameof(xMSServiceconnectorUserToken),xMSServiceconnectorUserToken); - await eventListener.AssertNotNull(nameof(body), body); - await eventListener.AssertObjectIsValid(nameof(body), body); } } - /// Delete a link. + /// create a dryrun job to do necessary check before actual creation /// The fully qualified Azure Resource manager identifier of the resource to be connected. - /// The name Linker resource. + /// The name of dryrun. + /// dryrun resource. /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -308,9 +4548,9 @@ public partial class ServiceLinker /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task LinkerDelete(string resourceUri, string linkerName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task LinkersCreateDryrun(string resourceUri, string dryrunName, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResource body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2022-11-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -318,8 +4558,8 @@ public partial class ServiceLinker var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/" + (resourceUri) - + "/providers/Microsoft.ServiceLinker/linkers/" - + global::System.Uri.EscapeDataString(linkerName) + + "/providers/Microsoft.ServiceLinker/dryruns/" + + global::System.Uri.EscapeDataString(dryrunName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -328,19 +4568,23 @@ public partial class ServiceLinker // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Delete, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Put, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.LinkerDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); + await this.LinkersCreateDryrun_Call(request,onOk,onDefault,eventListener,sender); } } - /// Delete a link. + /// create a dryrun job to do necessary check before actual creation /// + /// dryrun resource. /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -348,29 +4592,29 @@ public partial class ServiceLinker /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task LinkerDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task LinkersCreateDryrunViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResource body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2022-11-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/(?[^/]+)/providers/Microsoft.ServiceLinker/linkers/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/(?[^/]+)/providers/Microsoft.ServiceLinker/dryruns/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/{resourceUri}/providers/Microsoft.ServiceLinker/linkers/{linkerName}'"); + throw new global::System.Exception("Invalid identity for URI '/{resourceUri}/providers/Microsoft.ServiceLinker/dryruns/{dryrunName}'"); } // replace URI parameters with values from identity var resourceUri = _match.Groups["resourceUri"].Value; - var linkerName = _match.Groups["linkerName"].Value; + var dryrunName = _match.Groups["dryrunName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/" + resourceUri - + "/providers/Microsoft.ServiceLinker/linkers/" - + linkerName + + "/providers/Microsoft.ServiceLinker/dryruns/" + + dryrunName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -379,19 +4623,22 @@ public partial class ServiceLinker // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Delete, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Put, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.LinkerDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); + await this.LinkersCreateDryrun_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -399,7 +4646,7 @@ public partial class ServiceLinker /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task LinkerDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task LinkersCreateDryrun_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -413,7 +4660,6 @@ public partial class ServiceLinker // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: azure-async-operation - var _finalUri = _response.GetFirstHeader(@"Azure-AsyncOperation"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -497,13 +4743,14 @@ public partial class ServiceLinker } // we are done polling, do a request on final target? // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Get); + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Get); // drop the old response _response?.Dispose(); // make the final call _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } break; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -513,19 +4760,13 @@ public partial class ServiceLinker case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response); - break; - } - case global::System.Net.HttpStatusCode.NoContent: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onNoContent(_response); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DryrunResource.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -541,28 +4782,32 @@ public partial class ServiceLinker } /// - /// Validation method for method. Call this like the actual call, but you will get validation + /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// /// The fully qualified Azure Resource manager identifier of the resource to be connected. - /// The name Linker resource. + /// The name of dryrun. + /// dryrun resource. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task LinkerDelete_Validate(string resourceUri, string linkerName, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task LinkersCreateDryrun_Validate(string resourceUri, string dryrunName, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResource body, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(resourceUri),resourceUri); - await eventListener.AssertNotNull(nameof(linkerName),linkerName); + await eventListener.AssertNotNull(nameof(dryrunName),dryrunName); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); } } - /// Returns Linker resource for a given name. + /// delete a dryrun job /// The fully qualified Azure Resource manager identifier of the resource to be connected. - /// The name Linker resource. + /// The name of dryrun. /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -570,9 +4815,9 @@ public partial class ServiceLinker /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task LinkerGet(string resourceUri, string linkerName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task LinkersDeleteDryrun(string resourceUri, string dryrunName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2022-11-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -580,8 +4825,8 @@ public partial class ServiceLinker var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/" + (resourceUri) - + "/providers/Microsoft.ServiceLinker/linkers/" - + global::System.Uri.EscapeDataString(linkerName) + + "/providers/Microsoft.ServiceLinker/dryruns/" + + global::System.Uri.EscapeDataString(dryrunName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -590,18 +4835,19 @@ public partial class ServiceLinker // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Get, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Delete, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.LinkerGet_Call(request,onOk,onDefault,eventListener,sender); + await this.LinkersDeleteDryrun_Call(request,onOk,onNoContent,onDefault,eventListener,sender); } } - /// Returns Linker resource for a given name. + /// delete a dryrun job /// /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -609,29 +4855,29 @@ public partial class ServiceLinker /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task LinkerGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task LinkersDeleteDryrunViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2022-11-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/(?[^/]+)/providers/Microsoft.ServiceLinker/linkers/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/(?[^/]+)/providers/Microsoft.ServiceLinker/dryruns/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/{resourceUri}/providers/Microsoft.ServiceLinker/linkers/{linkerName}'"); + throw new global::System.Exception("Invalid identity for URI '/{resourceUri}/providers/Microsoft.ServiceLinker/dryruns/{dryrunName}'"); } // replace URI parameters with values from identity var resourceUri = _match.Groups["resourceUri"].Value; - var linkerName = _match.Groups["linkerName"].Value; + var dryrunName = _match.Groups["dryrunName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/" + resourceUri - + "/providers/Microsoft.ServiceLinker/linkers/" - + linkerName + + "/providers/Microsoft.ServiceLinker/dryruns/" + + dryrunName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -640,18 +4886,19 @@ public partial class ServiceLinker // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Get, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Delete, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.LinkerGet_Call(request,onOk,onDefault,eventListener,sender); + await this.LinkersDeleteDryrun_Call(request,onOk,onNoContent,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -659,7 +4906,7 @@ public partial class ServiceLinker /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task LinkerGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task LinkersDeleteDryrun_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -677,13 +4924,19 @@ public partial class ServiceLinker case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.LinkerResource.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response); + break; + } + case global::System.Net.HttpStatusCode.NoContent: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onNoContent(_response); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -695,69 +4948,32 @@ public partial class ServiceLinker _response?.Dispose(); request?.Dispose(); } - } - } - - /// - /// Validation method for method. Call this like the actual call, but you will get validation events - /// back. - /// - /// The fully qualified Azure Resource manager identifier of the resource to be connected. - /// The name Linker resource. - /// an instance that will receive events. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task LinkerGet_Validate(string resourceUri, string linkerName, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener) - { - using( NoSynchronizationContext ) - { - await eventListener.AssertNotNull(nameof(resourceUri),resourceUri); - await eventListener.AssertNotNull(nameof(linkerName),linkerName); - } - } - - /// Returns list of Linkers which connects to the resource. - /// The fully qualified Azure Resource manager identifier of the resource to be connected. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task LinkerList(string resourceUri, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) - { - var apiVersion = @"2022-05-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/" - + (resourceUri) - + "/providers/Microsoft.ServiceLinker/linkers" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + } + } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.LinkerList_Call(request,onOk,onDefault,eventListener,sender); + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// The fully qualified Azure Resource manager identifier of the resource to be connected. + /// The name of dryrun. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task LinkersDeleteDryrun_Validate(string resourceUri, string dryrunName, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(resourceUri),resourceUri); + await eventListener.AssertNotNull(nameof(dryrunName),dryrunName); } } - /// list source configurations for a linker. + /// Generate configurations for a Linker. /// The fully qualified Azure Resource manager identifier of the resource to be connected. /// The name Linker resource. + /// Connection Info, including format, secret store, etc /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -766,9 +4982,9 @@ public partial class ServiceLinker /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task LinkerListConfigurations(string resourceUri, string linkerName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task LinkersGenerateConfigurations(string resourceUri, string linkerName, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfo body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2022-11-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -778,7 +4994,7 @@ public partial class ServiceLinker + (resourceUri) + "/providers/Microsoft.ServiceLinker/linkers/" + global::System.Uri.EscapeDataString(linkerName) - + "/listConfigurations" + + "/generateConfigurations" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -791,13 +5007,18 @@ public partial class ServiceLinker await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.LinkerListConfigurations_Call(request,onOk,onDefault,eventListener,sender); + await this.LinkersGenerateConfigurations_Call(request,onOk,onDefault,eventListener,sender); } } - /// list source configurations for a linker. + /// Generate configurations for a Linker. /// + /// Connection Info, including format, secret store, etc /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -806,18 +5027,18 @@ public partial class ServiceLinker /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task LinkerListConfigurationsViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task LinkersGenerateConfigurationsViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfo body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2022-11-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/(?[^/]+)/providers/Microsoft.ServiceLinker/linkers/(?[^/]+)/listConfigurations$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/(?[^/]+)/providers/Microsoft.ServiceLinker/linkers/(?[^/]+)/generateConfigurations$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/{resourceUri}/providers/Microsoft.ServiceLinker/linkers/{linkerName}/listConfigurations'"); + throw new global::System.Exception("Invalid identity for URI '/{resourceUri}/providers/Microsoft.ServiceLinker/linkers/{linkerName}/generateConfigurations'"); } // replace URI parameters with values from identity @@ -829,7 +5050,7 @@ public partial class ServiceLinker + resourceUri + "/providers/Microsoft.ServiceLinker/linkers/" + linkerName - + "/listConfigurations" + + "/generateConfigurations" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -842,12 +5063,16 @@ public partial class ServiceLinker await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.LinkerListConfigurations_Call(request,onOk,onDefault,eventListener,sender); + await this.LinkersGenerateConfigurations_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -857,7 +5082,7 @@ public partial class ServiceLinker /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task LinkerListConfigurations_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task LinkersGenerateConfigurations_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -875,13 +5100,13 @@ public partial class ServiceLinker case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.SourceConfigurationResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -897,25 +5122,68 @@ public partial class ServiceLinker } /// - /// Validation method for method. Call this like the actual call, but you will get - /// validation events back. + /// Validation method for method. Call this like the actual call, but you will + /// get validation events back. /// /// The fully qualified Azure Resource manager identifier of the resource to be connected. /// The name Linker resource. + /// Connection Info, including format, secret store, etc /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task LinkerListConfigurations_Validate(string resourceUri, string linkerName, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task LinkersGenerateConfigurations_Validate(string resourceUri, string linkerName, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfo body, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(resourceUri),resourceUri); await eventListener.AssertNotNull(nameof(linkerName),linkerName); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); + } + } + + /// get a dryrun job + /// The fully qualified Azure Resource manager identifier of the resource to be connected. + /// The name of dryrun. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task LinkersGetDryrun(string resourceUri, string dryrunName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + { + var apiVersion = @"2022-11-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/" + + (resourceUri) + + "/providers/Microsoft.ServiceLinker/dryruns/" + + global::System.Uri.EscapeDataString(dryrunName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.LinkersGetDryrun_Call(request,onOk,onDefault,eventListener,sender); } } - /// Returns list of Linkers which connects to the resource. + /// get a dryrun job /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -925,27 +5193,29 @@ public partial class ServiceLinker /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task LinkerListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task LinkersGetDryrunViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2022-11-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/(?[^/]+)/providers/Microsoft.ServiceLinker/linkers$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/(?[^/]+)/providers/Microsoft.ServiceLinker/dryruns/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/{resourceUri}/providers/Microsoft.ServiceLinker/linkers'"); + throw new global::System.Exception("Invalid identity for URI '/{resourceUri}/providers/Microsoft.ServiceLinker/dryruns/{dryrunName}'"); } // replace URI parameters with values from identity var resourceUri = _match.Groups["resourceUri"].Value; + var dryrunName = _match.Groups["dryrunName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/" + resourceUri - + "/providers/Microsoft.ServiceLinker/linkers" + + "/providers/Microsoft.ServiceLinker/dryruns/" + + dryrunName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -959,11 +5229,11 @@ public partial class ServiceLinker await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.LinkerList_Call(request,onOk,onDefault,eventListener,sender); + await this.LinkersGetDryrun_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -973,7 +5243,7 @@ public partial class ServiceLinker /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task LinkerList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task LinkersGetDryrun_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -991,13 +5261,13 @@ public partial class ServiceLinker case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.LinkerList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DryrunResource.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -1013,27 +5283,26 @@ public partial class ServiceLinker } /// - /// Validation method for method. Call this like the actual call, but you will get validation events - /// back. + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. /// /// The fully qualified Azure Resource manager identifier of the resource to be connected. + /// The name of dryrun. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task LinkerList_Validate(string resourceUri, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task LinkersGetDryrun_Validate(string resourceUri, string dryrunName, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(resourceUri),resourceUri); + await eventListener.AssertNotNull(nameof(dryrunName),dryrunName); } } - /// Operation to update an existing link. + /// list dryrun jobs /// The fully qualified Azure Resource manager identifier of the resource to be connected. - /// The name Linker resource. - /// - /// Linker details. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -1042,9 +5311,9 @@ public partial class ServiceLinker /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task LinkerUpdate(string resourceUri, string linkerName, string xMSServiceconnectorUserToken, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task LinkersListDryrun(string resourceUri, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2022-11-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1052,8 +5321,7 @@ public partial class ServiceLinker var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/" + (resourceUri) - + "/providers/Microsoft.ServiceLinker/linkers/" - + global::System.Uri.EscapeDataString(linkerName) + + "/providers/Microsoft.ServiceLinker/dryruns" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -1062,29 +5330,17 @@ public partial class ServiceLinker // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Patch, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Get, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - // add headers parameters - if (null != xMSServiceconnectorUserToken) - { - request.Headers.Add("x-ms-serviceconnector-user-token",xMSServiceconnectorUserToken); - } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.LinkerUpdate_Call(request,onOk,onDefault,eventListener,sender); + await this.LinkersListDryrun_Call(request,onOk,onDefault,eventListener,sender); } } - /// Operation to update an existing link. + /// list dryrun jobs /// - /// - /// Linker details. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -1093,29 +5349,27 @@ public partial class ServiceLinker /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task LinkerUpdateViaIdentity(global::System.String viaIdentity, string xMSServiceconnectorUserToken, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task LinkersListDryrunViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2022-11-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/(?[^/]+)/providers/Microsoft.ServiceLinker/linkers/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/(?[^/]+)/providers/Microsoft.ServiceLinker/dryruns$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/{resourceUri}/providers/Microsoft.ServiceLinker/linkers/{linkerName}'"); + throw new global::System.Exception("Invalid identity for URI '/{resourceUri}/providers/Microsoft.ServiceLinker/dryruns'"); } // replace URI parameters with values from identity var resourceUri = _match.Groups["resourceUri"].Value; - var linkerName = _match.Groups["linkerName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/" + resourceUri - + "/providers/Microsoft.ServiceLinker/linkers/" - + linkerName + + "/providers/Microsoft.ServiceLinker/dryruns" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -1124,26 +5378,16 @@ public partial class ServiceLinker // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Patch, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Get, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - // add headers parameters - if (null != xMSServiceconnectorUserToken) - { - request.Headers.Add("x-ms-serviceconnector-user-token",xMSServiceconnectorUserToken); - } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.LinkerUpdate_Call(request,onOk,onDefault,eventListener,sender); + await this.LinkersListDryrun_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -1153,7 +5397,7 @@ public partial class ServiceLinker /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task LinkerUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task LinkersListDryrun_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -1164,101 +5408,6 @@ public partial class ServiceLinker await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: azure-async-operation - var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = _response.GetFirstHeader(@"Location"); - while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - - // get the delay before polling. (default to 30 seconds if not present) - int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } - - // start the delay timer (we'll await later...) - var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); - - // while we wait, let's grab the headers and get ready to poll. - if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { - asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - } - if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { - location = _response.GetFirstHeader(@"Location"); - } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; - request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Get); - - // and let's look at the current response body and see if we have some information we can give back to the listener - var content = await _response.Content.ReadAsStringAsync(); - await waiting; - - // check for cancellation - if( eventListener.Token.IsCancellationRequested ) { return; } - - // drop the old response - _response?.Dispose(); - - // make the polling call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - - // if we got back an OK, take a peek inside and see if it's done - if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) - { - var error = false; - try { - if( Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonObject json) - { - var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); - if( state is null ) - { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; - } - - switch( state?.ToString()?.ToLower() ) - { - case "failed": - error = true; - break; - case "succeeded": - case "canceled": - // we're done polling. - break; - - default: - // need to keep polling! - _response.StatusCode = global::System.Net.HttpStatusCode.Created; - continue; - } - } - } catch { - // if we run into a problem peeking into the result, - // we really don't want to do anything special. - } - if (error) { - throw new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.UndeclaredResponseException(_response); - } - } - - // check for terminal status code - if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - continue; - } - // we are done polling, do a request on final target? - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Get); - - // drop the old response - _response?.Dispose(); - - // make the final call - _response = await sender.SendAsync(request, eventListener); - break; - } var _contentType = _response.Content.Headers.ContentType?.MediaType; switch ( _response.StatusCode ) @@ -1266,13 +5415,13 @@ public partial class ServiceLinker case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.LinkerResource.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DryrunList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -1288,32 +5437,26 @@ public partial class ServiceLinker } /// - /// Validation method for method. Call this like the actual call, but you will get validation + /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// /// The fully qualified Azure Resource manager identifier of the resource to be connected. - /// The name Linker resource. - /// - /// Linker details. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task LinkerUpdate_Validate(string resourceUri, string linkerName, string xMSServiceconnectorUserToken, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPatch body, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task LinkersListDryrun_Validate(string resourceUri, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(resourceUri),resourceUri); - await eventListener.AssertNotNull(nameof(linkerName),linkerName); - await eventListener.AssertNotNull(nameof(xMSServiceconnectorUserToken),xMSServiceconnectorUserToken); - await eventListener.AssertNotNull(nameof(body), body); - await eventListener.AssertObjectIsValid(nameof(body), body); } } - /// Validate a link. + /// add a dryrun job to do necessary check before actual creation /// The fully qualified Azure Resource manager identifier of the resource to be connected. - /// The name Linker resource. + /// The name of dryrun. + /// dryrun resource. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -1322,9 +5465,9 @@ public partial class ServiceLinker /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task LinkerValidate(string resourceUri, string linkerName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task LinkersUpdateDryrun(string resourceUri, string dryrunName, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2022-11-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1332,9 +5475,8 @@ public partial class ServiceLinker var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/" + (resourceUri) - + "/providers/Microsoft.ServiceLinker/linkers/" - + global::System.Uri.EscapeDataString(linkerName) - + "/validateLinker" + + "/providers/Microsoft.ServiceLinker/dryruns/" + + global::System.Uri.EscapeDataString(dryrunName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -1343,17 +5485,22 @@ public partial class ServiceLinker // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Post, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Patch, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.LinkerValidate_Call(request,onOk,onDefault,eventListener,sender); + await this.LinkersUpdateDryrun_Call(request,onOk,onDefault,eventListener,sender); } } - /// Validate a link. + /// add a dryrun job to do necessary check before actual creation /// + /// dryrun resource. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -1362,30 +5509,29 @@ public partial class ServiceLinker /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task LinkerValidateViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task LinkersUpdateDryrunViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2022-11-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/(?[^/]+)/providers/Microsoft.ServiceLinker/linkers/(?[^/]+)/validateLinker$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/(?[^/]+)/providers/Microsoft.ServiceLinker/dryruns/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/{resourceUri}/providers/Microsoft.ServiceLinker/linkers/{linkerName}/validateLinker'"); + throw new global::System.Exception("Invalid identity for URI '/{resourceUri}/providers/Microsoft.ServiceLinker/dryruns/{dryrunName}'"); } // replace URI parameters with values from identity var resourceUri = _match.Groups["resourceUri"].Value; - var linkerName = _match.Groups["linkerName"].Value; + var dryrunName = _match.Groups["dryrunName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/" + resourceUri - + "/providers/Microsoft.ServiceLinker/linkers/" - + linkerName - + "/validateLinker" + + "/providers/Microsoft.ServiceLinker/dryruns/" + + dryrunName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -1394,16 +5540,20 @@ public partial class ServiceLinker // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Post, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Patch, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.LinkerValidate_Call(request,onOk,onDefault,eventListener,sender); + await this.LinkersUpdateDryrun_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -1413,7 +5563,7 @@ public partial class ServiceLinker /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task LinkerValidate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task LinkersUpdateDryrun_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -1427,7 +5577,6 @@ public partial class ServiceLinker // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: azure-async-operation - var _finalUri = _response.GetFirstHeader(@"Azure-AsyncOperation"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -1511,13 +5660,14 @@ public partial class ServiceLinker } // we are done polling, do a request on final target? // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Get); + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Get); // drop the old response _response?.Dispose(); // make the final call _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } break; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -1527,13 +5677,13 @@ public partial class ServiceLinker case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ValidateOperationResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DryrunResource.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -1549,21 +5699,24 @@ public partial class ServiceLinker } /// - /// Validation method for method. Call this like the actual call, but you will get validation + /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// /// The fully qualified Azure Resource manager identifier of the resource to be connected. - /// The name Linker resource. + /// The name of dryrun. + /// dryrun resource. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task LinkerValidate_Validate(string resourceUri, string linkerName, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task LinkersUpdateDryrun_Validate(string resourceUri, string dryrunName, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPatch body, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(resourceUri),resourceUri); - await eventListener.AssertNotNull(nameof(linkerName),linkerName); + await eventListener.AssertNotNull(nameof(dryrunName),dryrunName); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); } } @@ -1576,9 +5729,9 @@ public partial class ServiceLinker /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task OperationsList(global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task OperationsList(global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2022-11-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1612,9 +5765,9 @@ public partial class ServiceLinker /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task OperationsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task OperationsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2022-11-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1657,7 +5810,7 @@ public partial class ServiceLinker /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task OperationsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task OperationsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -1675,13 +5828,13 @@ public partial class ServiceLinker case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.OperationListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.OperationListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } diff --git a/src/ServiceLinker/generated/api/Support/AccessKeyPermissions.Completer.cs b/src/ServiceLinker/generated/api/Support/AccessKeyPermissions.Completer.cs new file mode 100644 index 000000000000..1e718ed9ff3f --- /dev/null +++ b/src/ServiceLinker/generated/api/Support/AccessKeyPermissions.Completer.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support +{ + + /// Argument completer implementation for AccessKeyPermissions. + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AccessKeyPermissionsTypeConverter))] + public partial struct AccessKeyPermissions : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Read".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'Read'", "Read", global::System.Management.Automation.CompletionResultType.ParameterValue, "Read"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Write".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'Write'", "Write", global::System.Management.Automation.CompletionResultType.ParameterValue, "Write"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Listen".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'Listen'", "Listen", global::System.Management.Automation.CompletionResultType.ParameterValue, "Listen"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Send".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'Send'", "Send", global::System.Management.Automation.CompletionResultType.ParameterValue, "Send"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Manage".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'Manage'", "Manage", global::System.Management.Automation.CompletionResultType.ParameterValue, "Manage"); + } + } + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Support/AccessKeyPermissions.TypeConverter.cs b/src/ServiceLinker/generated/api/Support/AccessKeyPermissions.TypeConverter.cs new file mode 100644 index 000000000000..2426e694ea93 --- /dev/null +++ b/src/ServiceLinker/generated/api/Support/AccessKeyPermissions.TypeConverter.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support +{ + + /// TypeConverter implementation for AccessKeyPermissions. + public partial class AccessKeyPermissionsTypeConverter : + global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => AccessKeyPermissions.CreateFrom(sourceValue); + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Support/AccessKeyPermissions.cs b/src/ServiceLinker/generated/api/Support/AccessKeyPermissions.cs new file mode 100644 index 000000000000..e87f9f76fae8 --- /dev/null +++ b/src/ServiceLinker/generated/api/Support/AccessKeyPermissions.cs @@ -0,0 +1,103 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support +{ + + public partial struct AccessKeyPermissions : + System.IEquatable + { + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AccessKeyPermissions Listen = @"Listen"; + + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AccessKeyPermissions Manage = @"Manage"; + + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AccessKeyPermissions Read = @"Read"; + + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AccessKeyPermissions Send = @"Send"; + + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AccessKeyPermissions Write = @"Write"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Creates an instance of the Enum class. + /// the value to create an instance for. + private AccessKeyPermissions(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Conversion from arbitrary object to AccessKeyPermissions + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new AccessKeyPermissions(global::System.Convert.ToString(value)); + } + + /// Compares values of enum type AccessKeyPermissions + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AccessKeyPermissions e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type AccessKeyPermissions (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is AccessKeyPermissions && Equals((AccessKeyPermissions)obj); + } + + /// Returns hashCode for enum AccessKeyPermissions + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Returns string representation for AccessKeyPermissions + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to AccessKeyPermissions + /// the value to convert to an instance of . + + public static implicit operator AccessKeyPermissions(string value) + { + return new AccessKeyPermissions(value); + } + + /// Implicit operator to convert AccessKeyPermissions to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AccessKeyPermissions e) + { + return e._value; + } + + /// Overriding != operator for enum AccessKeyPermissions + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AccessKeyPermissions e1, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AccessKeyPermissions e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum AccessKeyPermissions + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AccessKeyPermissions e1, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AccessKeyPermissions e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Support/ActionType.Completer.cs b/src/ServiceLinker/generated/api/Support/ActionType.Completer.cs index 4c77add95934..8857f70b68de 100644 --- a/src/ServiceLinker/generated/api/Support/ActionType.Completer.cs +++ b/src/ServiceLinker/generated/api/Support/ActionType.Completer.cs @@ -32,6 +32,14 @@ public partial struct ActionType : { yield return new global::System.Management.Automation.CompletionResult("'Internal'", "Internal", global::System.Management.Automation.CompletionResultType.ParameterValue, "Internal"); } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "enable".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'enable'", "enable", global::System.Management.Automation.CompletionResultType.ParameterValue, "enable"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "optOut".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'optOut'", "optOut", global::System.Management.Automation.CompletionResultType.ParameterValue, "optOut"); + } } } } \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Support/ActionType.TypeConverter.cs b/src/ServiceLinker/generated/api/Support/ActionType.TypeConverter.cs index 196054ceba6b..cf23d16f459b 100644 --- a/src/ServiceLinker/generated/api/Support/ActionType.TypeConverter.cs +++ b/src/ServiceLinker/generated/api/Support/ActionType.TypeConverter.cs @@ -14,32 +14,32 @@ public partial class ActionTypeTypeConverter : { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to diff --git a/src/ServiceLinker/generated/api/Support/ActionType.cs b/src/ServiceLinker/generated/api/Support/ActionType.cs index e857b325a39b..4954168ace78 100644 --- a/src/ServiceLinker/generated/api/Support/ActionType.cs +++ b/src/ServiceLinker/generated/api/Support/ActionType.cs @@ -12,8 +12,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support public partial struct ActionType : System.IEquatable { + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType Enable = @"enable"; + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType Internal = @"Internal"; + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType OptOut = @"optOut"; + /// the value for an instance of the Enum. private string _value { get; set; } diff --git a/src/ServiceLinker/generated/api/Support/AllowType.Completer.cs b/src/ServiceLinker/generated/api/Support/AllowType.Completer.cs new file mode 100644 index 000000000000..45d50d808cff --- /dev/null +++ b/src/ServiceLinker/generated/api/Support/AllowType.Completer.cs @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support +{ + + /// Whether to allow firewall rules. + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowTypeTypeConverter))] + public partial struct AllowType : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "true".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'true'", "true", global::System.Management.Automation.CompletionResultType.ParameterValue, "true"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "false".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'false'", "false", global::System.Management.Automation.CompletionResultType.ParameterValue, "false"); + } + } + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Support/AllowType.TypeConverter.cs b/src/ServiceLinker/generated/api/Support/AllowType.TypeConverter.cs new file mode 100644 index 000000000000..ae47f856a60a --- /dev/null +++ b/src/ServiceLinker/generated/api/Support/AllowType.TypeConverter.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support +{ + + /// Whether to allow firewall rules. + public partial class AllowTypeTypeConverter : + global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => AllowType.CreateFrom(sourceValue); + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Support/AllowType.cs b/src/ServiceLinker/generated/api/Support/AllowType.cs new file mode 100644 index 000000000000..17206ee283e5 --- /dev/null +++ b/src/ServiceLinker/generated/api/Support/AllowType.cs @@ -0,0 +1,98 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support +{ + + /// Whether to allow firewall rules. + public partial struct AllowType : + System.IEquatable + { + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType False = @"false"; + + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType True = @"true"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Creates an instance of the Enum class. + /// the value to create an instance for. + private AllowType(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Conversion from arbitrary object to AllowType + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new AllowType(global::System.Convert.ToString(value)); + } + + /// Compares values of enum type AllowType + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type AllowType (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is AllowType && Equals((AllowType)obj); + } + + /// Returns hashCode for enum AllowType + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Returns string representation for AllowType + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to AllowType + /// the value to convert to an instance of . + + public static implicit operator AllowType(string value) + { + return new AllowType(value); + } + + /// Implicit operator to convert AllowType to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType e) + { + return e._value; + } + + /// Overriding != operator for enum AllowType + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType e1, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum AllowType + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType e1, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Support/AuthType.Completer.cs b/src/ServiceLinker/generated/api/Support/AuthType.Completer.cs index 191473586f42..c373a3eafd92 100644 --- a/src/ServiceLinker/generated/api/Support/AuthType.Completer.cs +++ b/src/ServiceLinker/generated/api/Support/AuthType.Completer.cs @@ -46,6 +46,14 @@ public partial struct AuthType : { yield return new global::System.Management.Automation.CompletionResult("'secret'", "secret", global::System.Management.Automation.CompletionResultType.ParameterValue, "secret"); } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "accessKey".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'accessKey'", "accessKey", global::System.Management.Automation.CompletionResultType.ParameterValue, "accessKey"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "userAccount".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'userAccount'", "userAccount", global::System.Management.Automation.CompletionResultType.ParameterValue, "userAccount"); + } } } } \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Support/AuthType.TypeConverter.cs b/src/ServiceLinker/generated/api/Support/AuthType.TypeConverter.cs index 9e4f51428da3..e737e03ef164 100644 --- a/src/ServiceLinker/generated/api/Support/AuthType.TypeConverter.cs +++ b/src/ServiceLinker/generated/api/Support/AuthType.TypeConverter.cs @@ -12,32 +12,32 @@ public partial class AuthTypeTypeConverter : { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to diff --git a/src/ServiceLinker/generated/api/Support/AuthType.cs b/src/ServiceLinker/generated/api/Support/AuthType.cs index 2f3ceae88538..143e7ba19b87 100644 --- a/src/ServiceLinker/generated/api/Support/AuthType.cs +++ b/src/ServiceLinker/generated/api/Support/AuthType.cs @@ -10,6 +10,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support public partial struct AuthType : System.IEquatable { + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType AccessKey = @"accessKey"; + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType Secret = @"secret"; public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType ServicePrincipalCertificate = @"servicePrincipalCertificate"; @@ -18,6 +20,8 @@ public partial struct AuthType : public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType SystemAssignedIdentity = @"systemAssignedIdentity"; + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType UserAccount = @"userAccount"; + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AuthType UserAssignedIdentity = @"userAssignedIdentity"; /// the value for an instance of the Enum. diff --git a/src/ServiceLinker/generated/api/Support/ClientType.Completer.cs b/src/ServiceLinker/generated/api/Support/ClientType.Completer.cs index 880c8da807e2..413a75b1d9bd 100644 --- a/src/ServiceLinker/generated/api/Support/ClientType.Completer.cs +++ b/src/ServiceLinker/generated/api/Support/ClientType.Completer.cs @@ -66,6 +66,10 @@ public partial struct ClientType : { yield return new global::System.Management.Automation.CompletionResult("'springBoot'", "springBoot", global::System.Management.Automation.CompletionResultType.ParameterValue, "springBoot"); } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "kafka-springBoot".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'kafka-springBoot'", "kafka-springBoot", global::System.Management.Automation.CompletionResultType.ParameterValue, "kafka-springBoot"); + } } } } \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Support/ClientType.TypeConverter.cs b/src/ServiceLinker/generated/api/Support/ClientType.TypeConverter.cs index fb65b861a4b0..157182c89abb 100644 --- a/src/ServiceLinker/generated/api/Support/ClientType.TypeConverter.cs +++ b/src/ServiceLinker/generated/api/Support/ClientType.TypeConverter.cs @@ -12,32 +12,32 @@ public partial class ClientTypeTypeConverter : { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to diff --git a/src/ServiceLinker/generated/api/Support/ClientType.cs b/src/ServiceLinker/generated/api/Support/ClientType.cs index 8fa58a0ed1e5..923fa91eda47 100644 --- a/src/ServiceLinker/generated/api/Support/ClientType.cs +++ b/src/ServiceLinker/generated/api/Support/ClientType.cs @@ -18,6 +18,8 @@ public partial struct ClientType : public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType Java = @"java"; + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType KafkaSpringBoot = @"kafka-springBoot"; + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType Nodejs = @"nodejs"; public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType None = @"none"; diff --git a/src/ServiceLinker/generated/api/Support/CreatedByType.TypeConverter.cs b/src/ServiceLinker/generated/api/Support/CreatedByType.TypeConverter.cs index ada372229654..25f71dea9add 100644 --- a/src/ServiceLinker/generated/api/Support/CreatedByType.TypeConverter.cs +++ b/src/ServiceLinker/generated/api/Support/CreatedByType.TypeConverter.cs @@ -12,32 +12,32 @@ public partial class CreatedByTypeTypeConverter : { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to diff --git a/src/ServiceLinker/generated/api/Support/DeleteOrUpdateBehavior.Completer.cs b/src/ServiceLinker/generated/api/Support/DeleteOrUpdateBehavior.Completer.cs new file mode 100644 index 000000000000..6e8e946e5a25 --- /dev/null +++ b/src/ServiceLinker/generated/api/Support/DeleteOrUpdateBehavior.Completer.cs @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support +{ + + /// + /// The cleanup behavior to indicate whether clean up operation when resource is deleted or updated + /// + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehaviorTypeConverter))] + public partial struct DeleteOrUpdateBehavior : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Default".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'Default'", "Default", global::System.Management.Automation.CompletionResultType.ParameterValue, "Default"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "ForcedCleanup".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'ForcedCleanup'", "ForcedCleanup", global::System.Management.Automation.CompletionResultType.ParameterValue, "ForcedCleanup"); + } + } + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Support/DeleteOrUpdateBehavior.TypeConverter.cs b/src/ServiceLinker/generated/api/Support/DeleteOrUpdateBehavior.TypeConverter.cs new file mode 100644 index 000000000000..9ec0b8a0fc2b --- /dev/null +++ b/src/ServiceLinker/generated/api/Support/DeleteOrUpdateBehavior.TypeConverter.cs @@ -0,0 +1,61 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support +{ + + /// + /// The cleanup behavior to indicate whether clean up operation when resource is deleted or updated + /// + public partial class DeleteOrUpdateBehaviorTypeConverter : + global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => DeleteOrUpdateBehavior.CreateFrom(sourceValue); + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Support/DeleteOrUpdateBehavior.cs b/src/ServiceLinker/generated/api/Support/DeleteOrUpdateBehavior.cs new file mode 100644 index 000000000000..54aaeac4261d --- /dev/null +++ b/src/ServiceLinker/generated/api/Support/DeleteOrUpdateBehavior.cs @@ -0,0 +1,100 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support +{ + + /// + /// The cleanup behavior to indicate whether clean up operation when resource is deleted or updated + /// + public partial struct DeleteOrUpdateBehavior : + System.IEquatable + { + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior Default = @"Default"; + + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior ForcedCleanup = @"ForcedCleanup"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Conversion from arbitrary object to DeleteOrUpdateBehavior + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new DeleteOrUpdateBehavior(global::System.Convert.ToString(value)); + } + + /// Creates an instance of the Enum class. + /// the value to create an instance for. + private DeleteOrUpdateBehavior(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Compares values of enum type DeleteOrUpdateBehavior + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type DeleteOrUpdateBehavior (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is DeleteOrUpdateBehavior && Equals((DeleteOrUpdateBehavior)obj); + } + + /// Returns hashCode for enum DeleteOrUpdateBehavior + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Returns string representation for DeleteOrUpdateBehavior + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to DeleteOrUpdateBehavior + /// the value to convert to an instance of . + + public static implicit operator DeleteOrUpdateBehavior(string value) + { + return new DeleteOrUpdateBehavior(value); + } + + /// Implicit operator to convert DeleteOrUpdateBehavior to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior e) + { + return e._value; + } + + /// Overriding != operator for enum DeleteOrUpdateBehavior + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior e1, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum DeleteOrUpdateBehavior + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior e1, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Support/DryrunPrerequisiteResultType.Completer.cs b/src/ServiceLinker/generated/api/Support/DryrunPrerequisiteResultType.Completer.cs new file mode 100644 index 000000000000..fedc33f4f6ef --- /dev/null +++ b/src/ServiceLinker/generated/api/Support/DryrunPrerequisiteResultType.Completer.cs @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support +{ + + /// The type of dryrun result. + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DryrunPrerequisiteResultTypeTypeConverter))] + public partial struct DryrunPrerequisiteResultType : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "basicError".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'basicError'", "basicError", global::System.Management.Automation.CompletionResultType.ParameterValue, "basicError"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "permissionsMissing".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'permissionsMissing'", "permissionsMissing", global::System.Management.Automation.CompletionResultType.ParameterValue, "permissionsMissing"); + } + } + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Support/DryrunPrerequisiteResultType.TypeConverter.cs b/src/ServiceLinker/generated/api/Support/DryrunPrerequisiteResultType.TypeConverter.cs new file mode 100644 index 000000000000..6ad22da0fc20 --- /dev/null +++ b/src/ServiceLinker/generated/api/Support/DryrunPrerequisiteResultType.TypeConverter.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support +{ + + /// The type of dryrun result. + public partial class DryrunPrerequisiteResultTypeTypeConverter : + global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => DryrunPrerequisiteResultType.CreateFrom(sourceValue); + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Support/DryrunPrerequisiteResultType.cs b/src/ServiceLinker/generated/api/Support/DryrunPrerequisiteResultType.cs new file mode 100644 index 000000000000..4b4b6e5e6f9e --- /dev/null +++ b/src/ServiceLinker/generated/api/Support/DryrunPrerequisiteResultType.cs @@ -0,0 +1,102 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support +{ + + /// The type of dryrun result. + public partial struct DryrunPrerequisiteResultType : + System.IEquatable + { + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DryrunPrerequisiteResultType BasicError = @"basicError"; + + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DryrunPrerequisiteResultType PermissionsMissing = @"permissionsMissing"; + + /// + /// the value for an instance of the Enum. + /// + private string _value { get; set; } + + /// Conversion from arbitrary object to DryrunPrerequisiteResultType + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new DryrunPrerequisiteResultType(global::System.Convert.ToString(value)); + } + + /// + /// Creates an instance of the Enum class. + /// + /// the value to create an instance for. + private DryrunPrerequisiteResultType(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Compares values of enum type DryrunPrerequisiteResultType + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DryrunPrerequisiteResultType e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type DryrunPrerequisiteResultType (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is DryrunPrerequisiteResultType && Equals((DryrunPrerequisiteResultType)obj); + } + + /// Returns hashCode for enum DryrunPrerequisiteResultType + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Returns string representation for DryrunPrerequisiteResultType + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to DryrunPrerequisiteResultType + /// the value to convert to an instance of . + + public static implicit operator DryrunPrerequisiteResultType(string value) + { + return new DryrunPrerequisiteResultType(value); + } + + /// Implicit operator to convert DryrunPrerequisiteResultType to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DryrunPrerequisiteResultType e) + { + return e._value; + } + + /// Overriding != operator for enum DryrunPrerequisiteResultType + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DryrunPrerequisiteResultType e1, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DryrunPrerequisiteResultType e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum DryrunPrerequisiteResultType + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DryrunPrerequisiteResultType e1, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DryrunPrerequisiteResultType e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Support/DryrunPreviewOperationType.Completer.cs b/src/ServiceLinker/generated/api/Support/DryrunPreviewOperationType.Completer.cs new file mode 100644 index 000000000000..cdf0b826c34a --- /dev/null +++ b/src/ServiceLinker/generated/api/Support/DryrunPreviewOperationType.Completer.cs @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support +{ + + /// The operation type + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DryrunPreviewOperationTypeTypeConverter))] + public partial struct DryrunPreviewOperationType : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "configConnection".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'configConnection'", "configConnection", global::System.Management.Automation.CompletionResultType.ParameterValue, "configConnection"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "configNetwork".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'configNetwork'", "configNetwork", global::System.Management.Automation.CompletionResultType.ParameterValue, "configNetwork"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "configAuth".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'configAuth'", "configAuth", global::System.Management.Automation.CompletionResultType.ParameterValue, "configAuth"); + } + } + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Support/DryrunPreviewOperationType.TypeConverter.cs b/src/ServiceLinker/generated/api/Support/DryrunPreviewOperationType.TypeConverter.cs new file mode 100644 index 000000000000..03d3d90a49f7 --- /dev/null +++ b/src/ServiceLinker/generated/api/Support/DryrunPreviewOperationType.TypeConverter.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support +{ + + /// The operation type + public partial class DryrunPreviewOperationTypeTypeConverter : + global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => DryrunPreviewOperationType.CreateFrom(sourceValue); + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Support/DryrunPreviewOperationType.cs b/src/ServiceLinker/generated/api/Support/DryrunPreviewOperationType.cs new file mode 100644 index 000000000000..04aa732ef609 --- /dev/null +++ b/src/ServiceLinker/generated/api/Support/DryrunPreviewOperationType.cs @@ -0,0 +1,102 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support +{ + + /// The operation type + public partial struct DryrunPreviewOperationType : + System.IEquatable + { + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DryrunPreviewOperationType ConfigAuth = @"configAuth"; + + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DryrunPreviewOperationType ConfigConnection = @"configConnection"; + + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DryrunPreviewOperationType ConfigNetwork = @"configNetwork"; + + /// + /// the value for an instance of the Enum. + /// + private string _value { get; set; } + + /// Conversion from arbitrary object to DryrunPreviewOperationType + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new DryrunPreviewOperationType(global::System.Convert.ToString(value)); + } + + /// Creates an instance of the Enum class. + /// the value to create an instance for. + private DryrunPreviewOperationType(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Compares values of enum type DryrunPreviewOperationType + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DryrunPreviewOperationType e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type DryrunPreviewOperationType (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is DryrunPreviewOperationType && Equals((DryrunPreviewOperationType)obj); + } + + /// Returns hashCode for enum DryrunPreviewOperationType + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Returns string representation for DryrunPreviewOperationType + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to DryrunPreviewOperationType + /// the value to convert to an instance of . + + public static implicit operator DryrunPreviewOperationType(string value) + { + return new DryrunPreviewOperationType(value); + } + + /// Implicit operator to convert DryrunPreviewOperationType to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DryrunPreviewOperationType e) + { + return e._value; + } + + /// Overriding != operator for enum DryrunPreviewOperationType + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DryrunPreviewOperationType e1, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DryrunPreviewOperationType e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum DryrunPreviewOperationType + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DryrunPreviewOperationType e1, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DryrunPreviewOperationType e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Support/Origin.TypeConverter.cs b/src/ServiceLinker/generated/api/Support/Origin.TypeConverter.cs index 15647ad1df1d..55bd9ec1c2e3 100644 --- a/src/ServiceLinker/generated/api/Support/Origin.TypeConverter.cs +++ b/src/ServiceLinker/generated/api/Support/Origin.TypeConverter.cs @@ -15,32 +15,32 @@ public partial class OriginTypeConverter : { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to diff --git a/src/ServiceLinker/generated/api/Support/SecretType.TypeConverter.cs b/src/ServiceLinker/generated/api/Support/SecretType.TypeConverter.cs index 6b8418748218..e5fd49327af5 100644 --- a/src/ServiceLinker/generated/api/Support/SecretType.TypeConverter.cs +++ b/src/ServiceLinker/generated/api/Support/SecretType.TypeConverter.cs @@ -12,32 +12,32 @@ public partial class SecretTypeTypeConverter : { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to diff --git a/src/ServiceLinker/generated/api/Support/TargetServiceType.Completer.cs b/src/ServiceLinker/generated/api/Support/TargetServiceType.Completer.cs index 60a2775391a7..ce836e403f0a 100644 --- a/src/ServiceLinker/generated/api/Support/TargetServiceType.Completer.cs +++ b/src/ServiceLinker/generated/api/Support/TargetServiceType.Completer.cs @@ -38,6 +38,10 @@ public partial struct TargetServiceType : { yield return new global::System.Management.Automation.CompletionResult("'ConfluentSchemaRegistry'", "ConfluentSchemaRegistry", global::System.Management.Automation.CompletionResultType.ParameterValue, "ConfluentSchemaRegistry"); } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "SelfHostedServer".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'SelfHostedServer'", "SelfHostedServer", global::System.Management.Automation.CompletionResultType.ParameterValue, "SelfHostedServer"); + } } } } \ No newline at end of file diff --git a/src/ServiceLinker/generated/api/Support/TargetServiceType.TypeConverter.cs b/src/ServiceLinker/generated/api/Support/TargetServiceType.TypeConverter.cs index fa407bf174e8..0c926650b84d 100644 --- a/src/ServiceLinker/generated/api/Support/TargetServiceType.TypeConverter.cs +++ b/src/ServiceLinker/generated/api/Support/TargetServiceType.TypeConverter.cs @@ -12,32 +12,32 @@ public partial class TargetServiceTypeTypeConverter : { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to diff --git a/src/ServiceLinker/generated/api/Support/TargetServiceType.cs b/src/ServiceLinker/generated/api/Support/TargetServiceType.cs index b807186ca840..b38620d3ab95 100644 --- a/src/ServiceLinker/generated/api/Support/TargetServiceType.cs +++ b/src/ServiceLinker/generated/api/Support/TargetServiceType.cs @@ -16,6 +16,8 @@ public partial struct TargetServiceType : public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.TargetServiceType ConfluentSchemaRegistry = @"ConfluentSchemaRegistry"; + public static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.TargetServiceType SelfHostedServer = @"SelfHostedServer"; + /// the value for an instance of the Enum. private string _value { get; set; } diff --git a/src/ServiceLinker/generated/api/Support/VNetSolutionType.TypeConverter.cs b/src/ServiceLinker/generated/api/Support/VNetSolutionType.TypeConverter.cs index 29bb25ac65b8..99c3739aae9a 100644 --- a/src/ServiceLinker/generated/api/Support/VNetSolutionType.TypeConverter.cs +++ b/src/ServiceLinker/generated/api/Support/VNetSolutionType.TypeConverter.cs @@ -12,32 +12,32 @@ public partial class VNetSolutionTypeTypeConverter : { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to diff --git a/src/ServiceLinker/generated/api/Support/ValidationResultStatus.TypeConverter.cs b/src/ServiceLinker/generated/api/Support/ValidationResultStatus.TypeConverter.cs index dec4fbd31134..daefe9748925 100644 --- a/src/ServiceLinker/generated/api/Support/ValidationResultStatus.TypeConverter.cs +++ b/src/ServiceLinker/generated/api/Support/ValidationResultStatus.TypeConverter.cs @@ -12,32 +12,32 @@ public partial class ValidationResultStatusTypeConverter : { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to diff --git a/src/ServiceLinker/generated/cmdlets/GetAzServiceLinkerConfigurationName_List.cs b/src/ServiceLinker/generated/cmdlets/GetAzServiceLinkerConfigurationName_List.cs new file mode 100644 index 000000000000..96f42b7f65a1 --- /dev/null +++ b/src/ServiceLinker/generated/cmdlets/GetAzServiceLinkerConfigurationName_List.cs @@ -0,0 +1,406 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; + using System; + + /// + /// Lists the configuration names generated by Service Connector for all target, client types, auth types. + /// + /// + /// [OpenAPI] List=>GET:"/providers/Microsoft.ServiceLinker/configurationNames" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzServiceLinkerConfigurationName_List")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameItem))] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Description(@"Lists the configuration names generated by Service Connector for all target, client types, auth types.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Generated] + public partial class GetAzServiceLinkerConfigurationName_List : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A flag to tell whether it is the first onOK call. + private bool _isFirst = true; + + /// Link to retrieve next page. + private string _nextLink; + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ServiceLinker Client => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private string _filter; + + /// OData filter options. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "OData filter options.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"OData filter options.", + SerializedName = @"$filter", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Query)] + public string Filter { get => this._filter; set => this._filter = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _skipToken; + + /// OData skipToken option for pagination. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "OData skipToken option for pagination.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"OData skipToken option for pagination.", + SerializedName = @"$skipToken", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Query)] + public string SkipToken { get => this._skipToken; set => this._skipToken = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameResult + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzServiceLinkerConfigurationName_List() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.ConfigurationNamesList(this.InvocationInformation.BoundParameters.ContainsKey("Filter") ? Filter : null, this.InvocationInformation.BoundParameters.ContainsKey("SkipToken") ? SkipToken : null, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Filter=this.InvocationInformation.BoundParameters.ContainsKey("Filter") ? Filter : null,SkipToken=this.InvocationInformation.BoundParameters.ContainsKey("SkipToken") ? SkipToken : null}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Filter=this.InvocationInformation.BoundParameters.ContainsKey("Filter") ? Filter : null, SkipToken=this.InvocationInformation.BoundParameters.ContainsKey("SkipToken") ? SkipToken : null }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Filter=this.InvocationInformation.BoundParameters.ContainsKey("Filter") ? Filter : null, SkipToken=this.InvocationInformation.BoundParameters.ContainsKey("SkipToken") ? SkipToken : null }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameResult + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // response should be returning an array of some kind. +Pageable + // pageable / value / nextLink + var result = await response; + WriteObject(result.Value,true); + _nextLink = result.NextLink; + if (_isFirst) + { + _isFirst = false; + while (_nextLink != null) + { + if (responseMessage.RequestMessage is System.Net.Http.HttpRequestMessage requestMessage ) + { + requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Get ); + await ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.ConfigurationNamesList_Call(requestMessage, onOk, onDefault, this, Pipeline); + } + } + } + } + } + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/cmdlets/GetAzServiceLinkerConfiguration_List.cs b/src/ServiceLinker/generated/cmdlets/GetAzServiceLinkerConfiguration_List.cs index b0b6c76b9647..ae1eb9992583 100644 --- a/src/ServiceLinker/generated/cmdlets/GetAzServiceLinkerConfiguration_List.cs +++ b/src/ServiceLinker/generated/cmdlets/GetAzServiceLinkerConfiguration_List.cs @@ -8,14 +8,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Cmdlets using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; using System; - /// list source configurations for a linker. + /// list source configurations for a Linker. /// /// [OpenAPI] ListConfigurations=>POST:"/{resourceUri}/providers/Microsoft.ServiceLinker/linkers/{linkerName}/listConfigurations" /// [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzServiceLinkerConfiguration_List", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISourceConfiguration))] - [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Description(@"list source configurations for a linker.")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISourceConfiguration))] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Description(@"list source configurations for a Linker.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Generated] public partial class GetAzServiceLinkerConfiguration_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener @@ -130,24 +130,24 @@ public partial class GetAzServiceLinkerConfiguration_List : global::System.Manag /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponse + /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationResult + /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -323,12 +323,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponse + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -345,7 +345,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceUri=ResourceUri, LinkerName=LinkerName }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -363,12 +363,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationResult + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { diff --git a/src/ServiceLinker/generated/cmdlets/GetAzServiceLinkerDryrun_Get.cs b/src/ServiceLinker/generated/cmdlets/GetAzServiceLinkerDryrun_Get.cs new file mode 100644 index 000000000000..9e28bff7b8dd --- /dev/null +++ b/src/ServiceLinker/generated/cmdlets/GetAzServiceLinkerDryrun_Get.cs @@ -0,0 +1,385 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; + using System; + + /// get a dryrun job + /// + /// [OpenAPI] GetDryrun=>GET:"/{resourceUri}/providers/Microsoft.ServiceLinker/dryruns/{dryrunName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzServiceLinkerDryrun_Get")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResource))] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Description(@"get a dryrun job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Generated] + public partial class GetAzServiceLinkerDryrun_Get : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ServiceLinker Client => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private string _dryrunName; + + /// The name of dryrun. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of dryrun.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of dryrun.", + SerializedName = @"dryrunName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Path)] + public string DryrunName { get => this._dryrunName; set => this._dryrunName = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceUri; + + /// + /// The fully qualified Azure Resource manager identifier of the resource to be connected. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The fully qualified Azure Resource manager identifier of the resource to be connected.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The fully qualified Azure Resource manager identifier of the resource to be connected.", + SerializedName = @"resourceUri", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Path)] + public string ResourceUri { get => this._resourceUri; set => this._resourceUri = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResource + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzServiceLinkerDryrun_Get() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.LinkersGetDryrun(ResourceUri, DryrunName, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceUri=ResourceUri,DryrunName=DryrunName}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceUri=ResourceUri, DryrunName=DryrunName }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceUri=ResourceUri, DryrunName=DryrunName }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResource + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResource + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/cmdlets/GetAzServiceLinkerDryrun_GetViaIdentity.cs b/src/ServiceLinker/generated/cmdlets/GetAzServiceLinkerDryrun_GetViaIdentity.cs new file mode 100644 index 000000000000..e8ed4cba9075 --- /dev/null +++ b/src/ServiceLinker/generated/cmdlets/GetAzServiceLinkerDryrun_GetViaIdentity.cs @@ -0,0 +1,379 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; + using System; + + /// get a dryrun job + /// + /// [OpenAPI] GetDryrun=>GET:"/{resourceUri}/providers/Microsoft.ServiceLinker/dryruns/{dryrunName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzServiceLinkerDryrun_GetViaIdentity")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResource))] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Description(@"get a dryrun job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Generated] + public partial class GetAzServiceLinkerDryrun_GetViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ServiceLinker Client => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResource + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzServiceLinkerDryrun_GetViaIdentity() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.LinkersGetDryrunViaIdentity(InputObject.Id, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.ResourceUri) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceUri"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.DryrunName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.DryrunName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.LinkersGetDryrun(InputObject.ResourceUri ?? null, InputObject.DryrunName ?? null, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResource + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResource + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/cmdlets/GetAzServiceLinkerDryrun_List.cs b/src/ServiceLinker/generated/cmdlets/GetAzServiceLinkerDryrun_List.cs new file mode 100644 index 000000000000..ca9b784c5ea9 --- /dev/null +++ b/src/ServiceLinker/generated/cmdlets/GetAzServiceLinkerDryrun_List.cs @@ -0,0 +1,393 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; + using System; + + /// list dryrun jobs + /// + /// [OpenAPI] ListDryrun=>GET:"/{resourceUri}/providers/Microsoft.ServiceLinker/dryruns" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzServiceLinkerDryrun_List")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResource))] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Description(@"list dryrun jobs")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Generated] + public partial class GetAzServiceLinkerDryrun_List : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A flag to tell whether it is the first onOK call. + private bool _isFirst = true; + + /// Link to retrieve next page. + private string _nextLink; + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ServiceLinker Client => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceUri; + + /// + /// The fully qualified Azure Resource manager identifier of the resource to be connected. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The fully qualified Azure Resource manager identifier of the resource to be connected.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The fully qualified Azure Resource manager identifier of the resource to be connected.", + SerializedName = @"resourceUri", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Path)] + public string ResourceUri { get => this._resourceUri; set => this._resourceUri = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunList + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzServiceLinkerDryrun_List() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.LinkersListDryrun(ResourceUri, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceUri=ResourceUri}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceUri=ResourceUri }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceUri=ResourceUri }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunList + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // response should be returning an array of some kind. +Pageable + // pageable / value / nextLink + var result = await response; + WriteObject(result.Value,true); + _nextLink = result.NextLink; + if (_isFirst) + { + _isFirst = false; + while (_nextLink != null) + { + if (responseMessage.RequestMessage is System.Net.Http.HttpRequestMessage requestMessage ) + { + requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Method.Get ); + await ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.LinkersListDryrun_Call(requestMessage, onOk, onDefault, this, Pipeline); + } + } + } + } + } + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/cmdlets/GetAzServiceLinkerOperation_List.cs b/src/ServiceLinker/generated/cmdlets/GetAzServiceLinkerOperation_List.cs index c906cf1f0e10..330383124988 100644 --- a/src/ServiceLinker/generated/cmdlets/GetAzServiceLinkerOperation_List.cs +++ b/src/ServiceLinker/generated/cmdlets/GetAzServiceLinkerOperation_List.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzServiceLinkerOperation_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperation))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperation))] [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Description(@"Lists the available ServiceLinker REST API operations.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Generated] public partial class GetAzServiceLinkerOperation_List : global::System.Management.Automation.PSCmdlet, @@ -106,24 +106,24 @@ public partial class GetAzServiceLinkerOperation_List : global::System.Managemen /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponse + /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationListResult + /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -296,12 +296,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponse + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -318,7 +318,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -336,12 +336,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperationListResult + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { diff --git a/src/ServiceLinker/generated/cmdlets/GetAzServiceLinker_Get.cs b/src/ServiceLinker/generated/cmdlets/GetAzServiceLinker_Get.cs index e55e7c9447bc..da1b6a47553e 100644 --- a/src/ServiceLinker/generated/cmdlets/GetAzServiceLinker_Get.cs +++ b/src/ServiceLinker/generated/cmdlets/GetAzServiceLinker_Get.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzServiceLinker_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Description(@"Returns Linker resource for a given name.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Generated] public partial class GetAzServiceLinker_Get : global::System.Management.Automation.PSCmdlet, @@ -131,24 +131,24 @@ public partial class GetAzServiceLinker_Get : global::System.Management.Automati /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponse + /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource + /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -321,12 +321,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponse + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -343,7 +343,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceUri=ResourceUri, Name=Name }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -361,12 +361,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -378,7 +378,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource WriteObject((await response)); } } diff --git a/src/ServiceLinker/generated/cmdlets/GetAzServiceLinker_GetViaIdentity.cs b/src/ServiceLinker/generated/cmdlets/GetAzServiceLinker_GetViaIdentity.cs index b3189f586e0d..eac2921917c7 100644 --- a/src/ServiceLinker/generated/cmdlets/GetAzServiceLinker_GetViaIdentity.cs +++ b/src/ServiceLinker/generated/cmdlets/GetAzServiceLinker_GetViaIdentity.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzServiceLinker_GetViaIdentity")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Description(@"Returns Linker resource for a given name.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Generated] public partial class GetAzServiceLinker_GetViaIdentity : global::System.Management.Automation.PSCmdlet, @@ -108,24 +108,24 @@ public partial class GetAzServiceLinker_GetViaIdentity : global::System.Manageme /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponse + /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource + /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -314,12 +314,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponse + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -336,7 +336,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -354,12 +354,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -371,7 +371,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource WriteObject((await response)); } } diff --git a/src/ServiceLinker/generated/cmdlets/GetAzServiceLinker_List.cs b/src/ServiceLinker/generated/cmdlets/GetAzServiceLinker_List.cs index 03247cffc07e..df750b5162dc 100644 --- a/src/ServiceLinker/generated/cmdlets/GetAzServiceLinker_List.cs +++ b/src/ServiceLinker/generated/cmdlets/GetAzServiceLinker_List.cs @@ -8,14 +8,17 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Cmdlets using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; using System; - /// Returns list of Linkers which connects to the resource. + /// + /// Returns list of Linkers which connects to the resource. which supports to config both application and target service during + /// the resource provision. + /// /// /// [OpenAPI] List=>GET:"/{resourceUri}/providers/Microsoft.ServiceLinker/linkers" /// [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzServiceLinker_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource))] - [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Description(@"Returns list of Linkers which connects to the resource.")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource))] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Description(@"Returns list of Linkers which connects to the resource. which supports to config both application and target service during the resource provision.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Generated] public partial class GetAzServiceLinker_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener @@ -122,24 +125,24 @@ public partial class GetAzServiceLinker_List : global::System.Management.Automat /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponse + /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IResourceList + /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -312,12 +315,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponse + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -334,7 +337,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceUri=ResourceUri }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -352,12 +355,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IResourceList + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { diff --git a/src/ServiceLinker/generated/cmdlets/NewAzServiceLinkerConfiguration_Generate.cs b/src/ServiceLinker/generated/cmdlets/NewAzServiceLinkerConfiguration_Generate.cs new file mode 100644 index 000000000000..f87d4e4683a8 --- /dev/null +++ b/src/ServiceLinker/generated/cmdlets/NewAzServiceLinkerConfiguration_Generate.cs @@ -0,0 +1,404 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; + using System; + + /// Generate configurations for a Linker. + /// + /// [OpenAPI] GenerateConfigurations=>POST:"/{resourceUri}/providers/Microsoft.ServiceLinker/linkers/{linkerName}/generateConfigurations" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzServiceLinkerConfiguration_Generate", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISourceConfiguration))] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Description(@"Generate configurations for a Linker.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Generated] + public partial class NewAzServiceLinkerConfiguration_Generate : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ServiceLinker Client => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// Backing field for property. + private string _linkerName; + + /// The name Linker resource. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name Linker resource.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name Linker resource.", + SerializedName = @"linkerName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Path)] + public string LinkerName { get => this._linkerName; set => this._linkerName = value; } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfo _parameter; + + /// + /// The configuration information, used to generate configurations or save to applications + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The configuration information, used to generate configurations or save to applications", ValueFromPipeline = true)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The configuration information, used to generate configurations or save to applications", + SerializedName = @"parameters", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfo) })] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfo Parameter { get => this._parameter; set => this._parameter = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceUri; + + /// + /// The fully qualified Azure Resource manager identifier of the resource to be connected. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The fully qualified Azure Resource manager identifier of the resource to be connected.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The fully qualified Azure Resource manager identifier of the resource to be connected.", + SerializedName = @"resourceUri", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Path)] + public string ResourceUri { get => this._resourceUri; set => this._resourceUri = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationResult + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public NewAzServiceLinkerConfiguration_Generate() + { + + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'LinkersGenerateConfigurations' operation")) + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token); + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.LinkersGenerateConfigurations(ResourceUri, LinkerName, Parameter, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceUri=ResourceUri,LinkerName=LinkerName,body=Parameter}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceUri=ResourceUri, LinkerName=LinkerName, body=Parameter }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceUri=ResourceUri, LinkerName=LinkerName, body=Parameter }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationResult + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // response should be returning an array of some kind. +Pageable + // nested-array / configurations / + WriteObject((await response).Configuration, true); + } + } + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/cmdlets/NewAzServiceLinkerConfiguration_GenerateExpanded.cs b/src/ServiceLinker/generated/cmdlets/NewAzServiceLinkerConfiguration_GenerateExpanded.cs new file mode 100644 index 000000000000..a9d428ee54f9 --- /dev/null +++ b/src/ServiceLinker/generated/cmdlets/NewAzServiceLinkerConfiguration_GenerateExpanded.cs @@ -0,0 +1,454 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; + using System; + + /// Generate configurations for a Linker. + /// + /// [OpenAPI] GenerateConfigurations=>POST:"/{resourceUri}/providers/Microsoft.ServiceLinker/linkers/{linkerName}/generateConfigurations" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzServiceLinkerConfiguration_GenerateExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISourceConfiguration))] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Description(@"Generate configurations for a Linker.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Generated] + public partial class NewAzServiceLinkerConfiguration_GenerateExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// + /// The configuration information, used to generate configurations or save to applications + /// + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfo _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationInfo(); + + /// + /// Optional, indicate whether to apply configurations on source application. If enable, generate configurations and applied + /// to the source application. Default is enable. If optOut, no configuration change will be made on source. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Optional, indicate whether to apply configurations on source application. If enable, generate configurations and applied to the source application. Default is enable. If optOut, no configuration change will be made on source.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Optional, indicate whether to apply configurations on source application. If enable, generate configurations and applied to the source application. Default is enable. If optOut, no configuration change will be made on source.", + SerializedName = @"action", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType))] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType Action { get => _parametersBody.Action ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType)""); set => _parametersBody.Action = value; } + + /// + /// A dictionary of additional configurations to be added. Service will auto generate a set of basic configurations and this + /// property is to full fill more customized configurations + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ExportAs(typeof(global::System.Collections.Hashtable))] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "A dictionary of additional configurations to be added. Service will auto generate a set of basic configurations and this property is to full fill more customized configurations")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A dictionary of additional configurations to be added. Service will auto generate a set of basic configurations and this property is to full fill more customized configurations", + SerializedName = @"additionalConfigurations", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoAdditionalConfigurations) })] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoAdditionalConfigurations AdditionalConfiguration { get => _parametersBody.AdditionalConfiguration ?? null /* object */; set => _parametersBody.AdditionalConfiguration = value; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ServiceLinker Client => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Module.Instance.ClientAPI; + + /// + /// Optional. A dictionary of default key name and customized key name mapping. If not specified, default key name will be + /// used for generate configurations + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ExportAs(typeof(global::System.Collections.Hashtable))] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Optional. A dictionary of default key name and customized key name mapping. If not specified, default key name will be used for generate configurations")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Optional. A dictionary of default key name and customized key name mapping. If not specified, default key name will be used for generate configurations", + SerializedName = @"customizedKeys", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoCustomizedKeys) })] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoCustomizedKeys CustomizedKey { get => _parametersBody.CustomizedKey ?? null /* object */; set => _parametersBody.CustomizedKey = value; } + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// + /// Indicates whether to clean up previous operation when Linker is updating or deleting + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Indicates whether to clean up previous operation when Linker is updating or deleting")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Indicates whether to clean up previous operation when Linker is updating or deleting", + SerializedName = @"deleteOrUpdateBehavior", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.DoNotExport] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior))] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior DeleteOrUpdateBehavior { get => _parametersBody.DeleteOrUpdateBehavior ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior)""); set => _parametersBody.DeleteOrUpdateBehavior = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// Backing field for property. + private string _linkerName; + + /// The name Linker resource. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name Linker resource.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name Linker resource.", + SerializedName = @"linkerName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Path)] + public string LinkerName { get => this._linkerName; set => this._linkerName = value; } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceUri; + + /// + /// The fully qualified Azure Resource manager identifier of the resource to be connected. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The fully qualified Azure Resource manager identifier of the resource to be connected.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The fully qualified Azure Resource manager identifier of the resource to be connected.", + SerializedName = @"resourceUri", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Path)] + public string ResourceUri { get => this._resourceUri; set => this._resourceUri = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationResult + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public NewAzServiceLinkerConfiguration_GenerateExpanded() + { + + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'LinkersGenerateConfigurations' operation")) + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token); + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.LinkersGenerateConfigurations(ResourceUri, LinkerName, _parametersBody, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceUri=ResourceUri,LinkerName=LinkerName,body=_parametersBody}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceUri=ResourceUri, LinkerName=LinkerName, body=_parametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceUri=ResourceUri, LinkerName=LinkerName, body=_parametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationResult + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // response should be returning an array of some kind. +Pageable + // nested-array / configurations / + WriteObject((await response).Configuration, true); + } + } + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/cmdlets/NewAzServiceLinkerConfiguration_GenerateViaIdentity.cs b/src/ServiceLinker/generated/cmdlets/NewAzServiceLinkerConfiguration_GenerateViaIdentity.cs new file mode 100644 index 000000000000..3450bcaede86 --- /dev/null +++ b/src/ServiceLinker/generated/cmdlets/NewAzServiceLinkerConfiguration_GenerateViaIdentity.cs @@ -0,0 +1,398 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; + using System; + + /// Generate configurations for a Linker. + /// + /// [OpenAPI] GenerateConfigurations=>POST:"/{resourceUri}/providers/Microsoft.ServiceLinker/linkers/{linkerName}/generateConfigurations" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzServiceLinkerConfiguration_GenerateViaIdentity", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISourceConfiguration))] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Description(@"Generate configurations for a Linker.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Generated] + public partial class NewAzServiceLinkerConfiguration_GenerateViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ServiceLinker Client => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfo _parameter; + + /// + /// The configuration information, used to generate configurations or save to applications + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The configuration information, used to generate configurations or save to applications", ValueFromPipeline = true)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The configuration information, used to generate configurations or save to applications", + SerializedName = @"parameters", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfo) })] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfo Parameter { get => this._parameter; set => this._parameter = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationResult + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public NewAzServiceLinkerConfiguration_GenerateViaIdentity() + { + + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'LinkersGenerateConfigurations' operation")) + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token); + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.LinkersGenerateConfigurationsViaIdentity(InputObject.Id, Parameter, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.ResourceUri) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceUri"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.LinkerName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.LinkerName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.LinkersGenerateConfigurations(InputObject.ResourceUri ?? null, InputObject.LinkerName ?? null, Parameter, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=Parameter}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=Parameter }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=Parameter }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationResult + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // response should be returning an array of some kind. +Pageable + // nested-array / configurations / + WriteObject((await response).Configuration, true); + } + } + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/cmdlets/NewAzServiceLinkerConfiguration_GenerateViaIdentityExpanded.cs b/src/ServiceLinker/generated/cmdlets/NewAzServiceLinkerConfiguration_GenerateViaIdentityExpanded.cs new file mode 100644 index 000000000000..f9ce3732af28 --- /dev/null +++ b/src/ServiceLinker/generated/cmdlets/NewAzServiceLinkerConfiguration_GenerateViaIdentityExpanded.cs @@ -0,0 +1,448 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; + using System; + + /// Generate configurations for a Linker. + /// + /// [OpenAPI] GenerateConfigurations=>POST:"/{resourceUri}/providers/Microsoft.ServiceLinker/linkers/{linkerName}/generateConfigurations" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzServiceLinkerConfiguration_GenerateViaIdentityExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISourceConfiguration))] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Description(@"Generate configurations for a Linker.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Generated] + public partial class NewAzServiceLinkerConfiguration_GenerateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// + /// The configuration information, used to generate configurations or save to applications + /// + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfo _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfigurationInfo(); + + /// + /// Optional, indicate whether to apply configurations on source application. If enable, generate configurations and applied + /// to the source application. Default is enable. If optOut, no configuration change will be made on source. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Optional, indicate whether to apply configurations on source application. If enable, generate configurations and applied to the source application. Default is enable. If optOut, no configuration change will be made on source.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Optional, indicate whether to apply configurations on source application. If enable, generate configurations and applied to the source application. Default is enable. If optOut, no configuration change will be made on source.", + SerializedName = @"action", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType))] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType Action { get => _parametersBody.Action ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType)""); set => _parametersBody.Action = value; } + + /// + /// A dictionary of additional configurations to be added. Service will auto generate a set of basic configurations and this + /// property is to full fill more customized configurations + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ExportAs(typeof(global::System.Collections.Hashtable))] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "A dictionary of additional configurations to be added. Service will auto generate a set of basic configurations and this property is to full fill more customized configurations")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A dictionary of additional configurations to be added. Service will auto generate a set of basic configurations and this property is to full fill more customized configurations", + SerializedName = @"additionalConfigurations", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoAdditionalConfigurations) })] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoAdditionalConfigurations AdditionalConfiguration { get => _parametersBody.AdditionalConfiguration ?? null /* object */; set => _parametersBody.AdditionalConfiguration = value; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ServiceLinker Client => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Module.Instance.ClientAPI; + + /// + /// Optional. A dictionary of default key name and customized key name mapping. If not specified, default key name will be + /// used for generate configurations + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ExportAs(typeof(global::System.Collections.Hashtable))] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Optional. A dictionary of default key name and customized key name mapping. If not specified, default key name will be used for generate configurations")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Optional. A dictionary of default key name and customized key name mapping. If not specified, default key name will be used for generate configurations", + SerializedName = @"customizedKeys", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoCustomizedKeys) })] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoCustomizedKeys CustomizedKey { get => _parametersBody.CustomizedKey ?? null /* object */; set => _parametersBody.CustomizedKey = value; } + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// + /// Indicates whether to clean up previous operation when Linker is updating or deleting + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Indicates whether to clean up previous operation when Linker is updating or deleting")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Indicates whether to clean up previous operation when Linker is updating or deleting", + SerializedName = @"deleteOrUpdateBehavior", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.DoNotExport] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior))] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior DeleteOrUpdateBehavior { get => _parametersBody.DeleteOrUpdateBehavior ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior)""); set => _parametersBody.DeleteOrUpdateBehavior = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationResult + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public NewAzServiceLinkerConfiguration_GenerateViaIdentityExpanded() + { + + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'LinkersGenerateConfigurations' operation")) + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token); + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.LinkersGenerateConfigurationsViaIdentity(InputObject.Id, _parametersBody, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.ResourceUri) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceUri"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.LinkerName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.LinkerName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.LinkersGenerateConfigurations(InputObject.ResourceUri ?? null, InputObject.LinkerName ?? null, _parametersBody, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_parametersBody}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_parametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_parametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationResult + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // response should be returning an array of some kind. +Pageable + // nested-array / configurations / + WriteObject((await response).Configuration, true); + } + } + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/cmdlets/NewAzServiceLinkerDryrun_CreateExpanded.cs b/src/ServiceLinker/generated/cmdlets/NewAzServiceLinkerDryrun_CreateExpanded.cs new file mode 100644 index 000000000000..553018cd9453 --- /dev/null +++ b/src/ServiceLinker/generated/cmdlets/NewAzServiceLinkerDryrun_CreateExpanded.cs @@ -0,0 +1,457 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; + using System; + + /// create a dryrun job to do necessary check before actual creation + /// + /// [OpenAPI] CreateDryrun=>PUT:"/{resourceUri}/providers/Microsoft.ServiceLinker/dryruns/{dryrunName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzServiceLinkerDryrun_CreateExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResource))] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Description(@"create a dryrun job to do necessary check before actual creation")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Generated] + public partial class NewAzServiceLinkerDryrun_CreateExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// a dryrun job resource + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResource _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DryrunResource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ServiceLinker Client => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private string _dryrunName; + + /// The name of dryrun. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of dryrun.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of dryrun.", + SerializedName = @"dryrunName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Path)] + public string DryrunName { get => this._dryrunName; set => this._dryrunName = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceUri; + + /// + /// The fully qualified Azure Resource manager identifier of the resource to be connected. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The fully qualified Azure Resource manager identifier of the resource to be connected.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The fully qualified Azure Resource manager identifier of the resource to be connected.", + SerializedName = @"resourceUri", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Path)] + public string ResourceUri { get => this._resourceUri; set => this._resourceUri = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResource + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of NewAzServiceLinkerDryrun_CreateExpanded + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Cmdlets.NewAzServiceLinkerDryrun_CreateExpanded Clone() + { + var clone = new NewAzServiceLinkerDryrun_CreateExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone._parametersBody = this._parametersBody; + clone.ResourceUri = this.ResourceUri; + clone.DryrunName = this.DryrunName; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public NewAzServiceLinkerDryrun_CreateExpanded() + { + + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'LinkersCreateDryrun' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.LinkersCreateDryrun(ResourceUri, DryrunName, _parametersBody, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceUri=ResourceUri,DryrunName=DryrunName,body=_parametersBody}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceUri=ResourceUri, DryrunName=DryrunName, body=_parametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceUri=ResourceUri, DryrunName=DryrunName, body=_parametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResource + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResource + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/cmdlets/NewAzServiceLinker_CreateExpanded.cs b/src/ServiceLinker/generated/cmdlets/NewAzServiceLinker_CreateExpanded.cs index e15a44373034..44771ce4c7c0 100644 --- a/src/ServiceLinker/generated/cmdlets/NewAzServiceLinker_CreateExpanded.cs +++ b/src/ServiceLinker/generated/cmdlets/NewAzServiceLinker_CreateExpanded.cs @@ -8,14 +8,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Cmdlets using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; using System; - /// Create or update linker resource. + /// Create or update Linker resource. /// /// [OpenAPI] CreateOrUpdate=>PUT:"/{resourceUri}/providers/Microsoft.ServiceLinker/linkers/{linkerName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzServiceLinker_CreateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource))] - [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Description(@"Create or update linker resource.")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource))] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Description(@"Create or update Linker resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Generated] public partial class NewAzServiceLinker_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener @@ -35,7 +35,7 @@ public partial class NewAzServiceLinker_CreateExpanded : global::System.Manageme private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Linker of source and target resource - private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.LinkerResource(); + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.LinkerResource(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -50,8 +50,8 @@ public partial class NewAzServiceLinker_CreateExpanded : global::System.Manageme ReadOnly = false, Description = @"The authentication type.", SerializedName = @"authInfo", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBase) })] - public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBase AuthInfo { get => _parametersBody.AuthInfo ?? null /* object */; set => _parametersBody.AuthInfo = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase) })] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase AuthInfo { get => _parametersBody.AuthInfo ?? null /* object */; set => _parametersBody.AuthInfo = value; } /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] @@ -77,6 +77,66 @@ public partial class NewAzServiceLinker_CreateExpanded : global::System.Manageme [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType))] public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType ClientType { get => _parametersBody.ClientType ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType)""); set => _parametersBody.ClientType = value; } + /// + /// Optional, indicate whether to apply configurations on source application. If enable, generate configurations and applied + /// to the source application. Default is enable. If optOut, no configuration change will be made on source. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Optional, indicate whether to apply configurations on source application. If enable, generate configurations and applied to the source application. Default is enable. If optOut, no configuration change will be made on source.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Optional, indicate whether to apply configurations on source application. If enable, generate configurations and applied to the source application. Default is enable. If optOut, no configuration change will be made on source.", + SerializedName = @"action", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType))] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType ConfigurationInfoAction { get => _parametersBody.ConfigurationInfoAction ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType)""); set => _parametersBody.ConfigurationInfoAction = value; } + + /// + /// A dictionary of additional configurations to be added. Service will auto generate a set of basic configurations and this + /// property is to full fill more customized configurations + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ExportAs(typeof(global::System.Collections.Hashtable))] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "A dictionary of additional configurations to be added. Service will auto generate a set of basic configurations and this property is to full fill more customized configurations")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A dictionary of additional configurations to be added. Service will auto generate a set of basic configurations and this property is to full fill more customized configurations", + SerializedName = @"additionalConfigurations", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoAdditionalConfigurations) })] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoAdditionalConfigurations ConfigurationInfoAdditionalConfiguration { get => _parametersBody.ConfigurationInfoAdditionalConfiguration ?? null /* object */; set => _parametersBody.ConfigurationInfoAdditionalConfiguration = value; } + + /// + /// Optional. A dictionary of default key name and customized key name mapping. If not specified, default key name will be + /// used for generate configurations + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ExportAs(typeof(global::System.Collections.Hashtable))] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Optional. A dictionary of default key name and customized key name mapping. If not specified, default key name will be used for generate configurations")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Optional. A dictionary of default key name and customized key name mapping. If not specified, default key name will be used for generate configurations", + SerializedName = @"customizedKeys", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoCustomizedKeys) })] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoCustomizedKeys ConfigurationInfoCustomizedKey { get => _parametersBody.ConfigurationInfoCustomizedKey ?? null /* object */; set => _parametersBody.ConfigurationInfoCustomizedKey = value; } + + /// + /// Indicates whether to clean up previous operation when Linker is updating or deleting + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Indicates whether to clean up previous operation when Linker is updating or deleting")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Indicates whether to clean up previous operation when Linker is updating or deleting", + SerializedName = @"deleteOrUpdateBehavior", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.DoNotExport] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior))] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior ConfigurationInfoDeleteOrUpdateBehavior { get => _parametersBody.ConfigurationInfoDeleteOrUpdateBehavior ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior)""); set => _parametersBody.ConfigurationInfoDeleteOrUpdateBehavior = value; } + /// /// The credentials, account, tenant, and subscription used for communication with Azure /// @@ -86,6 +146,48 @@ public partial class NewAzServiceLinker_CreateExpanded : global::System.Manageme [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Azure)] public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + /// Allow Azure services to access the target service if true. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Allow Azure services to access the target service if true.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Allow Azure services to access the target service if true.", + SerializedName = @"azureServices", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType))] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType FirewallRuleAzureService { get => _parametersBody.FirewallRuleAzureService ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType)""); set => _parametersBody.FirewallRuleAzureService = value; } + + /// + /// Allow caller client IP to access the target service if true. the property is used when connecting local application to + /// target service. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Allow caller client IP to access the target service if true. the property is used when connecting local application to target service.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Allow caller client IP to access the target service if true. the property is used when connecting local application to target service.", + SerializedName = @"callerClientIP", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType))] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType FirewallRuleCallerClientIP { get => _parametersBody.FirewallRuleCallerClientIP ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType)""); set => _parametersBody.FirewallRuleCallerClientIP = value; } + + /// + /// This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client + /// IPs for a given database account. + /// + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client IPs for a given database account.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client IPs for a given database account.", + SerializedName = @"ipRanges", + PossibleTypes = new [] { typeof(string) })] + public string[] FirewallRuleIPRange { get => _parametersBody.FirewallRuleIPRange ?? null /* arrayOf */; set => _parametersBody.FirewallRuleIPRange = value; } + /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] [global::System.Management.Automation.ValidateNotNull] @@ -157,6 +259,36 @@ public partial class NewAzServiceLinker_CreateExpanded : global::System.Manageme [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + /// + /// Optional. Indicates public network solution. If enable, enable public network access of target service with best try. + /// Default is enable. If optOut, opt out public network access configuration. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Optional. Indicates public network solution. If enable, enable public network access of target service with best try. Default is enable. If optOut, opt out public network access configuration.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Optional. Indicates public network solution. If enable, enable public network access of target service with best try. Default is enable. If optOut, opt out public network access configuration.", + SerializedName = @"action", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType))] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType PublicNetworkSolutionAction { get => _parametersBody.PublicNetworkSolutionAction ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType)""); set => _parametersBody.PublicNetworkSolutionAction = value; } + + /// + /// Indicates whether to clean up previous operation(such as firewall rules) when Linker is updating or deleting + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Indicates whether to clean up previous operation(such as firewall rules) when Linker is updating or deleting")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Indicates whether to clean up previous operation(such as firewall rules) when Linker is updating or deleting", + SerializedName = @"deleteOrUpdateBehavior", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.DoNotExport] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior))] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior PublicNetworkSolutionDeleteOrUpdateBehavior { get => _parametersBody.PublicNetworkSolutionDeleteOrUpdateBehavior ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior)""); set => _parametersBody.PublicNetworkSolutionDeleteOrUpdateBehavior = value; } + /// Backing field for property. private string _resourceUri; @@ -195,6 +327,17 @@ public partial class NewAzServiceLinker_CreateExpanded : global::System.Manageme PossibleTypes = new [] { typeof(string) })] public string SecretStoreKeyVaultId { get => _parametersBody.SecretStoreKeyVaultId ?? null; set => _parametersBody.SecretStoreKeyVaultId = value; } + /// The key vault secret name to store secret, only valid when storing one secret + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The key vault secret name to store secret, only valid when storing one secret")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The key vault secret name to store secret, only valid when storing one secret", + SerializedName = @"keyVaultSecretName", + PossibleTypes = new [] { typeof(string) })] + public string SecretStoreKeyVaultSecretName { get => _parametersBody.SecretStoreKeyVaultSecretName ?? null; set => _parametersBody.SecretStoreKeyVaultSecretName = value; } + /// The target service properties [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The target service properties")] [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Body)] @@ -203,8 +346,23 @@ public partial class NewAzServiceLinker_CreateExpanded : global::System.Manageme ReadOnly = false, Description = @"The target service properties", SerializedName = @"targetService", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBase) })] - public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBase TargetService { get => _parametersBody.TargetService ?? null /* object */; set => _parametersBody.TargetService = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase) })] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase TargetService { get => _parametersBody.TargetService ?? null /* object */; set => _parametersBody.TargetService = value; } + + /// + /// Indicates whether to clean up previous operation when Linker is updating or deleting + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Indicates whether to clean up previous operation when Linker is updating or deleting")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Indicates whether to clean up previous operation when Linker is updating or deleting", + SerializedName = @"deleteOrUpdateBehavior", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.DoNotExport] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior))] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior VNetSolutionDeleteOrUpdateBehavior { get => _parametersBody.VNetSolutionDeleteOrUpdateBehavior ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior)""); set => _parametersBody.VNetSolutionDeleteOrUpdateBehavior = value; } /// Type of VNet solution. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Type of VNet solution.")] @@ -236,24 +394,24 @@ public partial class NewAzServiceLinker_CreateExpanded : global::System.Manageme /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponse + /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource + /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -483,12 +641,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponse + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -505,7 +663,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceUri=ResourceUri, Name=Name, XmsServiceconnectorUserToken=this.InvocationInformation.BoundParameters.ContainsKey("XmsServiceconnectorUserToken") ? XmsServiceconnectorUserToken : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -523,12 +681,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -540,7 +698,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource WriteObject((await response)); } } diff --git a/src/ServiceLinker/generated/cmdlets/RemoveAzServiceLinkerDryrun_Delete.cs b/src/ServiceLinker/generated/cmdlets/RemoveAzServiceLinkerDryrun_Delete.cs new file mode 100644 index 000000000000..f3207fe7a5e6 --- /dev/null +++ b/src/ServiceLinker/generated/cmdlets/RemoveAzServiceLinkerDryrun_Delete.cs @@ -0,0 +1,427 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; + using System; + + /// delete a dryrun job + /// + /// [OpenAPI] DeleteDryrun=>DELETE:"/{resourceUri}/providers/Microsoft.ServiceLinker/dryruns/{dryrunName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzServiceLinkerDryrun_Delete", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Description(@"delete a dryrun job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Generated] + public partial class RemoveAzServiceLinkerDryrun_Delete : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ServiceLinker Client => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private string _dryrunName; + + /// The name of dryrun. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of dryrun.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of dryrun.", + SerializedName = @"dryrunName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Path)] + public string DryrunName { get => this._dryrunName; set => this._dryrunName = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceUri; + + /// + /// The fully qualified Azure Resource manager identifier of the resource to be connected. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The fully qualified Azure Resource manager identifier of the resource to be connected.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The fully qualified Azure Resource manager identifier of the resource to be connected.", + SerializedName = @"resourceUri", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Path)] + public string ResourceUri { get => this._resourceUri; set => this._resourceUri = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of + /// what happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onNoContent method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnNoContent(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'LinkersDeleteDryrun' operation")) + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token); + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.LinkersDeleteDryrun(ResourceUri, DryrunName, onOk, onNoContent, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceUri=ResourceUri,DryrunName=DryrunName}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public RemoveAzServiceLinkerDryrun_Delete() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceUri=ResourceUri, DryrunName=DryrunName }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceUri=ResourceUri, DryrunName=DryrunName }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 204 (NoContent). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onNoContent(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnNoContent(responseMessage, ref _returnNow); + // if overrideOnNoContent has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onNoContent - response for 204 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/cmdlets/RemoveAzServiceLinkerDryrun_DeleteViaIdentity.cs b/src/ServiceLinker/generated/cmdlets/RemoveAzServiceLinkerDryrun_DeleteViaIdentity.cs new file mode 100644 index 000000000000..6d19904f4bd7 --- /dev/null +++ b/src/ServiceLinker/generated/cmdlets/RemoveAzServiceLinkerDryrun_DeleteViaIdentity.cs @@ -0,0 +1,421 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; + using System; + + /// delete a dryrun job + /// + /// [OpenAPI] DeleteDryrun=>DELETE:"/{resourceUri}/providers/Microsoft.ServiceLinker/dryruns/{dryrunName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzServiceLinkerDryrun_DeleteViaIdentity", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Description(@"delete a dryrun job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Generated] + public partial class RemoveAzServiceLinkerDryrun_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ServiceLinker Client => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of + /// what happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onNoContent method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnNoContent(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'LinkersDeleteDryrun' operation")) + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token); + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.LinkersDeleteDryrunViaIdentity(InputObject.Id, onOk, onNoContent, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.ResourceUri) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceUri"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.DryrunName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.DryrunName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.LinkersDeleteDryrun(InputObject.ResourceUri ?? null, InputObject.DryrunName ?? null, onOk, onNoContent, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public RemoveAzServiceLinkerDryrun_DeleteViaIdentity() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 204 (NoContent). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onNoContent(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnNoContent(responseMessage, ref _returnNow); + // if overrideOnNoContent has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onNoContent - response for 204 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/cmdlets/RemoveAzServiceLinker_Delete.cs b/src/ServiceLinker/generated/cmdlets/RemoveAzServiceLinker_Delete.cs index b41763743d1c..20841d43887f 100644 --- a/src/ServiceLinker/generated/cmdlets/RemoveAzServiceLinker_Delete.cs +++ b/src/ServiceLinker/generated/cmdlets/RemoveAzServiceLinker_Delete.cs @@ -8,14 +8,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Cmdlets using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; using System; - /// Delete a link. + /// Delete a Linker. /// /// [OpenAPI] Delete=>DELETE:"/{resourceUri}/providers/Microsoft.ServiceLinker/linkers/{linkerName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzServiceLinker_Delete", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Description(@"Delete a link.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Description(@"Delete a Linker.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Generated] public partial class RemoveAzServiceLinker_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener @@ -151,12 +151,12 @@ public partial class RemoveAzServiceLinker_Delete : global::System.Management.Au /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponse + /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -404,12 +404,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponse + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -426,7 +426,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceUri=ResourceUri, Name=Name }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/ServiceLinker/generated/cmdlets/RemoveAzServiceLinker_DeleteViaIdentity.cs b/src/ServiceLinker/generated/cmdlets/RemoveAzServiceLinker_DeleteViaIdentity.cs index 3c16f9a88971..145b947e8ed1 100644 --- a/src/ServiceLinker/generated/cmdlets/RemoveAzServiceLinker_DeleteViaIdentity.cs +++ b/src/ServiceLinker/generated/cmdlets/RemoveAzServiceLinker_DeleteViaIdentity.cs @@ -8,14 +8,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Cmdlets using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; using System; - /// Delete a link. + /// Delete a Linker. /// /// [OpenAPI] Delete=>DELETE:"/{resourceUri}/providers/Microsoft.ServiceLinker/linkers/{linkerName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzServiceLinker_DeleteViaIdentity", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Description(@"Delete a link.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Description(@"Delete a Linker.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Generated] public partial class RemoveAzServiceLinker_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener @@ -128,12 +128,12 @@ public partial class RemoveAzServiceLinker_DeleteViaIdentity : global::System.Ma /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponse + /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -395,12 +395,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponse + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -417,7 +417,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/ServiceLinker/generated/cmdlets/TestAzServiceLinker_Validate.cs b/src/ServiceLinker/generated/cmdlets/TestAzServiceLinker_Validate.cs index a358aff36569..bd4053c8fce0 100644 --- a/src/ServiceLinker/generated/cmdlets/TestAzServiceLinker_Validate.cs +++ b/src/ServiceLinker/generated/cmdlets/TestAzServiceLinker_Validate.cs @@ -8,14 +8,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Cmdlets using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; using System; - /// Validate a link. + /// Validate a Linker. /// /// [OpenAPI] Validate=>POST:"/{resourceUri}/providers/Microsoft.ServiceLinker/linkers/{linkerName}/validateLinker" /// [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsDiagnostic.Test, @"AzServiceLinker_Validate", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateOperationResult))] - [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Description(@"Validate a link.")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateOperationResult))] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Description(@"Validate a Linker.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Generated] public partial class TestAzServiceLinker_Validate : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener @@ -144,24 +144,24 @@ public partial class TestAzServiceLinker_Validate : global::System.Management.Au /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponse + /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateOperationResult + /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -389,12 +389,12 @@ public TestAzServiceLinker_Validate() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponse + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -411,7 +411,7 @@ public TestAzServiceLinker_Validate() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceUri=ResourceUri, Name=Name }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -429,12 +429,12 @@ public TestAzServiceLinker_Validate() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateOperationResult + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -446,7 +446,7 @@ public TestAzServiceLinker_Validate() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateOperationResult + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateOperationResult WriteObject((await response)); } } diff --git a/src/ServiceLinker/generated/cmdlets/TestAzServiceLinker_ValidateViaIdentity.cs b/src/ServiceLinker/generated/cmdlets/TestAzServiceLinker_ValidateViaIdentity.cs index 393af38e0522..5e3e096a826e 100644 --- a/src/ServiceLinker/generated/cmdlets/TestAzServiceLinker_ValidateViaIdentity.cs +++ b/src/ServiceLinker/generated/cmdlets/TestAzServiceLinker_ValidateViaIdentity.cs @@ -8,14 +8,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Cmdlets using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; using System; - /// Validate a link. + /// Validate a Linker. /// /// [OpenAPI] Validate=>POST:"/{resourceUri}/providers/Microsoft.ServiceLinker/linkers/{linkerName}/validateLinker" /// [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsDiagnostic.Test, @"AzServiceLinker_ValidateViaIdentity", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateOperationResult))] - [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Description(@"Validate a link.")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateOperationResult))] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Description(@"Validate a Linker.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Generated] public partial class TestAzServiceLinker_ValidateViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener @@ -121,24 +121,24 @@ public partial class TestAzServiceLinker_ValidateViaIdentity : global::System.Ma /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponse + /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateOperationResult + /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -380,12 +380,12 @@ public TestAzServiceLinker_ValidateViaIdentity() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponse + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -402,7 +402,7 @@ public TestAzServiceLinker_ValidateViaIdentity() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -420,12 +420,12 @@ public TestAzServiceLinker_ValidateViaIdentity() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateOperationResult + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -437,7 +437,7 @@ public TestAzServiceLinker_ValidateViaIdentity() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateOperationResult + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateOperationResult WriteObject((await response)); } } diff --git a/src/ServiceLinker/generated/cmdlets/UpdateAzServiceLinkerDryrun_UpdateExpanded.cs b/src/ServiceLinker/generated/cmdlets/UpdateAzServiceLinkerDryrun_UpdateExpanded.cs new file mode 100644 index 000000000000..6c07d985fcbc --- /dev/null +++ b/src/ServiceLinker/generated/cmdlets/UpdateAzServiceLinkerDryrun_UpdateExpanded.cs @@ -0,0 +1,457 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; + using System; + + /// add a dryrun job to do necessary check before actual creation + /// + /// [OpenAPI] UpdateDryrun=>PATCH:"/{resourceUri}/providers/Microsoft.ServiceLinker/dryruns/{dryrunName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzServiceLinkerDryrun_UpdateExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResource))] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Description(@"add a dryrun job to do necessary check before actual creation")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Generated] + public partial class UpdateAzServiceLinkerDryrun_UpdateExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// a dryrun job to be updated. + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DryrunPatch(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ServiceLinker Client => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private string _dryrunName; + + /// The name of dryrun. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of dryrun.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of dryrun.", + SerializedName = @"dryrunName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Path)] + public string DryrunName { get => this._dryrunName; set => this._dryrunName = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceUri; + + /// + /// The fully qualified Azure Resource manager identifier of the resource to be connected. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The fully qualified Azure Resource manager identifier of the resource to be connected.")] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The fully qualified Azure Resource manager identifier of the resource to be connected.", + SerializedName = @"resourceUri", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Path)] + public string ResourceUri { get => this._resourceUri; set => this._resourceUri = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResource + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of UpdateAzServiceLinkerDryrun_UpdateExpanded + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Cmdlets.UpdateAzServiceLinkerDryrun_UpdateExpanded Clone() + { + var clone = new UpdateAzServiceLinkerDryrun_UpdateExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone._parametersBody = this._parametersBody; + clone.ResourceUri = this.ResourceUri; + clone.DryrunName = this.DryrunName; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'LinkersUpdateDryrun' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.LinkersUpdateDryrun(ResourceUri, DryrunName, _parametersBody, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceUri=ResourceUri,DryrunName=DryrunName,body=_parametersBody}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public UpdateAzServiceLinkerDryrun_UpdateExpanded() + { + + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceUri=ResourceUri, DryrunName=DryrunName, body=_parametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceUri=ResourceUri, DryrunName=DryrunName, body=_parametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResource + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResource + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/cmdlets/UpdateAzServiceLinkerDryrun_UpdateViaIdentityExpanded.cs b/src/ServiceLinker/generated/cmdlets/UpdateAzServiceLinkerDryrun_UpdateViaIdentityExpanded.cs new file mode 100644 index 000000000000..1020729a6cd1 --- /dev/null +++ b/src/ServiceLinker/generated/cmdlets/UpdateAzServiceLinkerDryrun_UpdateViaIdentityExpanded.cs @@ -0,0 +1,449 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; + using System; + + /// add a dryrun job to do necessary check before actual creation + /// + /// [OpenAPI] UpdateDryrun=>PATCH:"/{resourceUri}/providers/Microsoft.ServiceLinker/dryruns/{dryrunName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzServiceLinkerDryrun_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResource))] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Description(@"add a dryrun job to do necessary check before actual creation")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Generated] + public partial class UpdateAzServiceLinkerDryrun_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// a dryrun job to be updated. + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.DryrunPatch(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ServiceLinker Client => Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Module.Instance.ClientAPI; + + /// + /// The credentials, account, tenant, and subscription used for communication with Azure + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResource + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of UpdateAzServiceLinkerDryrun_UpdateViaIdentityExpanded + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Cmdlets.UpdateAzServiceLinkerDryrun_UpdateViaIdentityExpanded Clone() + { + var clone = new UpdateAzServiceLinkerDryrun_UpdateViaIdentityExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone._parametersBody = this._parametersBody; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'LinkersUpdateDryrun' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.LinkersUpdateDryrunViaIdentity(InputObject.Id, _parametersBody, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.ResourceUri) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceUri"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.DryrunName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.DryrunName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.LinkersUpdateDryrun(InputObject.ResourceUri ?? null, InputObject.DryrunName ?? null, _parametersBody, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_parametersBody}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public UpdateAzServiceLinkerDryrun_UpdateViaIdentityExpanded() + { + + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_parametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_parametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResource + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResource + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/ServiceLinker/generated/cmdlets/UpdateAzServiceLinker_UpdateExpanded.cs b/src/ServiceLinker/generated/cmdlets/UpdateAzServiceLinker_UpdateExpanded.cs index 94a296be91cc..8df4e392d60f 100644 --- a/src/ServiceLinker/generated/cmdlets/UpdateAzServiceLinker_UpdateExpanded.cs +++ b/src/ServiceLinker/generated/cmdlets/UpdateAzServiceLinker_UpdateExpanded.cs @@ -8,14 +8,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Cmdlets using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; using System; - /// Operation to update an existing link. + /// Operation to update an existing Linker. /// /// [OpenAPI] Update=>PATCH:"/{resourceUri}/providers/Microsoft.ServiceLinker/linkers/{linkerName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzServiceLinker_UpdateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource))] - [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Description(@"Operation to update an existing link.")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource))] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Description(@"Operation to update an existing Linker.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Generated] public partial class UpdateAzServiceLinker_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener @@ -34,8 +34,8 @@ public partial class UpdateAzServiceLinker_UpdateExpanded : global::System.Manag /// private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - /// A linker to be updated. - private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.LinkerPatch(); + /// A Linker to be updated. + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.LinkerPatch(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -50,8 +50,8 @@ public partial class UpdateAzServiceLinker_UpdateExpanded : global::System.Manag ReadOnly = false, Description = @"The authentication type.", SerializedName = @"authInfo", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBase) })] - public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBase AuthInfo { get => _parametersBody.AuthInfo ?? null /* object */; set => _parametersBody.AuthInfo = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase) })] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase AuthInfo { get => _parametersBody.AuthInfo ?? null /* object */; set => _parametersBody.AuthInfo = value; } /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] @@ -73,6 +73,66 @@ public partial class UpdateAzServiceLinker_UpdateExpanded : global::System.Manag [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType))] public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType ClientType { get => _parametersBody.ClientType ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType)""); set => _parametersBody.ClientType = value; } + /// + /// Optional, indicate whether to apply configurations on source application. If enable, generate configurations and applied + /// to the source application. Default is enable. If optOut, no configuration change will be made on source. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Optional, indicate whether to apply configurations on source application. If enable, generate configurations and applied to the source application. Default is enable. If optOut, no configuration change will be made on source.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Optional, indicate whether to apply configurations on source application. If enable, generate configurations and applied to the source application. Default is enable. If optOut, no configuration change will be made on source.", + SerializedName = @"action", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType))] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType ConfigurationInfoAction { get => _parametersBody.ConfigurationInfoAction ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType)""); set => _parametersBody.ConfigurationInfoAction = value; } + + /// + /// A dictionary of additional configurations to be added. Service will auto generate a set of basic configurations and this + /// property is to full fill more customized configurations + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ExportAs(typeof(global::System.Collections.Hashtable))] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "A dictionary of additional configurations to be added. Service will auto generate a set of basic configurations and this property is to full fill more customized configurations")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A dictionary of additional configurations to be added. Service will auto generate a set of basic configurations and this property is to full fill more customized configurations", + SerializedName = @"additionalConfigurations", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoAdditionalConfigurations) })] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoAdditionalConfigurations ConfigurationInfoAdditionalConfiguration { get => _parametersBody.ConfigurationInfoAdditionalConfiguration ?? null /* object */; set => _parametersBody.ConfigurationInfoAdditionalConfiguration = value; } + + /// + /// Optional. A dictionary of default key name and customized key name mapping. If not specified, default key name will be + /// used for generate configurations + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ExportAs(typeof(global::System.Collections.Hashtable))] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Optional. A dictionary of default key name and customized key name mapping. If not specified, default key name will be used for generate configurations")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Optional. A dictionary of default key name and customized key name mapping. If not specified, default key name will be used for generate configurations", + SerializedName = @"customizedKeys", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoCustomizedKeys) })] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoCustomizedKeys ConfigurationInfoCustomizedKey { get => _parametersBody.ConfigurationInfoCustomizedKey ?? null /* object */; set => _parametersBody.ConfigurationInfoCustomizedKey = value; } + + /// + /// Indicates whether to clean up previous operation when Linker is updating or deleting + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Indicates whether to clean up previous operation when Linker is updating or deleting")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Indicates whether to clean up previous operation when Linker is updating or deleting", + SerializedName = @"deleteOrUpdateBehavior", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.DoNotExport] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior))] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior ConfigurationInfoDeleteOrUpdateBehavior { get => _parametersBody.ConfigurationInfoDeleteOrUpdateBehavior ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior)""); set => _parametersBody.ConfigurationInfoDeleteOrUpdateBehavior = value; } + /// /// The credentials, account, tenant, and subscription used for communication with Azure /// @@ -82,6 +142,48 @@ public partial class UpdateAzServiceLinker_UpdateExpanded : global::System.Manag [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Azure)] public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + /// Allow Azure services to access the target service if true. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Allow Azure services to access the target service if true.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Allow Azure services to access the target service if true.", + SerializedName = @"azureServices", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType))] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType FirewallRuleAzureService { get => _parametersBody.FirewallRuleAzureService ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType)""); set => _parametersBody.FirewallRuleAzureService = value; } + + /// + /// Allow caller client IP to access the target service if true. the property is used when connecting local application to + /// target service. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Allow caller client IP to access the target service if true. the property is used when connecting local application to target service.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Allow caller client IP to access the target service if true. the property is used when connecting local application to target service.", + SerializedName = @"callerClientIP", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType))] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType FirewallRuleCallerClientIP { get => _parametersBody.FirewallRuleCallerClientIP ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType)""); set => _parametersBody.FirewallRuleCallerClientIP = value; } + + /// + /// This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client + /// IPs for a given database account. + /// + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client IPs for a given database account.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client IPs for a given database account.", + SerializedName = @"ipRanges", + PossibleTypes = new [] { typeof(string) })] + public string[] FirewallRuleIPRange { get => _parametersBody.FirewallRuleIPRange ?? null /* arrayOf */; set => _parametersBody.FirewallRuleIPRange = value; } + /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] [global::System.Management.Automation.ValidateNotNull] @@ -149,6 +251,36 @@ public partial class UpdateAzServiceLinker_UpdateExpanded : global::System.Manag [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + /// + /// Optional. Indicates public network solution. If enable, enable public network access of target service with best try. + /// Default is enable. If optOut, opt out public network access configuration. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Optional. Indicates public network solution. If enable, enable public network access of target service with best try. Default is enable. If optOut, opt out public network access configuration.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Optional. Indicates public network solution. If enable, enable public network access of target service with best try. Default is enable. If optOut, opt out public network access configuration.", + SerializedName = @"action", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType))] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType PublicNetworkSolutionAction { get => _parametersBody.PublicNetworkSolutionAction ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType)""); set => _parametersBody.PublicNetworkSolutionAction = value; } + + /// + /// Indicates whether to clean up previous operation(such as firewall rules) when Linker is updating or deleting + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Indicates whether to clean up previous operation(such as firewall rules) when Linker is updating or deleting")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Indicates whether to clean up previous operation(such as firewall rules) when Linker is updating or deleting", + SerializedName = @"deleteOrUpdateBehavior", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.DoNotExport] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior))] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior PublicNetworkSolutionDeleteOrUpdateBehavior { get => _parametersBody.PublicNetworkSolutionDeleteOrUpdateBehavior ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior)""); set => _parametersBody.PublicNetworkSolutionDeleteOrUpdateBehavior = value; } + /// Backing field for property. private string _resourceUri; @@ -187,6 +319,17 @@ public partial class UpdateAzServiceLinker_UpdateExpanded : global::System.Manag PossibleTypes = new [] { typeof(string) })] public string SecretStoreKeyVaultId { get => _parametersBody.SecretStoreKeyVaultId ?? null; set => _parametersBody.SecretStoreKeyVaultId = value; } + /// The key vault secret name to store secret, only valid when storing one secret + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The key vault secret name to store secret, only valid when storing one secret")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The key vault secret name to store secret, only valid when storing one secret", + SerializedName = @"keyVaultSecretName", + PossibleTypes = new [] { typeof(string) })] + public string SecretStoreKeyVaultSecretName { get => _parametersBody.SecretStoreKeyVaultSecretName ?? null; set => _parametersBody.SecretStoreKeyVaultSecretName = value; } + /// The target service properties [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The target service properties")] [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Body)] @@ -195,8 +338,23 @@ public partial class UpdateAzServiceLinker_UpdateExpanded : global::System.Manag ReadOnly = false, Description = @"The target service properties", SerializedName = @"targetService", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBase) })] - public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBase TargetService { get => _parametersBody.TargetService ?? null /* object */; set => _parametersBody.TargetService = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase) })] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase TargetService { get => _parametersBody.TargetService ?? null /* object */; set => _parametersBody.TargetService = value; } + + /// + /// Indicates whether to clean up previous operation when Linker is updating or deleting + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Indicates whether to clean up previous operation when Linker is updating or deleting")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Indicates whether to clean up previous operation when Linker is updating or deleting", + SerializedName = @"deleteOrUpdateBehavior", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.DoNotExport] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior))] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior VNetSolutionDeleteOrUpdateBehavior { get => _parametersBody.VNetSolutionDeleteOrUpdateBehavior ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior)""); set => _parametersBody.VNetSolutionDeleteOrUpdateBehavior = value; } /// Type of VNet solution. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Type of VNet solution.")] @@ -228,24 +386,24 @@ public partial class UpdateAzServiceLinker_UpdateExpanded : global::System.Manag /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponse + /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource + /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -475,12 +633,12 @@ public UpdateAzServiceLinker_UpdateExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponse + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -497,7 +655,7 @@ public UpdateAzServiceLinker_UpdateExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceUri=ResourceUri, Name=Name, XmsServiceconnectorUserToken=this.InvocationInformation.BoundParameters.ContainsKey("XmsServiceconnectorUserToken") ? XmsServiceconnectorUserToken : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -515,12 +673,12 @@ public UpdateAzServiceLinker_UpdateExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -532,7 +690,7 @@ public UpdateAzServiceLinker_UpdateExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource WriteObject((await response)); } } diff --git a/src/ServiceLinker/generated/cmdlets/UpdateAzServiceLinker_UpdateViaIdentityExpanded.cs b/src/ServiceLinker/generated/cmdlets/UpdateAzServiceLinker_UpdateViaIdentityExpanded.cs index ef4d243d084c..50e2970e85fc 100644 --- a/src/ServiceLinker/generated/cmdlets/UpdateAzServiceLinker_UpdateViaIdentityExpanded.cs +++ b/src/ServiceLinker/generated/cmdlets/UpdateAzServiceLinker_UpdateViaIdentityExpanded.cs @@ -8,14 +8,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Cmdlets using static Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Extensions; using System; - /// Operation to update an existing link. + /// Operation to update an existing Linker. /// /// [OpenAPI] Update=>PATCH:"/{resourceUri}/providers/Microsoft.ServiceLinker/linkers/{linkerName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzServiceLinker_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource))] - [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Description(@"Operation to update an existing link.")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource))] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Description(@"Operation to update an existing Linker.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Generated] public partial class UpdateAzServiceLinker_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.IEventListener @@ -34,8 +34,8 @@ public partial class UpdateAzServiceLinker_UpdateViaIdentityExpanded : global::S /// private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - /// A linker to be updated. - private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.LinkerPatch(); + /// A Linker to be updated. + private Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.LinkerPatch(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -50,8 +50,8 @@ public partial class UpdateAzServiceLinker_UpdateViaIdentityExpanded : global::S ReadOnly = false, Description = @"The authentication type.", SerializedName = @"authInfo", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBase) })] - public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBase AuthInfo { get => _parametersBody.AuthInfo ?? null /* object */; set => _parametersBody.AuthInfo = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase) })] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase AuthInfo { get => _parametersBody.AuthInfo ?? null /* object */; set => _parametersBody.AuthInfo = value; } /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] @@ -73,6 +73,66 @@ public partial class UpdateAzServiceLinker_UpdateViaIdentityExpanded : global::S [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType))] public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType ClientType { get => _parametersBody.ClientType ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType)""); set => _parametersBody.ClientType = value; } + /// + /// Optional, indicate whether to apply configurations on source application. If enable, generate configurations and applied + /// to the source application. Default is enable. If optOut, no configuration change will be made on source. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Optional, indicate whether to apply configurations on source application. If enable, generate configurations and applied to the source application. Default is enable. If optOut, no configuration change will be made on source.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Optional, indicate whether to apply configurations on source application. If enable, generate configurations and applied to the source application. Default is enable. If optOut, no configuration change will be made on source.", + SerializedName = @"action", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType))] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType ConfigurationInfoAction { get => _parametersBody.ConfigurationInfoAction ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType)""); set => _parametersBody.ConfigurationInfoAction = value; } + + /// + /// A dictionary of additional configurations to be added. Service will auto generate a set of basic configurations and this + /// property is to full fill more customized configurations + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ExportAs(typeof(global::System.Collections.Hashtable))] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "A dictionary of additional configurations to be added. Service will auto generate a set of basic configurations and this property is to full fill more customized configurations")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A dictionary of additional configurations to be added. Service will auto generate a set of basic configurations and this property is to full fill more customized configurations", + SerializedName = @"additionalConfigurations", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoAdditionalConfigurations) })] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoAdditionalConfigurations ConfigurationInfoAdditionalConfiguration { get => _parametersBody.ConfigurationInfoAdditionalConfiguration ?? null /* object */; set => _parametersBody.ConfigurationInfoAdditionalConfiguration = value; } + + /// + /// Optional. A dictionary of default key name and customized key name mapping. If not specified, default key name will be + /// used for generate configurations + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ExportAs(typeof(global::System.Collections.Hashtable))] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Optional. A dictionary of default key name and customized key name mapping. If not specified, default key name will be used for generate configurations")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Optional. A dictionary of default key name and customized key name mapping. If not specified, default key name will be used for generate configurations", + SerializedName = @"customizedKeys", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoCustomizedKeys) })] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoCustomizedKeys ConfigurationInfoCustomizedKey { get => _parametersBody.ConfigurationInfoCustomizedKey ?? null /* object */; set => _parametersBody.ConfigurationInfoCustomizedKey = value; } + + /// + /// Indicates whether to clean up previous operation when Linker is updating or deleting + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Indicates whether to clean up previous operation when Linker is updating or deleting")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Indicates whether to clean up previous operation when Linker is updating or deleting", + SerializedName = @"deleteOrUpdateBehavior", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.DoNotExport] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior))] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior ConfigurationInfoDeleteOrUpdateBehavior { get => _parametersBody.ConfigurationInfoDeleteOrUpdateBehavior ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior)""); set => _parametersBody.ConfigurationInfoDeleteOrUpdateBehavior = value; } + /// /// The credentials, account, tenant, and subscription used for communication with Azure /// @@ -82,6 +142,48 @@ public partial class UpdateAzServiceLinker_UpdateViaIdentityExpanded : global::S [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Azure)] public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + /// Allow Azure services to access the target service if true. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Allow Azure services to access the target service if true.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Allow Azure services to access the target service if true.", + SerializedName = @"azureServices", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType))] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType FirewallRuleAzureService { get => _parametersBody.FirewallRuleAzureService ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType)""); set => _parametersBody.FirewallRuleAzureService = value; } + + /// + /// Allow caller client IP to access the target service if true. the property is used when connecting local application to + /// target service. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Allow caller client IP to access the target service if true. the property is used when connecting local application to target service.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Allow caller client IP to access the target service if true. the property is used when connecting local application to target service.", + SerializedName = @"callerClientIP", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType))] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType FirewallRuleCallerClientIP { get => _parametersBody.FirewallRuleCallerClientIP ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType)""); set => _parametersBody.FirewallRuleCallerClientIP = value; } + + /// + /// This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client + /// IPs for a given database account. + /// + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client IPs for a given database account.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client IPs for a given database account.", + SerializedName = @"ipRanges", + PossibleTypes = new [] { typeof(string) })] + public string[] FirewallRuleIPRange { get => _parametersBody.FirewallRuleIPRange ?? null /* arrayOf */; set => _parametersBody.FirewallRuleIPRange = value; } + /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] [global::System.Management.Automation.ValidateNotNull] @@ -142,6 +244,36 @@ public partial class UpdateAzServiceLinker_UpdateViaIdentityExpanded : global::S [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + /// + /// Optional. Indicates public network solution. If enable, enable public network access of target service with best try. + /// Default is enable. If optOut, opt out public network access configuration. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Optional. Indicates public network solution. If enable, enable public network access of target service with best try. Default is enable. If optOut, opt out public network access configuration.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Optional. Indicates public network solution. If enable, enable public network access of target service with best try. Default is enable. If optOut, opt out public network access configuration.", + SerializedName = @"action", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType))] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType PublicNetworkSolutionAction { get => _parametersBody.PublicNetworkSolutionAction ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType)""); set => _parametersBody.PublicNetworkSolutionAction = value; } + + /// + /// Indicates whether to clean up previous operation(such as firewall rules) when Linker is updating or deleting + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Indicates whether to clean up previous operation(such as firewall rules) when Linker is updating or deleting")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Indicates whether to clean up previous operation(such as firewall rules) when Linker is updating or deleting", + SerializedName = @"deleteOrUpdateBehavior", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.DoNotExport] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior))] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior PublicNetworkSolutionDeleteOrUpdateBehavior { get => _parametersBody.PublicNetworkSolutionDeleteOrUpdateBehavior ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior)""); set => _parametersBody.PublicNetworkSolutionDeleteOrUpdateBehavior = value; } + /// connection scope in source service. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "connection scope in source service.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Body)] @@ -164,6 +296,17 @@ public partial class UpdateAzServiceLinker_UpdateViaIdentityExpanded : global::S PossibleTypes = new [] { typeof(string) })] public string SecretStoreKeyVaultId { get => _parametersBody.SecretStoreKeyVaultId ?? null; set => _parametersBody.SecretStoreKeyVaultId = value; } + /// The key vault secret name to store secret, only valid when storing one secret + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The key vault secret name to store secret, only valid when storing one secret")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The key vault secret name to store secret, only valid when storing one secret", + SerializedName = @"keyVaultSecretName", + PossibleTypes = new [] { typeof(string) })] + public string SecretStoreKeyVaultSecretName { get => _parametersBody.SecretStoreKeyVaultSecretName ?? null; set => _parametersBody.SecretStoreKeyVaultSecretName = value; } + /// The target service properties [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The target service properties")] [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Body)] @@ -172,8 +315,23 @@ public partial class UpdateAzServiceLinker_UpdateViaIdentityExpanded : global::S ReadOnly = false, Description = @"The target service properties", SerializedName = @"targetService", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBase) })] - public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBase TargetService { get => _parametersBody.TargetService ?? null /* object */; set => _parametersBody.TargetService = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase) })] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase TargetService { get => _parametersBody.TargetService ?? null /* object */; set => _parametersBody.TargetService = value; } + + /// + /// Indicates whether to clean up previous operation when Linker is updating or deleting + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Indicates whether to clean up previous operation when Linker is updating or deleting")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Indicates whether to clean up previous operation when Linker is updating or deleting", + SerializedName = @"deleteOrUpdateBehavior", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.DoNotExport] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior))] + public Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior VNetSolutionDeleteOrUpdateBehavior { get => _parametersBody.VNetSolutionDeleteOrUpdateBehavior ?? ((Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.DeleteOrUpdateBehavior)""); set => _parametersBody.VNetSolutionDeleteOrUpdateBehavior = value; } /// Type of VNet solution. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Type of VNet solution.")] @@ -205,24 +363,24 @@ public partial class UpdateAzServiceLinker_UpdateViaIdentityExpanded : global::S /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponse + /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource + /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -466,12 +624,12 @@ public UpdateAzServiceLinker_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IErrorResponse + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -488,7 +646,7 @@ public UpdateAzServiceLinker_UpdateViaIdentityExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { XmsServiceconnectorUserToken=this.InvocationInformation.BoundParameters.ContainsKey("XmsServiceconnectorUserToken") ? XmsServiceconnectorUserToken : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -506,12 +664,12 @@ public UpdateAzServiceLinker_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -523,7 +681,7 @@ public UpdateAzServiceLinker_UpdateViaIdentityExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource WriteObject((await response)); } } diff --git a/src/ServiceLinker/generated/runtime/AsyncOperationResponse.cs b/src/ServiceLinker/generated/runtime/AsyncOperationResponse.cs index 51d41a7d25ee..48b6acf64c36 100644 --- a/src/ServiceLinker/generated/runtime/AsyncOperationResponse.cs +++ b/src/ServiceLinker/generated/runtime/AsyncOperationResponse.cs @@ -31,10 +31,10 @@ public static AsyncOperationResponse FromJson(Microsoft.Azure.PowerShell.Cmdlets /// - /// Creates a new instance of , deserializing the content from a json string. + /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static AsyncOperationResponse FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Json.JsonNode.Parse(jsonText)); } @@ -43,19 +43,19 @@ public partial class AsyncOperationResponseTypeConverter : System.Management.Aut { /// - /// Determines if the converter can convert the parameter to the + /// Determines if the converter can convert the parameter to the /// parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the + /// true if the converter can convert the parameter to the /// parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the + /// Determines if the converter can convert the parameter to a type /// parameter. /// /// the instance to check if it can be converted to the - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the + /// true if the converter can convert the parameter to the /// parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -128,8 +128,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/ServiceLinker/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs b/src/ServiceLinker/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs index 623c8dccd883..5b67d8b12167 100644 --- a/src/ServiceLinker/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs +++ b/src/ServiceLinker/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() throw new ArgumentException($"Custom folder '{CustomFolder}' does not exist"); } - string version = Convert.ToString(@"0.1.0"); + string version = Convert.ToString(@"0.1.1"); // Validate the module version should be semantic version // Following regex is official from https://semver.org/ Regex rx = new Regex(@"^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$", RegexOptions.Compiled); @@ -163,7 +163,7 @@ protected override void ProcessRecord() if (previewVersion != null) { - sb.AppendLine($@"{Indent}{Indent}{Indent}Prerelease = {previewVersion}"); + sb.AppendLine($@"{Indent}{Indent}{Indent}Prerelease = '{previewVersion}'"); } sb.AppendLine($@"{Indent}{Indent}{Indent}Tags = {"Azure ResourceManager ARM PSModule ServiceLinker".Split(' ').ToPsList().NullIfEmpty() ?? "''"}"); sb.AppendLine($@"{Indent}{Indent}{Indent}LicenseUri = '{"https://aka.ms/azps-license"}'"); diff --git a/src/ServiceLinker/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/src/ServiceLinker/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index e958b4fbf03a..2b02a9435490 100644 --- a/src/ServiceLinker/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/src/ServiceLinker/generated/runtime/BuildTime/Models/PsProxyOutputs.cs @@ -199,7 +199,7 @@ private string GetTelemetry() { return $@" {Indent}{Indent}if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {{ -{Indent}{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Runspace.Version.ToString() +{Indent}{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() {Indent}{Indent}}} {Indent}{Indent}$preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId {Indent}{Indent}if ($preTelemetryId -eq '') {{ @@ -604,7 +604,7 @@ string RenderProperty(ComplexInterfaceInfo info, string indent, bool dash, bool return ni.IsComplexInterface ? ni.ToNoteOutput(nestedIndent, includeDashes, includeBackticks, false) : RenderProperty(ni, nestedIndent, includeDashes, includeBackticks); - }).Prepend(RenderProperty(complexInterfaceInfo, currentIndent, !isFirst && includeDashes, !isFirst && includeBackticks)); + }).Prepend(RenderProperty(complexInterfaceInfo, currentIndent, !isFirst && includeDashes, includeBackticks)); return String.Join(Environment.NewLine, nested); } } diff --git a/src/ServiceLinker/generated/runtime/BuildTime/PsHelpers.cs b/src/ServiceLinker/generated/runtime/BuildTime/PsHelpers.cs index fc52b214fd80..d7eba5cb0d0d 100644 --- a/src/ServiceLinker/generated/runtime/BuildTime/PsHelpers.cs +++ b/src/ServiceLinker/generated/runtime/BuildTime/PsHelpers.cs @@ -39,9 +39,10 @@ public static IEnumerable GetModuleCmdlets(params string[] modulePa public static IEnumerable GetScriptCmdlets(PSCmdlet cmdlet, string scriptFolder) { // https://stackoverflow.com/a/40969712/294804 + var wrappedFolder = scriptFolder.Contains("'") ? $@"""{scriptFolder}""" : $@"'{scriptFolder}'"; var getCmdletsCommand = $@" $currentFunctions = Get-ChildItem function: -Get-ChildItem -Path '{scriptFolder}' -Recurse -Include '*.ps1' -File | ForEach-Object {{ . $_.FullName }} +Get-ChildItem -Path {wrappedFolder} -Recurse -Include '*.ps1' -File | ForEach-Object {{ . $_.FullName }} Get-ChildItem function: | Where-Object {{ ($currentFunctions -notcontains $_) -and $_.CmdletBinding }} "; return cmdlet?.RunScript(getCmdletsCommand) ?? RunScript(getCmdletsCommand); diff --git a/src/ServiceLinker/generated/runtime/Customizations/IJsonSerializable.cs b/src/ServiceLinker/generated/runtime/Customizations/IJsonSerializable.cs index 061eabc9f5df..c1f62886d9b7 100644 --- a/src/ServiceLinker/generated/runtime/Customizations/IJsonSerializable.cs +++ b/src/ServiceLinker/generated/runtime/Customizations/IJsonSerializable.cs @@ -129,7 +129,7 @@ private static JsonNode TryToJsonValue(dynamic oValue) /// /// Serialize an object by using a variety of methods. /// - /// the object to be serialized. + /// the object to be serialized. /// the serialized JsonNode (if successful), otherwise, null internal static JsonNode ToJsonValue(object value) { diff --git a/src/ServiceLinker/generated/runtime/EventDataExtensions.cs b/src/ServiceLinker/generated/runtime/EventDataExtensions.cs index 43c2ef504cb9..e74fbe5509d1 100644 --- a/src/ServiceLinker/generated/runtime/EventDataExtensions.cs +++ b/src/ServiceLinker/generated/runtime/EventDataExtensions.cs @@ -7,7 +7,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime { using System; - [System.ComponentModel.TypeConverter(typeof(EventDataConverter))] /// /// PowerShell-specific data on top of the llc# EventData /// @@ -16,6 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime /// Obviously, this code would need to be duplcated on both modules. /// This is preferable to sharing a common library, as versioning makes that problematic. /// + [System.ComponentModel.TypeConverter(typeof(EventDataConverter))] public partial class EventData : EventArgs { } diff --git a/src/ServiceLinker/generated/runtime/ISendAsync.cs b/src/ServiceLinker/generated/runtime/ISendAsync.cs index a953397e02aa..d6b451aa43cf 100644 --- a/src/ServiceLinker/generated/runtime/ISendAsync.cs +++ b/src/ServiceLinker/generated/runtime/ISendAsync.cs @@ -238,6 +238,8 @@ internal static Task CloneWithContentAndDispose(this HttpReq /// Clones an HttpRequestMessage (without the content) /// /// Original HttpRequestMessage (Will be diposed before returning) + /// + /// /// A clone of the HttpRequestMessage internal static HttpRequestMessage Clone(this HttpRequestMessage original, System.Uri requestUri = null, System.Net.Http.HttpMethod method = null) { @@ -252,9 +254,9 @@ internal static HttpRequestMessage Clone(this HttpRequestMessage original, Syste { clone.Properties.Add(prop); } - + foreach (KeyValuePair> header in original.Headers) - { + { /* **temporarily skip cloning telemetry related headers** clone.Headers.TryAddWithoutValidation(header.Key, header.Value); @@ -264,7 +266,7 @@ internal static HttpRequestMessage Clone(this HttpRequestMessage original, Syste clone.Headers.TryAddWithoutValidation(header.Key, header.Value); } } - + return clone; } @@ -272,6 +274,8 @@ internal static HttpRequestMessage Clone(this HttpRequestMessage original, Syste /// Clones an HttpRequestMessage (including the content stream and content headers) /// /// Original HttpRequestMessage (Will be diposed before returning) + /// + /// /// A clone of the HttpRequestMessage internal static async Task CloneWithContent(this HttpRequestMessage original, System.Uri requestUri = null, System.Net.Http.HttpMethod method = null) { diff --git a/src/ServiceLinker/generated/runtime/MessageAttribute.cs b/src/ServiceLinker/generated/runtime/MessageAttribute.cs index df3dfdb35bc4..9581dea51103 100644 --- a/src/ServiceLinker/generated/runtime/MessageAttribute.cs +++ b/src/ServiceLinker/generated/runtime/MessageAttribute.cs @@ -276,7 +276,7 @@ protected override string GetAttributeSpecificMessage() /// then the attribbute is applicable /// If the invocationInfo is null we return true /// - /// + /// /// bool public override bool IsApplicableToInvocation(InvocationInfo invocationInfo) { diff --git a/src/ServiceLinker/generated/runtime/PipelineMocking.cs b/src/ServiceLinker/generated/runtime/PipelineMocking.cs index 417dfe9471ab..6bb97f2ec626 100644 --- a/src/ServiceLinker/generated/runtime/PipelineMocking.cs +++ b/src/ServiceLinker/generated/runtime/PipelineMocking.cs @@ -259,4 +259,4 @@ public async Task SendAsync(HttpRequestMessage request, IEv } } } -} \ No newline at end of file +} diff --git a/src/ServiceLinker/help/Az.ServiceLinker.md b/src/ServiceLinker/help/Az.ServiceLinker.md index 45f0d962a1cc..b6729f5539d0 100644 --- a/src/ServiceLinker/help/Az.ServiceLinker.md +++ b/src/ServiceLinker/help/Az.ServiceLinker.md @@ -20,6 +20,9 @@ list source configurations for a linker in spring cloud. ### [Get-AzServiceLinkerConfigurationForWebApp](Get-AzServiceLinkerConfigurationForWebApp.md) list source configurations for a linker in webapp. +### [Get-AzServiceLinkerConfigurationName](Get-AzServiceLinkerConfigurationName.md) +Lists the configuration names generated by Service Connector for all target, client types, auth types. + ### [Get-AzServiceLinkerForContainerApp](Get-AzServiceLinkerForContainerApp.md) Returns Linker resource for a given name in container app. @@ -62,7 +65,7 @@ Create an in-memory object for UserAssignedIdentityAuthInfo. ### [Remove-AzServiceLinkerForContainerApp](Remove-AzServiceLinkerForContainerApp.md) Delete a link. -### [Remove-AzServiceLinkerForSpringcloud](Remove-AzServiceLinkerForSpringcloud.md) +### [Remove-AzServiceLinkerForSpringCloud](Remove-AzServiceLinkerForSpringCloud.md) Delete a link in spring cloud. ### [Remove-AzServiceLinkerForWebApp](Remove-AzServiceLinkerForWebApp.md) diff --git a/src/ServiceLinker/help/Get-AzServiceLinkerConfigurationForContainerApp.md b/src/ServiceLinker/help/Get-AzServiceLinkerConfigurationForContainerApp.md index 8555d2c289ed..614e54780063 100644 --- a/src/ServiceLinker/help/Get-AzServiceLinkerConfigurationForContainerApp.md +++ b/src/ServiceLinker/help/Get-AzServiceLinkerConfigurationForContainerApp.md @@ -168,7 +168,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISourceConfiguration +### Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISourceConfiguration ## NOTES diff --git a/src/ServiceLinker/help/Get-AzServiceLinkerConfigurationForSpringCloud.md b/src/ServiceLinker/help/Get-AzServiceLinkerConfigurationForSpringCloud.md index c3780c2db56d..8c1a24bf841e 100644 --- a/src/ServiceLinker/help/Get-AzServiceLinkerConfigurationForSpringCloud.md +++ b/src/ServiceLinker/help/Get-AzServiceLinkerConfigurationForSpringCloud.md @@ -198,7 +198,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISourceConfiguration +### Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISourceConfiguration ## NOTES diff --git a/src/ServiceLinker/help/Get-AzServiceLinkerConfigurationForWebApp.md b/src/ServiceLinker/help/Get-AzServiceLinkerConfigurationForWebApp.md index 648575bcaf8f..d8eeb4128d9a 100644 --- a/src/ServiceLinker/help/Get-AzServiceLinkerConfigurationForWebApp.md +++ b/src/ServiceLinker/help/Get-AzServiceLinkerConfigurationForWebApp.md @@ -168,7 +168,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISourceConfiguration +### Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISourceConfiguration ## NOTES diff --git a/src/ServiceLinker/help/Get-AzServiceLinkerConfigurationName.md b/src/ServiceLinker/help/Get-AzServiceLinkerConfigurationName.md new file mode 100644 index 000000000000..724fdb998e78 --- /dev/null +++ b/src/ServiceLinker/help/Get-AzServiceLinkerConfigurationName.md @@ -0,0 +1,101 @@ +--- +external help file: +Module Name: Az.ServiceLinker +online version: https://learn.microsoft.com/powershell/module/az.servicelinker/get-azservicelinkerconfigurationname +schema: 2.0.0 +--- + +# Get-AzServiceLinkerConfigurationName + +## SYNOPSIS +Lists the configuration names generated by Service Connector for all target, client types, auth types. + +## SYNTAX + +``` +Get-AzServiceLinkerConfigurationName [-Filter ] [-SkipToken ] [-DefaultProfile ] + [] +``` + +## DESCRIPTION +Lists the configuration names generated by Service Connector for all target, client types, auth types. + +## EXAMPLES + +### Example 1: Get expected configuration names of difference connection +```powershell +Get-AzServiceLinkerConfigurationName +``` + +```output +systemAssignedIdentity none {Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.Config… +userAssignedIdentity none {Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.Config… +servicePrincipalSecret none {Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.Config… +secret none {Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.Config… +accessKey none {Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.Config… +``` + +Get the expected configuration names of connection with each auth type and client type. + +## PARAMETERS + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Filter +OData filter options. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SkipToken +OData skipToken option for pagination. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationNameItem + +## NOTES + +ALIASES + +## RELATED LINKS + diff --git a/src/ServiceLinker/help/Get-AzServiceLinkerForContainerApp.md b/src/ServiceLinker/help/Get-AzServiceLinkerForContainerApp.md index 438716144ccd..dc41c080d4bd 100644 --- a/src/ServiceLinker/help/Get-AzServiceLinkerForContainerApp.md +++ b/src/ServiceLinker/help/Get-AzServiceLinkerForContainerApp.md @@ -58,7 +58,7 @@ Get-AzServiceLinkerForContainerApp -ContainerApp servicelinker-app -ResourceGrou ```output AuthInfo : Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Model - s.Api20220501.SecretAuthInfo + s.Api20221101Preview.SecretAuthInfo ClientType : dotnet Id : /subscriptions/00000000-0000-0000-0000-000000000000/re sourceGroups/servicelinker-test-group/providers/ @@ -75,7 +75,7 @@ SystemDataLastModifiedAt : SystemDataLastModifiedBy : SystemDataLastModifiedByType : TargetService : Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Model - s.Api20220501.AzureResource + s.Api20221101Preview.AzureResource Type : microsoft.servicelinker/linkers VNetSolutionType : serviceEndpoint @@ -94,7 +94,7 @@ $identity | Get-AzServiceLinkerForContainerApp | Format-List ```output AuthInfo : Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Model - s.Api20220501.SecretAuthInfo + s.Api20221101Preview.SecretAuthInfo ClientType : dotnet Id : /subscriptions/00000000-0000-0000-0000-000000000000/re sourceGroups/servicelinker-test-group/providers/ @@ -111,7 +111,7 @@ SystemDataLastModifiedAt : SystemDataLastModifiedBy : SystemDataLastModifiedByType : TargetService : Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Model - s.Api20220501.AzureResource + s.Api20221101Preview.AzureResource Type : microsoft.servicelinker/linkers VNetSolutionType : serviceEndpoint @@ -237,7 +237,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource +### Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource ## NOTES @@ -248,10 +248,15 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -INPUTOBJECT ``: Identity Parameter +`INPUTOBJECT `: Identity Parameter + - `[ConnectorName ]`: The name of resource. + - `[DryrunName ]`: The name of dryrun. - `[Id ]`: Resource identity path - `[LinkerName ]`: The name Linker resource. + - `[Location ]`: The name of Azure region. + - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - `[ResourceUri ]`: The fully qualified Azure Resource manager identifier of the resource to be connected. + - `[SubscriptionId ]`: The ID of the target subscription. ## RELATED LINKS diff --git a/src/ServiceLinker/help/Get-AzServiceLinkerForSpringCloud.md b/src/ServiceLinker/help/Get-AzServiceLinkerForSpringCloud.md index 977e0c7d6ce0..8018dcf83217 100644 --- a/src/ServiceLinker/help/Get-AzServiceLinkerForSpringCloud.md +++ b/src/ServiceLinker/help/Get-AzServiceLinkerForSpringCloud.md @@ -60,7 +60,7 @@ Get-AzServiceLinkerForSpringCloud -ServiceName servicelinker-springcloud -AppNam ```output AuthInfo : Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Model - s.Api20220501.SecretAuthInfo + s.Api20221101Preview.SecretAuthInfo ClientType : dotnet Id : /subscriptions/00000000-0000-0000-0000-000000000000/re sourceGroups/servicelinker-test-group/providers/ @@ -77,7 +77,7 @@ SystemDataLastModifiedAt : SystemDataLastModifiedBy : SystemDataLastModifiedByType : TargetService : Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Model - s.Api20220501.AzureResource + s.Api20221101Preview.AzureResource Type : microsoft.servicelinker/linkers VNetSolutionType : serviceEndpoint @@ -96,7 +96,7 @@ $identity | Get-AzServiceLinkerForSpringCloud | Format-List ```output AuthInfo : Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Model - s.Api20220501.SecretAuthInfo + s.Api20221101Preview.SecretAuthInfo ClientType : dotnet Id : /subscriptions/00000000-0000-0000-0000-000000000000/re sourceGroups/servicelinker-test-group/providers/ @@ -113,7 +113,7 @@ SystemDataLastModifiedAt : SystemDataLastModifiedBy : SystemDataLastModifiedByType : TargetService : Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Model - s.Api20220501.AzureResource + s.Api20221101Preview.AzureResource Type : microsoft.servicelinker/linkers VNetSolutionType : serviceEndpoint @@ -269,7 +269,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource +### Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource ## NOTES @@ -280,10 +280,15 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -INPUTOBJECT ``: Identity Parameter +`INPUTOBJECT `: Identity Parameter + - `[ConnectorName ]`: The name of resource. + - `[DryrunName ]`: The name of dryrun. - `[Id ]`: Resource identity path - `[LinkerName ]`: The name Linker resource. + - `[Location ]`: The name of Azure region. + - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - `[ResourceUri ]`: The fully qualified Azure Resource manager identifier of the resource to be connected. + - `[SubscriptionId ]`: The ID of the target subscription. ## RELATED LINKS diff --git a/src/ServiceLinker/help/Get-AzServiceLinkerForWebApp.md b/src/ServiceLinker/help/Get-AzServiceLinkerForWebApp.md index 416991f0dcd9..9c978d01c422 100644 --- a/src/ServiceLinker/help/Get-AzServiceLinkerForWebApp.md +++ b/src/ServiceLinker/help/Get-AzServiceLinkerForWebApp.md @@ -58,7 +58,7 @@ Get-AzServiceLinkerForWebApp -WebApp servicelinker-webapp -ResourceGroupName ser ```output AuthInfo : Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Model - s.Api20220501.SecretAuthInfo + s.Api20221101Preview.SecretAuthInfo ClientType : dotnet Id : /subscriptions/00000000-0000-0000-0000-000000000000/re sourceGroups/servicelinker-test-group/providers/ @@ -75,7 +75,7 @@ SystemDataLastModifiedAt : SystemDataLastModifiedBy : SystemDataLastModifiedByType : TargetService : Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Model - s.Api20220501.AzureResource + s.Api20221101Preview.AzureResource Type : microsoft.servicelinker/linkers VNetSolutionType : serviceEndpoint @@ -94,7 +94,7 @@ $identity | Get-AzServiceLinkerForWebApp | Format-List ```output AuthInfo : Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Model - s.Api20220501.SecretAuthInfo + s.Api20221101Preview.SecretAuthInfo ClientType : dotnet Id : /subscriptions/00000000-0000-0000-0000-000000000000/re sourceGroups/servicelinker-test-group/providers/ @@ -111,7 +111,7 @@ SystemDataLastModifiedAt : SystemDataLastModifiedBy : SystemDataLastModifiedByType : TargetService : Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Model - s.Api20220501.AzureResource + s.Api20221101Preview.AzureResource Type : microsoft.servicelinker/linkers VNetSolutionType : serviceEndpoint @@ -237,7 +237,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource +### Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource ## NOTES @@ -248,10 +248,15 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -INPUTOBJECT ``: Identity Parameter +`INPUTOBJECT `: Identity Parameter + - `[ConnectorName ]`: The name of resource. + - `[DryrunName ]`: The name of dryrun. - `[Id ]`: Resource identity path - `[LinkerName ]`: The name Linker resource. + - `[Location ]`: The name of Azure region. + - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - `[ResourceUri ]`: The fully qualified Azure Resource manager identifier of the resource to be connected. + - `[SubscriptionId ]`: The ID of the target subscription. ## RELATED LINKS diff --git a/src/ServiceLinker/help/New-AzServiceLinkerAzureResourceObject.md b/src/ServiceLinker/help/New-AzServiceLinkerAzureResourceObject.md index b81e3a952dfb..32a0bbb4618a 100644 --- a/src/ServiceLinker/help/New-AzServiceLinkerAzureResourceObject.md +++ b/src/ServiceLinker/help/New-AzServiceLinkerAzureResourceObject.md @@ -76,7 +76,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.AzureResource +### Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.AzureResource ## NOTES diff --git a/src/ServiceLinker/help/New-AzServiceLinkerConfluentBootstrapServerObject.md b/src/ServiceLinker/help/New-AzServiceLinkerConfluentBootstrapServerObject.md index 732ec7f6b777..cc90578e4da4 100644 --- a/src/ServiceLinker/help/New-AzServiceLinkerConfluentBootstrapServerObject.md +++ b/src/ServiceLinker/help/New-AzServiceLinkerConfluentBootstrapServerObject.md @@ -58,7 +58,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ConfluentBootstrapServer +### Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfluentBootstrapServer ## NOTES diff --git a/src/ServiceLinker/help/New-AzServiceLinkerConfluentSchemaRegistryObject.md b/src/ServiceLinker/help/New-AzServiceLinkerConfluentSchemaRegistryObject.md index 1ce6218df035..f4694d2e6ce1 100644 --- a/src/ServiceLinker/help/New-AzServiceLinkerConfluentSchemaRegistryObject.md +++ b/src/ServiceLinker/help/New-AzServiceLinkerConfluentSchemaRegistryObject.md @@ -58,7 +58,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ConfluentSchemaRegistry +### Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ConfluentSchemaRegistry ## NOTES diff --git a/src/ServiceLinker/help/New-AzServiceLinkerForContainerApp.md b/src/ServiceLinker/help/New-AzServiceLinkerForContainerApp.md index a31e5efe7e3e..462fa8587ac8 100644 --- a/src/ServiceLinker/help/New-AzServiceLinkerForContainerApp.md +++ b/src/ServiceLinker/help/New-AzServiceLinkerForContainerApp.md @@ -13,9 +13,13 @@ Create or update linker resource in container app. ## SYNTAX ``` -New-AzServiceLinkerForContainerApp -AuthInfo -Scope - -TargetService -ContainerApp -ResourceGroupName [-Name ] - [-ResourceUri ] [-ClientType ] [-SecretStoreKeyVaultId ] +New-AzServiceLinkerForContainerApp -AuthInfo -TargetService + -ContainerApp -ResourceGroupName [-Name ] [-ResourceUri ] + [-ClientType ] [-ConfigurationInfoAction ] + [-ConfigurationInfoAdditionalConfiguration ] [-ConfigurationInfoCustomizedKey ] + [-FirewallRuleAzureService ] [-FirewallRuleCallerClientIP ] + [-FirewallRuleIPRange ] [-PublicNetworkSolutionAction ] [-Scope ] + [-SecretStoreKeyVaultId ] [-SecretStoreKeyVaultSecretName ] [-VNetSolutionType ] [-DefaultProfile ] [-AsJob] [-NoWait] [-SubscriptionId ] [-Confirm] [-WhatIf] [] ``` @@ -64,7 +68,7 @@ The authentication type. To construct, see NOTES section for AUTHINFO properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBase +Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase Parameter Sets: (All) Aliases: @@ -90,6 +94,57 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ConfigurationInfoAction +Optional, indicate whether to apply configurations on source application. +If enable, generate configurations and applied to the source application. +Default is enable. +If optOut, no configuration change will be made on source. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ConfigurationInfoAdditionalConfiguration +A dictionary of additional configurations to be added. +Service will auto generate a set of basic configurations and this property is to full fill more customized configurations + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ConfigurationInfoCustomizedKey +Optional. +A dictionary of default key name and customized key name mapping. +If not specified, default key name will be used for generate configurations + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ContainerApp The Name of container app of the resource to be connected. @@ -120,6 +175,52 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -FirewallRuleAzureService +Allow Azure services to access the target service if true. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -FirewallRuleCallerClientIP +Allow caller client IP to access the target service if true. +the property is used when connecting local application to target service. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -FirewallRuleIPRange +This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client IPs for a given database account. + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Name The name Linker resource. @@ -150,6 +251,25 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -PublicNetworkSolutionAction +Optional. +Indicates public network solution. +If enable, enable public network access of target service with best try. +Default is enable. +If optOut, opt out public network access configuration. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName [ResourceGroupCompleter] The resource group of the resource to be connected. @@ -189,7 +309,7 @@ Type: System.String Parameter Sets: (All) Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False @@ -211,6 +331,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -SecretStoreKeyVaultSecretName +The key vault secret name to store secret, only valid when storing one secret + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SubscriptionId Gets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. @@ -232,7 +367,7 @@ The target service properties To construct, see NOTES section for TARGETSERVICE properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBase +Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase Parameter Sets: (All) Aliases: @@ -296,7 +431,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource +### Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource ## NOTES @@ -307,10 +442,10 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -AUTHINFO ``: The authentication type. +`AUTHINFO `: The authentication type. - `AuthType `: The authentication type. -TARGETSERVICE ``: The target service properties +`TARGETSERVICE `: The target service properties - `Type `: The target service type. ## RELATED LINKS diff --git a/src/ServiceLinker/help/New-AzServiceLinkerForSpringCloud.md b/src/ServiceLinker/help/New-AzServiceLinkerForSpringCloud.md index cf2f552b42a0..bd209377d7f5 100644 --- a/src/ServiceLinker/help/New-AzServiceLinkerForSpringCloud.md +++ b/src/ServiceLinker/help/New-AzServiceLinkerForSpringCloud.md @@ -15,7 +15,11 @@ Create or update linker resource in spring cloud. ``` New-AzServiceLinkerForSpringCloud -AuthInfo -TargetService -AppName -ResourceGroupName -ServiceName [-Name ] [-ResourceUri ] - [-ClientType ] [-Scope ] [-SecretStoreKeyVaultId ] + [-ClientType ] [-ConfigurationInfoAction ] + [-ConfigurationInfoAdditionalConfiguration ] [-ConfigurationInfoCustomizedKey ] + [-FirewallRuleAzureService ] [-FirewallRuleCallerClientIP ] + [-FirewallRuleIPRange ] [-PublicNetworkSolutionAction ] [-Scope ] + [-SecretStoreKeyVaultId ] [-SecretStoreKeyVaultSecretName ] [-VNetSolutionType ] [-DefaultProfile ] [-AsJob] [-DeploymentName ] [-NoWait] [-SubscriptionId ] [-Confirm] [-WhatIf] [] ``` @@ -81,7 +85,7 @@ The authentication type. To construct, see NOTES section for AUTHINFO properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBase +Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase Parameter Sets: (All) Aliases: @@ -107,6 +111,57 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ConfigurationInfoAction +Optional, indicate whether to apply configurations on source application. +If enable, generate configurations and applied to the source application. +Default is enable. +If optOut, no configuration change will be made on source. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ConfigurationInfoAdditionalConfiguration +A dictionary of additional configurations to be added. +Service will auto generate a set of basic configurations and this property is to full fill more customized configurations + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ConfigurationInfoCustomizedKey +Optional. +A dictionary of default key name and customized key name mapping. +If not specified, default key name will be used for generate configurations + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -DefaultProfile The credentials, account, tenant, and subscription used for communication with Azure. @@ -137,6 +192,52 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -FirewallRuleAzureService +Allow Azure services to access the target service if true. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -FirewallRuleCallerClientIP +Allow caller client IP to access the target service if true. +the property is used when connecting local application to target service. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -FirewallRuleIPRange +This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client IPs for a given database account. + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Name The name Linker resource. @@ -167,6 +268,25 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -PublicNetworkSolutionAction +Optional. +Indicates public network solution. +If enable, enable public network access of target service with best try. +Default is enable. +If optOut, opt out public network access configuration. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName [ResourceGroupCompleter] The resource group of the resource to be connected. @@ -228,6 +348,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -SecretStoreKeyVaultSecretName +The key vault secret name to store secret, only valid when storing one secret + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ServiceName The Name of spring cloud service to be connected. @@ -264,7 +399,7 @@ The target service properties To construct, see NOTES section for TARGETSERVICE properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBase +Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase Parameter Sets: (All) Aliases: @@ -328,7 +463,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource +### Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource ## NOTES @@ -339,10 +474,10 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -AUTHINFO ``: The authentication type. +`AUTHINFO `: The authentication type. - `AuthType `: The authentication type. -TARGETSERVICE ``: The target service properties +`TARGETSERVICE `: The target service properties - `Type `: The target service type. ## RELATED LINKS diff --git a/src/ServiceLinker/help/New-AzServiceLinkerForWebApp.md b/src/ServiceLinker/help/New-AzServiceLinkerForWebApp.md index b94b0a05b205..af435680c0d1 100644 --- a/src/ServiceLinker/help/New-AzServiceLinkerForWebApp.md +++ b/src/ServiceLinker/help/New-AzServiceLinkerForWebApp.md @@ -15,7 +15,11 @@ Create or update linker resource in webapp. ``` New-AzServiceLinkerForWebApp -AuthInfo -TargetService -ResourceGroupName -WebApp [-Name ] [-ResourceUri ] - [-ClientType ] [-Scope ] [-SecretStoreKeyVaultId ] + [-ClientType ] [-ConfigurationInfoAction ] + [-ConfigurationInfoAdditionalConfiguration ] [-ConfigurationInfoCustomizedKey ] + [-FirewallRuleAzureService ] [-FirewallRuleCallerClientIP ] + [-FirewallRuleIPRange ] [-PublicNetworkSolutionAction ] [-Scope ] + [-SecretStoreKeyVaultId ] [-SecretStoreKeyVaultSecretName ] [-VNetSolutionType ] [-DefaultProfile ] [-AsJob] [-NoWait] [-SubscriptionId ] [-Confirm] [-WhatIf] [] ``` @@ -64,7 +68,7 @@ The authentication type. To construct, see NOTES section for AUTHINFO properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBase +Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase Parameter Sets: (All) Aliases: @@ -90,6 +94,57 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ConfigurationInfoAction +Optional, indicate whether to apply configurations on source application. +If enable, generate configurations and applied to the source application. +Default is enable. +If optOut, no configuration change will be made on source. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ConfigurationInfoAdditionalConfiguration +A dictionary of additional configurations to be added. +Service will auto generate a set of basic configurations and this property is to full fill more customized configurations + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ConfigurationInfoCustomizedKey +Optional. +A dictionary of default key name and customized key name mapping. +If not specified, default key name will be used for generate configurations + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -DefaultProfile The credentials, account, tenant, and subscription used for communication with Azure. @@ -105,6 +160,52 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -FirewallRuleAzureService +Allow Azure services to access the target service if true. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -FirewallRuleCallerClientIP +Allow caller client IP to access the target service if true. +the property is used when connecting local application to target service. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -FirewallRuleIPRange +This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client IPs for a given database account. + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Name The name Linker resource. @@ -135,6 +236,25 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -PublicNetworkSolutionAction +Optional. +Indicates public network solution. +If enable, enable public network access of target service with best try. +Default is enable. +If optOut, opt out public network access configuration. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName [ResourceGroupCompleter] The resource group of the resource to be connected. @@ -196,6 +316,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -SecretStoreKeyVaultSecretName +The key vault secret name to store secret, only valid when storing one secret + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SubscriptionId Gets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. @@ -217,7 +352,7 @@ The target service properties To construct, see NOTES section for TARGETSERVICE properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBase +Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase Parameter Sets: (All) Aliases: @@ -297,7 +432,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource +### Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource ## NOTES @@ -308,10 +443,10 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -AUTHINFO ``: The authentication type. +`AUTHINFO `: The authentication type. - `AuthType `: The authentication type. -TARGETSERVICE ``: The target service properties +`TARGETSERVICE `: The target service properties - `Type `: The target service type. ## RELATED LINKS diff --git a/src/ServiceLinker/help/New-AzServiceLinkerSecretAuthInfoObject.md b/src/ServiceLinker/help/New-AzServiceLinkerSecretAuthInfoObject.md index 51c6f9889f8f..51e139188c22 100644 --- a/src/ServiceLinker/help/New-AzServiceLinkerSecretAuthInfoObject.md +++ b/src/ServiceLinker/help/New-AzServiceLinkerSecretAuthInfoObject.md @@ -131,7 +131,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.SecretAuthInfo +### Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.SecretAuthInfo ## NOTES diff --git a/src/ServiceLinker/help/New-AzServiceLinkerServicePrincipalSecretAuthInfoObject.md b/src/ServiceLinker/help/New-AzServiceLinkerServicePrincipalSecretAuthInfoObject.md index 8055bac895fa..21e2d209c265 100644 --- a/src/ServiceLinker/help/New-AzServiceLinkerServicePrincipalSecretAuthInfoObject.md +++ b/src/ServiceLinker/help/New-AzServiceLinkerServicePrincipalSecretAuthInfoObject.md @@ -91,7 +91,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ServicePrincipalSecretAuthInfo +### Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ServicePrincipalSecretAuthInfo ## NOTES diff --git a/src/ServiceLinker/help/New-AzServiceLinkerSystemAssignedIdentityAuthInfoObject.md b/src/ServiceLinker/help/New-AzServiceLinkerSystemAssignedIdentityAuthInfoObject.md index fe470d86d61b..a73d29f9b582 100644 --- a/src/ServiceLinker/help/New-AzServiceLinkerSystemAssignedIdentityAuthInfoObject.md +++ b/src/ServiceLinker/help/New-AzServiceLinkerSystemAssignedIdentityAuthInfoObject.md @@ -43,7 +43,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.SystemAssignedIdentityAuthInfo +### Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.SystemAssignedIdentityAuthInfo ## NOTES diff --git a/src/ServiceLinker/help/New-AzServiceLinkerUserAssignedIdentityAuthInfoObject.md b/src/ServiceLinker/help/New-AzServiceLinkerUserAssignedIdentityAuthInfoObject.md index 8ce13edf1908..df1cb03c1423 100644 --- a/src/ServiceLinker/help/New-AzServiceLinkerUserAssignedIdentityAuthInfoObject.md +++ b/src/ServiceLinker/help/New-AzServiceLinkerUserAssignedIdentityAuthInfoObject.md @@ -74,7 +74,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.UserAssignedIdentityAuthInfo +### Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.UserAssignedIdentityAuthInfo ## NOTES diff --git a/src/ServiceLinker/help/Remove-AzServiceLinkerForContainerApp.md b/src/ServiceLinker/help/Remove-AzServiceLinkerForContainerApp.md index 84a5f9db97bf..3a9feaa6a17d 100644 --- a/src/ServiceLinker/help/Remove-AzServiceLinkerForContainerApp.md +++ b/src/ServiceLinker/help/Remove-AzServiceLinkerForContainerApp.md @@ -242,10 +242,15 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -INPUTOBJECT ``: Identity Parameter +`INPUTOBJECT `: Identity Parameter + - `[ConnectorName ]`: The name of resource. + - `[DryrunName ]`: The name of dryrun. - `[Id ]`: Resource identity path - `[LinkerName ]`: The name Linker resource. + - `[Location ]`: The name of Azure region. + - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - `[ResourceUri ]`: The fully qualified Azure Resource manager identifier of the resource to be connected. + - `[SubscriptionId ]`: The ID of the target subscription. ## RELATED LINKS diff --git a/src/ServiceLinker/help/Remove-AzServiceLinkerForSpringcloud.md b/src/ServiceLinker/help/Remove-AzServiceLinkerForSpringcloud.md index d6abf8a54cbb..5fde7755390a 100644 --- a/src/ServiceLinker/help/Remove-AzServiceLinkerForSpringcloud.md +++ b/src/ServiceLinker/help/Remove-AzServiceLinkerForSpringcloud.md @@ -5,7 +5,7 @@ online version: https://learn.microsoft.com/powershell/module/az.servicelinker/r schema: 2.0.0 --- -# Remove-AzServiceLinkerForSpringcloud +# Remove-AzServiceLinkerForSpringCloud ## SYNOPSIS Delete a link in spring cloud. @@ -14,7 +14,7 @@ Delete a link in spring cloud. ### Delete (Default) ``` -Remove-AzServiceLinkerForSpringcloud -Name -AppName -ResourceGroupName +Remove-AzServiceLinkerForSpringCloud -Name -AppName -ResourceGroupName -ServiceName [-ResourceUri ] [-DefaultProfile ] [-AsJob] [-DeploymentName ] [-NoWait] [-PassThru] [-SubscriptionId ] [-Confirm] [-WhatIf] [] @@ -22,7 +22,7 @@ Remove-AzServiceLinkerForSpringcloud -Name -AppName -ResourceG ### DeleteViaIdentity ``` -Remove-AzServiceLinkerForSpringcloud -InputObject [-DefaultProfile ] +Remove-AzServiceLinkerForSpringCloud -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-SubscriptionId ] [-Confirm] [-WhatIf] [] ``` @@ -273,10 +273,15 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -INPUTOBJECT ``: Identity Parameter +`INPUTOBJECT `: Identity Parameter + - `[ConnectorName ]`: The name of resource. + - `[DryrunName ]`: The name of dryrun. - `[Id ]`: Resource identity path - `[LinkerName ]`: The name Linker resource. + - `[Location ]`: The name of Azure region. + - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - `[ResourceUri ]`: The fully qualified Azure Resource manager identifier of the resource to be connected. + - `[SubscriptionId ]`: The ID of the target subscription. ## RELATED LINKS diff --git a/src/ServiceLinker/help/Remove-AzServiceLinkerForWebApp.md b/src/ServiceLinker/help/Remove-AzServiceLinkerForWebApp.md index 7b4da6072ef8..484aed5145ef 100644 --- a/src/ServiceLinker/help/Remove-AzServiceLinkerForWebApp.md +++ b/src/ServiceLinker/help/Remove-AzServiceLinkerForWebApp.md @@ -242,10 +242,15 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -INPUTOBJECT ``: Identity Parameter +`INPUTOBJECT `: Identity Parameter + - `[ConnectorName ]`: The name of resource. + - `[DryrunName ]`: The name of dryrun. - `[Id ]`: Resource identity path - `[LinkerName ]`: The name Linker resource. + - `[Location ]`: The name of Azure region. + - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - `[ResourceUri ]`: The fully qualified Azure Resource manager identifier of the resource to be connected. + - `[SubscriptionId ]`: The ID of the target subscription. ## RELATED LINKS diff --git a/src/ServiceLinker/help/Test-AzServiceLinkerForContainerApp.md b/src/ServiceLinker/help/Test-AzServiceLinkerForContainerApp.md index ab6ef9f3c099..8487709b8c04 100644 --- a/src/ServiceLinker/help/Test-AzServiceLinkerForContainerApp.md +++ b/src/ServiceLinker/help/Test-AzServiceLinkerForContainerApp.md @@ -234,7 +234,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResult +### Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResult ## NOTES @@ -245,10 +245,15 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -INPUTOBJECT ``: Identity Parameter +`INPUTOBJECT `: Identity Parameter + - `[ConnectorName ]`: The name of resource. + - `[DryrunName ]`: The name of dryrun. - `[Id ]`: Resource identity path - `[LinkerName ]`: The name Linker resource. + - `[Location ]`: The name of Azure region. + - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - `[ResourceUri ]`: The fully qualified Azure Resource manager identifier of the resource to be connected. + - `[SubscriptionId ]`: The ID of the target subscription. ## RELATED LINKS diff --git a/src/ServiceLinker/help/Test-AzServiceLinkerForSpringCloud.md b/src/ServiceLinker/help/Test-AzServiceLinkerForSpringCloud.md index b4ea05d4e2e7..a768e5cf2abf 100644 --- a/src/ServiceLinker/help/Test-AzServiceLinkerForSpringCloud.md +++ b/src/ServiceLinker/help/Test-AzServiceLinkerForSpringCloud.md @@ -264,7 +264,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResult +### Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResult ## NOTES @@ -275,10 +275,15 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -INPUTOBJECT ``: Identity Parameter +`INPUTOBJECT `: Identity Parameter + - `[ConnectorName ]`: The name of resource. + - `[DryrunName ]`: The name of dryrun. - `[Id ]`: Resource identity path - `[LinkerName ]`: The name Linker resource. + - `[Location ]`: The name of Azure region. + - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - `[ResourceUri ]`: The fully qualified Azure Resource manager identifier of the resource to be connected. + - `[SubscriptionId ]`: The ID of the target subscription. ## RELATED LINKS diff --git a/src/ServiceLinker/help/Test-AzServiceLinkerForWebApp.md b/src/ServiceLinker/help/Test-AzServiceLinkerForWebApp.md index d93f66e95dff..ca5a5c33bce1 100644 --- a/src/ServiceLinker/help/Test-AzServiceLinkerForWebApp.md +++ b/src/ServiceLinker/help/Test-AzServiceLinkerForWebApp.md @@ -234,7 +234,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateResult +### Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateResult ## NOTES @@ -245,10 +245,15 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -INPUTOBJECT ``: Identity Parameter +`INPUTOBJECT `: Identity Parameter + - `[ConnectorName ]`: The name of resource. + - `[DryrunName ]`: The name of dryrun. - `[Id ]`: Resource identity path - `[LinkerName ]`: The name Linker resource. + - `[Location ]`: The name of Azure region. + - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - `[ResourceUri ]`: The fully qualified Azure Resource manager identifier of the resource to be connected. + - `[SubscriptionId ]`: The ID of the target subscription. ## RELATED LINKS diff --git a/src/ServiceLinker/help/Update-AzServiceLinkerForContainerApp.md b/src/ServiceLinker/help/Update-AzServiceLinkerForContainerApp.md index 4c9288b7ca95..1cf1b4540ad9 100644 --- a/src/ServiceLinker/help/Update-AzServiceLinkerForContainerApp.md +++ b/src/ServiceLinker/help/Update-AzServiceLinkerForContainerApp.md @@ -71,7 +71,7 @@ The authentication type. To construct, see NOTES section for AUTHINFO properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBase +Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase Parameter Sets: (All) Aliases: @@ -254,7 +254,7 @@ The target service properties To construct, see NOTES section for TARGETSERVICE properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBase +Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase Parameter Sets: (All) Aliases: @@ -320,7 +320,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource +### Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource ## NOTES @@ -331,15 +331,20 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -AUTHINFO ``: The authentication type. +`AUTHINFO `: The authentication type. - `AuthType `: The authentication type. -INPUTOBJECT ``: Identity Parameter +`INPUTOBJECT `: Identity Parameter + - `[ConnectorName ]`: The name of resource. + - `[DryrunName ]`: The name of dryrun. - `[Id ]`: Resource identity path - `[LinkerName ]`: The name Linker resource. + - `[Location ]`: The name of Azure region. + - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - `[ResourceUri ]`: The fully qualified Azure Resource manager identifier of the resource to be connected. + - `[SubscriptionId ]`: The ID of the target subscription. -TARGETSERVICE ``: The target service properties +`TARGETSERVICE `: The target service properties - `Type `: The target service type. ## RELATED LINKS diff --git a/src/ServiceLinker/help/Update-AzServiceLinkerForSpringCloud.md b/src/ServiceLinker/help/Update-AzServiceLinkerForSpringCloud.md index 8ce157aa7aa0..df8cc2e5bd97 100644 --- a/src/ServiceLinker/help/Update-AzServiceLinkerForSpringCloud.md +++ b/src/ServiceLinker/help/Update-AzServiceLinkerForSpringCloud.md @@ -86,7 +86,7 @@ The authentication type. To construct, see NOTES section for AUTHINFO properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBase +Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase Parameter Sets: (All) Aliases: @@ -284,7 +284,7 @@ The target service properties To construct, see NOTES section for TARGETSERVICE properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBase +Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase Parameter Sets: (All) Aliases: @@ -350,7 +350,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource +### Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource ## NOTES @@ -361,15 +361,20 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -AUTHINFO ``: The authentication type. +`AUTHINFO `: The authentication type. - `AuthType `: The authentication type. -INPUTOBJECT ``: Identity Parameter +`INPUTOBJECT `: Identity Parameter + - `[ConnectorName ]`: The name of resource. + - `[DryrunName ]`: The name of dryrun. - `[Id ]`: Resource identity path - `[LinkerName ]`: The name Linker resource. + - `[Location ]`: The name of Azure region. + - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - `[ResourceUri ]`: The fully qualified Azure Resource manager identifier of the resource to be connected. + - `[SubscriptionId ]`: The ID of the target subscription. -TARGETSERVICE ``: The target service properties +`TARGETSERVICE `: The target service properties - `Type `: The target service type. ## RELATED LINKS diff --git a/src/ServiceLinker/help/Update-AzServiceLinkerForWebApp.md b/src/ServiceLinker/help/Update-AzServiceLinkerForWebApp.md index 75336ed54b8e..fa3a5669db88 100644 --- a/src/ServiceLinker/help/Update-AzServiceLinkerForWebApp.md +++ b/src/ServiceLinker/help/Update-AzServiceLinkerForWebApp.md @@ -71,7 +71,7 @@ The authentication type. To construct, see NOTES section for AUTHINFO properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBase +Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase Parameter Sets: (All) Aliases: @@ -239,7 +239,7 @@ The target service properties To construct, see NOTES section for TARGETSERVICE properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBase +Type: Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase Parameter Sets: (All) Aliases: @@ -320,7 +320,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource +### Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource ## NOTES @@ -331,15 +331,20 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -AUTHINFO ``: The authentication type. +`AUTHINFO `: The authentication type. - `AuthType `: The authentication type. -INPUTOBJECT ``: Identity Parameter +`INPUTOBJECT `: Identity Parameter + - `[ConnectorName ]`: The name of resource. + - `[DryrunName ]`: The name of dryrun. - `[Id ]`: Resource identity path - `[LinkerName ]`: The name Linker resource. + - `[Location ]`: The name of Azure region. + - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - `[ResourceUri ]`: The fully qualified Azure Resource manager identifier of the resource to be connected. + - `[SubscriptionId ]`: The ID of the target subscription. -TARGETSERVICE ``: The target service properties +`TARGETSERVICE `: The target service properties - `Type `: The target service type. ## RELATED LINKS diff --git a/src/ServiceLinker/how-to.md b/src/ServiceLinker/how-to.md index f89b42d9df27..d152b55c58a7 100644 --- a/src/ServiceLinker/how-to.md +++ b/src/ServiceLinker/how-to.md @@ -14,7 +14,7 @@ To generate documentation, the process is now integrated into the `build-module. To test the cmdlets, we use [Pester](https://github.com/pester/Pester). Tests scripts (`.ps1`) should be added to the `test` folder. To execute the Pester tests, run the `test-module.ps1` script. This will run all tests in `playback` mode within the `test` folder. To read more about testing cmdlets, look at the [README.md](examples/README.md) in the `examples` folder. ## Packing `Az.ServiceLinker` -To pack `Az.ServiceLinker` for distribution, run the `pack-module.ps1` script. This will take the contents of multiple directories and certain root-folder files to create a `.nupkg`. The structure of the `.nupkg` is created so it can be loaded part of a [PSRepository](https://learn.microsoft.com/powershell/module/powershellget/register-psrepository). Additionally, this package is in a format for distribution to the [PSGallery](https://www.powershellgallery.com/). For signing an Azure module, please contact the [Azure PowerShell](https://github.com/Azure/azure-powershell) team. +To pack `Az.ServiceLinker` for distribution, run the `pack-module.ps1` script. This will take the contents of multiple directories and certain root-folder files to create a `.nupkg`. The structure of the `.nupkg` is created so it can be loaded part of a [PSRepository](https://docs.microsoft.com/powershell/module/powershellget/register-psrepository). Additionally, this package is in a format for distribution to the [PSGallery](https://www.powershellgallery.com/). For signing an Azure module, please contact the [Azure PowerShell](https://github.com/Azure/azure-powershell) team. ## Module Script Details There are multiple scripts created for performing different actions for developing `Az.ServiceLinker`. diff --git a/src/ServiceLinker/internal/Get-AzServiceLinker.ps1 b/src/ServiceLinker/internal/Get-AzServiceLinker.ps1 index c1f33e6568f1..5bd002c9d949 100644 --- a/src/ServiceLinker/internal/Get-AzServiceLinker.ps1 +++ b/src/ServiceLinker/internal/Get-AzServiceLinker.ps1 @@ -27,21 +27,26 @@ Returns Linker resource for a given name. .Inputs Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter + [ConnectorName ]: The name of resource. + [DryrunName ]: The name of dryrun. [Id ]: Resource identity path [LinkerName ]: The name Linker resource. + [Location ]: The name of Azure region. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ResourceUri ]: The fully qualified Azure Resource manager identifier of the resource to be connected. + [SubscriptionId ]: The ID of the target subscription. .Link https://learn.microsoft.com/powershell/module/az.servicelinker/get-azservicelinker #> function Get-AzServiceLinker { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] diff --git a/src/ServiceLinker/internal/Get-AzServiceLinkerConfiguration.ps1 b/src/ServiceLinker/internal/Get-AzServiceLinkerConfiguration.ps1 index a74d48c799d3..62b51506b216 100644 --- a/src/ServiceLinker/internal/Get-AzServiceLinkerConfiguration.ps1 +++ b/src/ServiceLinker/internal/Get-AzServiceLinkerConfiguration.ps1 @@ -16,21 +16,21 @@ <# .Synopsis -list source configurations for a linker. +list source configurations for a Linker. .Description -list source configurations for a linker. +list source configurations for a Linker. .Example {{ Add code here }} .Example {{ Add code here }} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISourceConfiguration +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISourceConfiguration .Link https://learn.microsoft.com/powershell/module/az.servicelinker/get-azservicelinkerconfiguration #> function Get-AzServiceLinkerConfiguration { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISourceConfiguration])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISourceConfiguration])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] diff --git a/src/ServiceLinker/internal/Get-AzServiceLinkerDryrun.ps1 b/src/ServiceLinker/internal/Get-AzServiceLinkerDryrun.ps1 new file mode 100644 index 000000000000..abc6979644ce --- /dev/null +++ b/src/ServiceLinker/internal/Get-AzServiceLinkerDryrun.ps1 @@ -0,0 +1,162 @@ + +# ---------------------------------------------------------------------------------- +# 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 +get a dryrun job +.Description +get a dryrun job +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResource +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [ConnectorName ]: The name of resource. + [DryrunName ]: The name of dryrun. + [Id ]: Resource identity path + [LinkerName ]: The name Linker resource. + [Location ]: The name of Azure region. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [ResourceUri ]: The fully qualified Azure Resource manager identifier of the resource to be connected. + [SubscriptionId ]: The ID of the target subscription. +.Link +https://learn.microsoft.com/powershell/module/az.servicelinker/get-azservicelinkerdryrun +#> +function Get-AzServiceLinkerDryrun { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResource])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +param( + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Path')] + [System.String] + # The name of dryrun. + ${DryrunName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Path')] + [System.String] + # The fully qualified Azure Resource manager identifier of the resource to be connected. + ${ResourceUri}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $mapping = @{ + Get = 'Az.ServiceLinker.private\Get-AzServiceLinkerDryrun_Get'; + GetViaIdentity = 'Az.ServiceLinker.private\Get-AzServiceLinkerDryrun_GetViaIdentity'; + List = 'Az.ServiceLinker.private\Get-AzServiceLinkerDryrun_List'; + } + + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + + throw + } + +} +end { + try { + $steppablePipeline.End() + + } catch { + + throw + } +} +} diff --git a/src/ServiceLinker/internal/Get-AzServiceLinkerOperation.ps1 b/src/ServiceLinker/internal/Get-AzServiceLinkerOperation.ps1 index 5b36525adfa4..aa74762e961b 100644 --- a/src/ServiceLinker/internal/Get-AzServiceLinkerOperation.ps1 +++ b/src/ServiceLinker/internal/Get-AzServiceLinkerOperation.ps1 @@ -25,12 +25,12 @@ Lists the available ServiceLinker REST API operations. {{ Add code here }} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperation +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperation .Link https://learn.microsoft.com/powershell/module/az.servicelinker/get-azservicelinkeroperation #> function Get-AzServiceLinkerOperation { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperation])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperation])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter()] diff --git a/src/ServiceLinker/internal/New-AzServiceLinker.ps1 b/src/ServiceLinker/internal/New-AzServiceLinker.ps1 index 0a5421b82e1e..b6879e42db15 100644 --- a/src/ServiceLinker/internal/New-AzServiceLinker.ps1 +++ b/src/ServiceLinker/internal/New-AzServiceLinker.ps1 @@ -16,16 +16,16 @@ <# .Synopsis -Create or update linker resource. +Create or update Linker resource. .Description -Create or update linker resource. +Create or update Linker resource. .Example {{ Add code here }} .Example {{ Add code here }} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource .Notes COMPLEX PARAMETER PROPERTIES @@ -40,7 +40,7 @@ TARGETSERVICE : The target service properties https://learn.microsoft.com/powershell/module/az.servicelinker/new-azservicelinker #> function New-AzServiceLinker { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -65,7 +65,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBase] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase] # The authentication type. # To construct, see NOTES section for AUTHINFO properties and create a hash table. ${AuthInfo}, @@ -78,6 +78,66 @@ param( # The application client type ${ClientType}, + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType])] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType] + # Optional, indicate whether to apply configurations on source application. + # If enable, generate configurations and applied to the source application. + # Default is enable. + # If optOut, no configuration change will be made on source. + ${ConfigurationInfoAction}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoAdditionalConfigurations]))] + [System.Collections.Hashtable] + # A dictionary of additional configurations to be added. + # Service will auto generate a set of basic configurations and this property is to full fill more customized configurations + ${ConfigurationInfoAdditionalConfiguration}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoCustomizedKeys]))] + [System.Collections.Hashtable] + # Optional. + # A dictionary of default key name and customized key name mapping. + # If not specified, default key name will be used for generate configurations + ${ConfigurationInfoCustomizedKey}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType])] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType] + # Allow Azure services to access the target service if true. + ${FirewallRuleAzureService}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType])] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType] + # Allow caller client IP to access the target service if true. + # the property is used when connecting local application to target service. + ${FirewallRuleCallerClientIP}, + + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [System.String[]] + # This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client IPs for a given database account. + ${FirewallRuleIPRange}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType])] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType] + # Optional. + # Indicates public network solution. + # If enable, enable public network access of target service with best try. + # Default is enable. + # If optOut, opt out public network access configuration. + ${PublicNetworkSolutionAction}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] [System.String] @@ -92,7 +152,13 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBase] + [System.String] + # The key vault secret name to store secret, only valid when storing one secret + ${SecretStoreKeyVaultSecretName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase] # The target service properties # To construct, see NOTES section for TARGETSERVICE properties and create a hash table. ${TargetService}, diff --git a/src/ServiceLinker/internal/New-AzServiceLinkerConfiguration.ps1 b/src/ServiceLinker/internal/New-AzServiceLinkerConfiguration.ps1 new file mode 100644 index 000000000000..c716c464bcc5 --- /dev/null +++ b/src/ServiceLinker/internal/New-AzServiceLinkerConfiguration.ps1 @@ -0,0 +1,213 @@ + +# ---------------------------------------------------------------------------------- +# 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 +Generate configurations for a Linker. +.Description +Generate configurations for a Linker. +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfo +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISourceConfiguration +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [ConnectorName ]: The name of resource. + [DryrunName ]: The name of dryrun. + [Id ]: Resource identity path + [LinkerName ]: The name Linker resource. + [Location ]: The name of Azure region. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [ResourceUri ]: The fully qualified Azure Resource manager identifier of the resource to be connected. + [SubscriptionId ]: The ID of the target subscription. + +PARAMETER : The configuration information, used to generate configurations or save to applications + [Action ]: Optional, indicate whether to apply configurations on source application. If enable, generate configurations and applied to the source application. Default is enable. If optOut, no configuration change will be made on source. + [AdditionalConfiguration ]: A dictionary of additional configurations to be added. Service will auto generate a set of basic configurations and this property is to full fill more customized configurations + [(Any) ]: This indicates any property can be added to this object. + [CustomizedKey ]: Optional. A dictionary of default key name and customized key name mapping. If not specified, default key name will be used for generate configurations + [(Any) ]: This indicates any property can be added to this object. + [DeleteOrUpdateBehavior ]: Indicates whether to clean up previous operation when Linker is updating or deleting +.Link +https://learn.microsoft.com/powershell/module/az.servicelinker/new-azservicelinkerconfiguration +#> +function New-AzServiceLinkerConfiguration { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISourceConfiguration])] +[CmdletBinding(DefaultParameterSetName='GenerateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Generate', Mandatory)] + [Parameter(ParameterSetName='GenerateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Path')] + [System.String] + # The name Linker resource. + ${LinkerName}, + + [Parameter(ParameterSetName='Generate', Mandatory)] + [Parameter(ParameterSetName='GenerateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Path')] + [System.String] + # The fully qualified Azure Resource manager identifier of the resource to be connected. + ${ResourceUri}, + + [Parameter(ParameterSetName='GenerateViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='GenerateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(ParameterSetName='Generate', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='GenerateViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfo] + # The configuration information, used to generate configurations or save to applications + # To construct, see NOTES section for PARAMETER properties and create a hash table. + ${Parameter}, + + [Parameter(ParameterSetName='GenerateExpanded')] + [Parameter(ParameterSetName='GenerateViaIdentityExpanded')] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType])] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType] + # Optional, indicate whether to apply configurations on source application. + # If enable, generate configurations and applied to the source application. + # Default is enable. + # If optOut, no configuration change will be made on source. + ${Action}, + + [Parameter(ParameterSetName='GenerateExpanded')] + [Parameter(ParameterSetName='GenerateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoAdditionalConfigurations]))] + [System.Collections.Hashtable] + # A dictionary of additional configurations to be added. + # Service will auto generate a set of basic configurations and this property is to full fill more customized configurations + ${AdditionalConfiguration}, + + [Parameter(ParameterSetName='GenerateExpanded')] + [Parameter(ParameterSetName='GenerateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoCustomizedKeys]))] + [System.Collections.Hashtable] + # Optional. + # A dictionary of default key name and customized key name mapping. + # If not specified, default key name will be used for generate configurations + ${CustomizedKey}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $mapping = @{ + Generate = 'Az.ServiceLinker.private\New-AzServiceLinkerConfiguration_Generate'; + GenerateExpanded = 'Az.ServiceLinker.private\New-AzServiceLinkerConfiguration_GenerateExpanded'; + GenerateViaIdentity = 'Az.ServiceLinker.private\New-AzServiceLinkerConfiguration_GenerateViaIdentity'; + GenerateViaIdentityExpanded = 'Az.ServiceLinker.private\New-AzServiceLinkerConfiguration_GenerateViaIdentityExpanded'; + } + + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + + throw + } + +} +end { + try { + $steppablePipeline.End() + + } catch { + + throw + } +} +} diff --git a/src/ServiceLinker/internal/New-AzServiceLinkerDryrun.ps1 b/src/ServiceLinker/internal/New-AzServiceLinkerDryrun.ps1 new file mode 100644 index 000000000000..caf9076d696d --- /dev/null +++ b/src/ServiceLinker/internal/New-AzServiceLinkerDryrun.ps1 @@ -0,0 +1,148 @@ + +# ---------------------------------------------------------------------------------- +# 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 a dryrun job to do necessary check before actual creation +.Description +create a dryrun job to do necessary check before actual creation +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResource +.Link +https://learn.microsoft.com/powershell/module/az.servicelinker/new-azservicelinkerdryrun +#> +function New-AzServiceLinkerDryrun { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResource])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Path')] + [System.String] + # The name of dryrun. + ${DryrunName}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Path')] + [System.String] + # The fully qualified Azure Resource manager identifier of the resource to be connected. + ${ResourceUri}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $mapping = @{ + CreateExpanded = 'Az.ServiceLinker.private\New-AzServiceLinkerDryrun_CreateExpanded'; + } + + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + + throw + } + +} +end { + try { + $steppablePipeline.End() + + } catch { + + throw + } +} +} diff --git a/src/ServiceLinker/internal/ProxyCmdletDefinitions.ps1 b/src/ServiceLinker/internal/ProxyCmdletDefinitions.ps1 index 50e6326abd48..48041b027987 100644 --- a/src/ServiceLinker/internal/ProxyCmdletDefinitions.ps1 +++ b/src/ServiceLinker/internal/ProxyCmdletDefinitions.ps1 @@ -16,21 +16,21 @@ <# .Synopsis -list source configurations for a linker. +list source configurations for a Linker. .Description -list source configurations for a linker. +list source configurations for a Linker. .Example {{ Add code here }} .Example {{ Add code here }} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISourceConfiguration +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISourceConfiguration .Link https://learn.microsoft.com/powershell/module/az.servicelinker/get-azservicelinkerconfiguration #> function Get-AzServiceLinkerConfiguration { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ISourceConfiguration])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISourceConfiguration])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -135,6 +135,153 @@ end { } } +<# +.Synopsis +get a dryrun job +.Description +get a dryrun job +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResource +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [ConnectorName ]: The name of resource. + [DryrunName ]: The name of dryrun. + [Id ]: Resource identity path + [LinkerName ]: The name Linker resource. + [Location ]: The name of Azure region. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [ResourceUri ]: The fully qualified Azure Resource manager identifier of the resource to be connected. + [SubscriptionId ]: The ID of the target subscription. +.Link +https://learn.microsoft.com/powershell/module/az.servicelinker/get-azservicelinkerdryrun +#> +function Get-AzServiceLinkerDryrun { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResource])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +param( + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Path')] + [System.String] + # The name of dryrun. + ${DryrunName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Path')] + [System.String] + # The fully qualified Azure Resource manager identifier of the resource to be connected. + ${ResourceUri}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $mapping = @{ + Get = 'Az.ServiceLinker.private\Get-AzServiceLinkerDryrun_Get'; + GetViaIdentity = 'Az.ServiceLinker.private\Get-AzServiceLinkerDryrun_GetViaIdentity'; + List = 'Az.ServiceLinker.private\Get-AzServiceLinkerDryrun_List'; + } + + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + + throw + } + +} +end { + try { + $steppablePipeline.End() + + } catch { + + throw + } +} +} + <# .Synopsis Lists the available ServiceLinker REST API operations. @@ -145,15 +292,740 @@ Lists the available ServiceLinker REST API operations. .Example {{ Add code here }} -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperation -.Link -https://learn.microsoft.com/powershell/module/az.servicelinker/get-azservicelinkeroperation -#> -function Get-AzServiceLinkerOperation { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20.IOperation])] -[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] -param( +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperation +.Link +https://learn.microsoft.com/powershell/module/az.servicelinker/get-azservicelinkeroperation +#> +function Get-AzServiceLinkerOperation { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api30.IOperation])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +param( + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $mapping = @{ + List = 'Az.ServiceLinker.private\Get-AzServiceLinkerOperation_List'; + } + + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + + throw + } + +} +end { + try { + $steppablePipeline.End() + + } catch { + + throw + } +} +} + +<# +.Synopsis +Returns Linker resource for a given name. +.Description +Returns Linker resource for a given name. +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [ConnectorName ]: The name of resource. + [DryrunName ]: The name of dryrun. + [Id ]: Resource identity path + [LinkerName ]: The name Linker resource. + [Location ]: The name of Azure region. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [ResourceUri ]: The fully qualified Azure Resource manager identifier of the resource to be connected. + [SubscriptionId ]: The ID of the target subscription. +.Link +https://learn.microsoft.com/powershell/module/az.servicelinker/get-azservicelinker +#> +function Get-AzServiceLinker { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +param( + [Parameter(ParameterSetName='Get', Mandatory)] + [Alias('LinkerName')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Path')] + [System.String] + # The name Linker resource. + ${Name}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Path')] + [System.String] + # The fully qualified Azure Resource manager identifier of the resource to be connected. + ${ResourceUri}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $mapping = @{ + Get = 'Az.ServiceLinker.private\Get-AzServiceLinker_Get'; + GetViaIdentity = 'Az.ServiceLinker.private\Get-AzServiceLinker_GetViaIdentity'; + List = 'Az.ServiceLinker.private\Get-AzServiceLinker_List'; + } + + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + + throw + } + +} +end { + try { + $steppablePipeline.End() + + } catch { + + throw + } +} +} + +<# +.Synopsis +Generate configurations for a Linker. +.Description +Generate configurations for a Linker. +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfo +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISourceConfiguration +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [ConnectorName ]: The name of resource. + [DryrunName ]: The name of dryrun. + [Id ]: Resource identity path + [LinkerName ]: The name Linker resource. + [Location ]: The name of Azure region. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [ResourceUri ]: The fully qualified Azure Resource manager identifier of the resource to be connected. + [SubscriptionId ]: The ID of the target subscription. + +PARAMETER : The configuration information, used to generate configurations or save to applications + [Action ]: Optional, indicate whether to apply configurations on source application. If enable, generate configurations and applied to the source application. Default is enable. If optOut, no configuration change will be made on source. + [AdditionalConfiguration ]: A dictionary of additional configurations to be added. Service will auto generate a set of basic configurations and this property is to full fill more customized configurations + [(Any) ]: This indicates any property can be added to this object. + [CustomizedKey ]: Optional. A dictionary of default key name and customized key name mapping. If not specified, default key name will be used for generate configurations + [(Any) ]: This indicates any property can be added to this object. + [DeleteOrUpdateBehavior ]: Indicates whether to clean up previous operation when Linker is updating or deleting +.Link +https://learn.microsoft.com/powershell/module/az.servicelinker/new-azservicelinkerconfiguration +#> +function New-AzServiceLinkerConfiguration { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ISourceConfiguration])] +[CmdletBinding(DefaultParameterSetName='GenerateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Generate', Mandatory)] + [Parameter(ParameterSetName='GenerateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Path')] + [System.String] + # The name Linker resource. + ${LinkerName}, + + [Parameter(ParameterSetName='Generate', Mandatory)] + [Parameter(ParameterSetName='GenerateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Path')] + [System.String] + # The fully qualified Azure Resource manager identifier of the resource to be connected. + ${ResourceUri}, + + [Parameter(ParameterSetName='GenerateViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='GenerateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(ParameterSetName='Generate', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='GenerateViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfo] + # The configuration information, used to generate configurations or save to applications + # To construct, see NOTES section for PARAMETER properties and create a hash table. + ${Parameter}, + + [Parameter(ParameterSetName='GenerateExpanded')] + [Parameter(ParameterSetName='GenerateViaIdentityExpanded')] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType])] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType] + # Optional, indicate whether to apply configurations on source application. + # If enable, generate configurations and applied to the source application. + # Default is enable. + # If optOut, no configuration change will be made on source. + ${Action}, + + [Parameter(ParameterSetName='GenerateExpanded')] + [Parameter(ParameterSetName='GenerateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoAdditionalConfigurations]))] + [System.Collections.Hashtable] + # A dictionary of additional configurations to be added. + # Service will auto generate a set of basic configurations and this property is to full fill more customized configurations + ${AdditionalConfiguration}, + + [Parameter(ParameterSetName='GenerateExpanded')] + [Parameter(ParameterSetName='GenerateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoCustomizedKeys]))] + [System.Collections.Hashtable] + # Optional. + # A dictionary of default key name and customized key name mapping. + # If not specified, default key name will be used for generate configurations + ${CustomizedKey}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $mapping = @{ + Generate = 'Az.ServiceLinker.private\New-AzServiceLinkerConfiguration_Generate'; + GenerateExpanded = 'Az.ServiceLinker.private\New-AzServiceLinkerConfiguration_GenerateExpanded'; + GenerateViaIdentity = 'Az.ServiceLinker.private\New-AzServiceLinkerConfiguration_GenerateViaIdentity'; + GenerateViaIdentityExpanded = 'Az.ServiceLinker.private\New-AzServiceLinkerConfiguration_GenerateViaIdentityExpanded'; + } + + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + + throw + } + +} +end { + try { + $steppablePipeline.End() + + } catch { + + throw + } +} +} + +<# +.Synopsis +create a dryrun job to do necessary check before actual creation +.Description +create a dryrun job to do necessary check before actual creation +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResource +.Link +https://learn.microsoft.com/powershell/module/az.servicelinker/new-azservicelinkerdryrun +#> +function New-AzServiceLinkerDryrun { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResource])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Path')] + [System.String] + # The name of dryrun. + ${DryrunName}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Path')] + [System.String] + # The fully qualified Azure Resource manager identifier of the resource to be connected. + ${ResourceUri}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $mapping = @{ + CreateExpanded = 'Az.ServiceLinker.private\New-AzServiceLinkerDryrun_CreateExpanded'; + } + + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + + throw + } + +} +end { + try { + $steppablePipeline.End() + + } catch { + + throw + } +} +} + +<# +.Synopsis +Create or update Linker resource. +.Description +Create or update Linker resource. +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +AUTHINFO : The authentication type. + AuthType : The authentication type. + +TARGETSERVICE : The target service properties + Type : The target service type. +.Link +https://learn.microsoft.com/powershell/module/az.servicelinker/new-azservicelinker +#> +function New-AzServiceLinker { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Path')] + [System.String] + # The fully qualified Azure Resource manager identifier of the resource to be connected. + ${ResourceUri}, + + [Parameter()] + [Alias('LinkerName')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.DefaultInfo(Script='"connect_"+(-join ((65..90) + (97..122) | Get-Random -Count 5 | % {[char]$_}))')] + [System.String] + # The name Linker resource. + ${Name}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Header')] + [System.String] + # . + ${XmsServiceconnectorUserToken}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase] + # The authentication type. + # To construct, see NOTES section for AUTHINFO properties and create a hash table. + ${AuthInfo}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType])] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.DefaultInfo(Script='"none"')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType] + # The application client type + ${ClientType}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType])] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType] + # Optional, indicate whether to apply configurations on source application. + # If enable, generate configurations and applied to the source application. + # Default is enable. + # If optOut, no configuration change will be made on source. + ${ConfigurationInfoAction}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoAdditionalConfigurations]))] + [System.Collections.Hashtable] + # A dictionary of additional configurations to be added. + # Service will auto generate a set of basic configurations and this property is to full fill more customized configurations + ${ConfigurationInfoAdditionalConfiguration}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoCustomizedKeys]))] + [System.Collections.Hashtable] + # Optional. + # A dictionary of default key name and customized key name mapping. + # If not specified, default key name will be used for generate configurations + ${ConfigurationInfoCustomizedKey}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType])] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType] + # Allow Azure services to access the target service if true. + ${FirewallRuleAzureService}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType])] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType] + # Allow caller client IP to access the target service if true. + # the property is used when connecting local application to target service. + ${FirewallRuleCallerClientIP}, + + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [System.String[]] + # This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client IPs for a given database account. + ${FirewallRuleIPRange}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType])] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType] + # Optional. + # Indicates public network solution. + # If enable, enable public network access of target service with best try. + # Default is enable. + # If optOut, opt out public network access configuration. + ${PublicNetworkSolutionAction}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [System.String] + # connection scope in source service. + ${Scope}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [System.String] + # The key vault id to store secret + ${SecretStoreKeyVaultId}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [System.String] + # The key vault secret name to store secret, only valid when storing one secret + ${SecretStoreKeyVaultSecretName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase] + # The target service properties + # To construct, see NOTES section for TARGETSERVICE properties and create a hash table. + ${TargetService}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType])] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType] + # Type of VNet solution. + ${VNetSolutionType}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -162,6 +1034,12 @@ param( # The credentials, account, tenant, and subscription used for communication with Azure. ${DefaultProfile}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] [System.Management.Automation.SwitchParameter] @@ -182,6 +1060,12 @@ param( # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] [System.Uri] @@ -211,7 +1095,13 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - List = 'Az.ServiceLinker.private\Get-AzServiceLinkerOperation_List'; + CreateExpanded = 'Az.ServiceLinker.private\New-AzServiceLinker_CreateExpanded'; + } + if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('Name')) { + $PSBoundParameters['Name'] = "connect_"+(-join ((65..90) + (97..122) | Get-Random -Count 5 | % {[char]$_})) + } + if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('ClientType')) { + $PSBoundParameters['ClientType'] = "none" } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -246,9 +1136,9 @@ end { <# .Synopsis -Returns Linker resource for a given name. +delete a dryrun job .Description -Returns Linker resource for a given name. +delete a dryrun job .Example {{ Add code here }} .Example @@ -257,38 +1147,41 @@ Returns Linker resource for a given name. .Inputs Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource +System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter + [ConnectorName ]: The name of resource. + [DryrunName ]: The name of dryrun. [Id ]: Resource identity path [LinkerName ]: The name Linker resource. + [Location ]: The name of Azure region. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ResourceUri ]: The fully qualified Azure Resource manager identifier of the resource to be connected. + [SubscriptionId ]: The ID of the target subscription. .Link -https://learn.microsoft.com/powershell/module/az.servicelinker/get-azservicelinker +https://learn.microsoft.com/powershell/module/az.servicelinker/remove-azservicelinkerdryrun #> -function Get-AzServiceLinker { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource])] -[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +function Remove-AzServiceLinkerDryrun { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( - [Parameter(ParameterSetName='Get', Mandatory)] - [Alias('LinkerName')] + [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Path')] [System.String] - # The name Linker resource. - ${Name}, + # The name of dryrun. + ${DryrunName}, - [Parameter(ParameterSetName='Get', Mandatory)] - [Parameter(ParameterSetName='List', Mandatory)] + [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Path')] [System.String] # The fully qualified Azure Resource manager identifier of the resource to be connected. ${ResourceUri}, - [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentity] # Identity Parameter @@ -323,6 +1216,12 @@ param( # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] [System.Uri] @@ -352,9 +1251,8 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - Get = 'Az.ServiceLinker.private\Get-AzServiceLinker_Get'; - GetViaIdentity = 'Az.ServiceLinker.private\Get-AzServiceLinker_GetViaIdentity'; - List = 'Az.ServiceLinker.private\Get-AzServiceLinker_List'; + Delete = 'Az.ServiceLinker.private\Remove-AzServiceLinkerDryrun_Delete'; + DeleteViaIdentity = 'Az.ServiceLinker.private\Remove-AzServiceLinkerDryrun_DeleteViaIdentity'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -389,93 +1287,58 @@ end { <# .Synopsis -Create or update linker resource. +Delete a Linker. .Description -Create or update linker resource. +Delete a Linker. .Example {{ Add code here }} .Example {{ Add code here }} +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource +System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -AUTHINFO : The authentication type. - AuthType : The authentication type. - -TARGETSERVICE : The target service properties - Type : The target service type. +INPUTOBJECT : Identity Parameter + [ConnectorName ]: The name of resource. + [DryrunName ]: The name of dryrun. + [Id ]: Resource identity path + [LinkerName ]: The name Linker resource. + [Location ]: The name of Azure region. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [ResourceUri ]: The fully qualified Azure Resource manager identifier of the resource to be connected. + [SubscriptionId ]: The ID of the target subscription. .Link -https://learn.microsoft.com/powershell/module/az.servicelinker/new-azservicelinker +https://learn.microsoft.com/powershell/module/az.servicelinker/remove-azservicelinker #> -function New-AzServiceLinker { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource])] -[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function Remove-AzServiceLinker { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Path')] - [System.String] - # The fully qualified Azure Resource manager identifier of the resource to be connected. - ${ResourceUri}, - - [Parameter()] + [Parameter(ParameterSetName='Delete', Mandatory)] [Alias('LinkerName')] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.DefaultInfo(Script='"connect_"+(-join ((65..90) + (97..122) | Get-Random -Count 5 | % {[char]$_}))')] [System.String] # The name Linker resource. ${Name}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Header')] - [System.String] - # . - ${XmsServiceconnectorUserToken}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBase] - # The authentication type. - # To construct, see NOTES section for AUTHINFO properties and create a hash table. - ${AuthInfo}, - - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType])] - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.DefaultInfo(Script='"none"')] - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ClientType] - # The application client type - ${ClientType}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] - [System.String] - # connection scope in source service. - ${Scope}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Path')] [System.String] - # The key vault id to store secret - ${SecretStoreKeyVaultId}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBase] - # The target service properties - # To construct, see NOTES section for TARGETSERVICE properties and create a hash table. - ${TargetService}, + # The fully qualified Azure Resource manager identifier of the resource to be connected. + ${ResourceUri}, - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType])] - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.VNetSolutionType] - # Type of VNet solution. - ${VNetSolutionType}, + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] @@ -517,6 +1380,12 @@ param( # Run the command asynchronously ${NoWait}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] [System.Uri] @@ -546,13 +1415,8 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - CreateExpanded = 'Az.ServiceLinker.private\New-AzServiceLinker_CreateExpanded'; - } - if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('Name')) { - $PSBoundParameters['Name'] = "connect_"+(-join ((65..90) + (97..122) | Get-Random -Count 5 | % {[char]$_})) - } - if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('ClientType')) { - $PSBoundParameters['ClientType'] = "none" + Delete = 'Az.ServiceLinker.private\Remove-AzServiceLinker_Delete'; + DeleteViaIdentity = 'Az.ServiceLinker.private\Remove-AzServiceLinker_DeleteViaIdentity'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -587,9 +1451,9 @@ end { <# .Synopsis -Delete a link. +Validate a Linker. .Description -Delete a link. +Validate a Linker. .Example {{ Add code here }} .Example @@ -598,37 +1462,42 @@ Delete a link. .Inputs Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentity .Outputs -System.Boolean +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateOperationResult .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter + [ConnectorName ]: The name of resource. + [DryrunName ]: The name of dryrun. [Id ]: Resource identity path [LinkerName ]: The name Linker resource. + [Location ]: The name of Azure region. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ResourceUri ]: The fully qualified Azure Resource manager identifier of the resource to be connected. + [SubscriptionId ]: The ID of the target subscription. .Link -https://learn.microsoft.com/powershell/module/az.servicelinker/remove-azservicelinker +https://learn.microsoft.com/powershell/module/az.servicelinker/test-azservicelinker #> -function Remove-AzServiceLinker { -[OutputType([System.Boolean])] -[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function Test-AzServiceLinker { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateOperationResult])] +[CmdletBinding(DefaultParameterSetName='Validate', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( - [Parameter(ParameterSetName='Delete', Mandatory)] + [Parameter(ParameterSetName='Validate', Mandatory)] [Alias('LinkerName')] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Path')] [System.String] # The name Linker resource. ${Name}, - [Parameter(ParameterSetName='Delete', Mandatory)] + [Parameter(ParameterSetName='Validate', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Path')] [System.String] # The fully qualified Azure Resource manager identifier of the resource to be connected. ${ResourceUri}, - [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='ValidateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentity] # Identity Parameter @@ -675,12 +1544,6 @@ param( # Run the command asynchronously ${NoWait}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Returns true when the command succeeds - ${PassThru}, - [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] [System.Uri] @@ -710,8 +1573,8 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - Delete = 'Az.ServiceLinker.private\Remove-AzServiceLinker_Delete'; - DeleteViaIdentity = 'Az.ServiceLinker.private\Remove-AzServiceLinker_DeleteViaIdentity'; + Validate = 'Az.ServiceLinker.private\Test-AzServiceLinker_Validate'; + ValidateViaIdentity = 'Az.ServiceLinker.private\Test-AzServiceLinker_ValidateViaIdentity'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -746,9 +1609,9 @@ end { <# .Synopsis -Validate a link. +add a dryrun job to do necessary check before actual creation .Description -Validate a link. +add a dryrun job to do necessary check before actual creation .Example {{ Add code here }} .Example @@ -757,37 +1620,41 @@ Validate a link. .Inputs Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateOperationResult +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResource .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter + [ConnectorName ]: The name of resource. + [DryrunName ]: The name of dryrun. [Id ]: Resource identity path [LinkerName ]: The name Linker resource. + [Location ]: The name of Azure region. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ResourceUri ]: The fully qualified Azure Resource manager identifier of the resource to be connected. + [SubscriptionId ]: The ID of the target subscription. .Link -https://learn.microsoft.com/powershell/module/az.servicelinker/test-azservicelinker +https://learn.microsoft.com/powershell/module/az.servicelinker/update-azservicelinkerdryrun #> -function Test-AzServiceLinker { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateOperationResult])] -[CmdletBinding(DefaultParameterSetName='Validate', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function Update-AzServiceLinkerDryrun { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResource])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( - [Parameter(ParameterSetName='Validate', Mandatory)] - [Alias('LinkerName')] + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Path')] [System.String] - # The name Linker resource. - ${Name}, + # The name of dryrun. + ${DryrunName}, - [Parameter(ParameterSetName='Validate', Mandatory)] + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Path')] [System.String] # The fully qualified Azure Resource manager identifier of the resource to be connected. ${ResourceUri}, - [Parameter(ParameterSetName='ValidateViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentity] # Identity Parameter @@ -863,8 +1730,8 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - Validate = 'Az.ServiceLinker.private\Test-AzServiceLinker_Validate'; - ValidateViaIdentity = 'Az.ServiceLinker.private\Test-AzServiceLinker_ValidateViaIdentity'; + UpdateExpanded = 'Az.ServiceLinker.private\Update-AzServiceLinkerDryrun_UpdateExpanded'; + UpdateViaIdentityExpanded = 'Az.ServiceLinker.private\Update-AzServiceLinkerDryrun_UpdateViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -899,9 +1766,9 @@ end { <# .Synopsis -Operation to update an existing link. +Operation to update an existing Linker. .Description -Operation to update an existing link. +Operation to update an existing Linker. .Example {{ Add code here }} .Example @@ -910,7 +1777,7 @@ Operation to update an existing link. .Inputs Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource .Notes COMPLEX PARAMETER PROPERTIES @@ -920,9 +1787,14 @@ AUTHINFO : The authentication type. AuthType : The authentication type. INPUTOBJECT : Identity Parameter + [ConnectorName ]: The name of resource. + [DryrunName ]: The name of dryrun. [Id ]: Resource identity path [LinkerName ]: The name Linker resource. + [Location ]: The name of Azure region. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ResourceUri ]: The fully qualified Azure Resource manager identifier of the resource to be connected. + [SubscriptionId ]: The ID of the target subscription. TARGETSERVICE : The target service properties Type : The target service type. @@ -930,7 +1802,7 @@ TARGETSERVICE : The target service properties https://learn.microsoft.com/powershell/module/az.servicelinker/update-azservicelinker #> function Update-AzServiceLinker { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -961,7 +1833,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBase] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase] # The authentication type. # To construct, see NOTES section for AUTHINFO properties and create a hash table. ${AuthInfo}, @@ -973,6 +1845,66 @@ param( # The application client type ${ClientType}, + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType])] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType] + # Optional, indicate whether to apply configurations on source application. + # If enable, generate configurations and applied to the source application. + # Default is enable. + # If optOut, no configuration change will be made on source. + ${ConfigurationInfoAction}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoAdditionalConfigurations]))] + [System.Collections.Hashtable] + # A dictionary of additional configurations to be added. + # Service will auto generate a set of basic configurations and this property is to full fill more customized configurations + ${ConfigurationInfoAdditionalConfiguration}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoCustomizedKeys]))] + [System.Collections.Hashtable] + # Optional. + # A dictionary of default key name and customized key name mapping. + # If not specified, default key name will be used for generate configurations + ${ConfigurationInfoCustomizedKey}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType])] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType] + # Allow Azure services to access the target service if true. + ${FirewallRuleAzureService}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType])] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType] + # Allow caller client IP to access the target service if true. + # the property is used when connecting local application to target service. + ${FirewallRuleCallerClientIP}, + + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [System.String[]] + # This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client IPs for a given database account. + ${FirewallRuleIPRange}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType])] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType] + # Optional. + # Indicates public network solution. + # If enable, enable public network access of target service with best try. + # Default is enable. + # If optOut, opt out public network access configuration. + ${PublicNetworkSolutionAction}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] [System.String] @@ -987,7 +1919,13 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBase] + [System.String] + # The key vault secret name to store secret, only valid when storing one secret + ${SecretStoreKeyVaultSecretName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase] # The target service properties # To construct, see NOTES section for TARGETSERVICE properties and create a hash table. ${TargetService}, diff --git a/src/ServiceLinker/internal/README.md b/src/ServiceLinker/internal/README.md index de1f090543fe..b248f363b465 100644 --- a/src/ServiceLinker/internal/README.md +++ b/src/ServiceLinker/internal/README.md @@ -8,7 +8,7 @@ This directory contains a module to handle *internal only* cmdlets. Cmdlets that - Packaged: yes ## Details -The `Az.ServiceLinker.internal.psm1` file is generated to this folder. This module file handles the hidden cmdlets. These cmdlets will not be exported by `Az.ServiceLinker`. Instead, this sub-module is imported by the `..\custom\Az.ServiceLinker.custom.psm1` module, allowing you to use hidden cmdlets in your custom, exposed cmdlets. To call these cmdlets in your custom scripts, simply use [module-qualified calls](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_command_precedence?view=powershell-6#qualified-names). For example, `Az.ServiceLinker.internal\Get-Example` would call an internal cmdlet named `Get-Example`. +The `Az.ServiceLinker.internal.psm1` file is generated to this folder. This module file handles the hidden cmdlets. These cmdlets will not be exported by `Az.ServiceLinker`. Instead, this sub-module is imported by the `..\custom\Az.ServiceLinker.custom.psm1` module, allowing you to use hidden cmdlets in your custom, exposed cmdlets. To call these cmdlets in your custom scripts, simply use [module-qualified calls](https://docs.microsoft.com/powershell/module/microsoft.powershell.core/about/about_command_precedence?view=powershell-6#qualified-names). For example, `Az.ServiceLinker.internal\Get-Example` would call an internal cmdlet named `Get-Example`. ## Purpose This allows you to include REST specifications for services that you *do not wish to expose from your module*, but simply want to call within custom cmdlets. For example, if you want to make a custom cmdlet that uses `Storage` services, you could include a simplified `Storage` REST specification that has only the operations you need. When you run the generator and build this module, note the generated `Storage` cmdlets. Then, in your readme configuration, use [cmdlet hiding](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md#cmdlet-hiding-exportation-suppression) on the `Storage` cmdlets and they will *only be exposed to the custom cmdlets* you want to write, and not be exported as part of `Az.ServiceLinker`. diff --git a/src/ServiceLinker/internal/Remove-AzServiceLinker.ps1 b/src/ServiceLinker/internal/Remove-AzServiceLinker.ps1 index dc107da068fc..1b36a760a7f6 100644 --- a/src/ServiceLinker/internal/Remove-AzServiceLinker.ps1 +++ b/src/ServiceLinker/internal/Remove-AzServiceLinker.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Delete a link. +Delete a Linker. .Description -Delete a link. +Delete a Linker. .Example {{ Add code here }} .Example @@ -34,9 +34,14 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter + [ConnectorName ]: The name of resource. + [DryrunName ]: The name of dryrun. [Id ]: Resource identity path [LinkerName ]: The name Linker resource. + [Location ]: The name of Azure region. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ResourceUri ]: The fully qualified Azure Resource manager identifier of the resource to be connected. + [SubscriptionId ]: The ID of the target subscription. .Link https://learn.microsoft.com/powershell/module/az.servicelinker/remove-azservicelinker #> diff --git a/src/ServiceLinker/internal/Remove-AzServiceLinkerDryrun.ps1 b/src/ServiceLinker/internal/Remove-AzServiceLinkerDryrun.ps1 new file mode 100644 index 000000000000..de03642ac6c5 --- /dev/null +++ b/src/ServiceLinker/internal/Remove-AzServiceLinkerDryrun.ps1 @@ -0,0 +1,166 @@ + +# ---------------------------------------------------------------------------------- +# 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 +delete a dryrun job +.Description +delete a dryrun job +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [ConnectorName ]: The name of resource. + [DryrunName ]: The name of dryrun. + [Id ]: Resource identity path + [LinkerName ]: The name Linker resource. + [Location ]: The name of Azure region. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [ResourceUri ]: The fully qualified Azure Resource manager identifier of the resource to be connected. + [SubscriptionId ]: The ID of the target subscription. +.Link +https://learn.microsoft.com/powershell/module/az.servicelinker/remove-azservicelinkerdryrun +#> +function Remove-AzServiceLinkerDryrun { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Path')] + [System.String] + # The name of dryrun. + ${DryrunName}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Path')] + [System.String] + # The fully qualified Azure Resource manager identifier of the resource to be connected. + ${ResourceUri}, + + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $mapping = @{ + Delete = 'Az.ServiceLinker.private\Remove-AzServiceLinkerDryrun_Delete'; + DeleteViaIdentity = 'Az.ServiceLinker.private\Remove-AzServiceLinkerDryrun_DeleteViaIdentity'; + } + + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + + throw + } + +} +end { + try { + $steppablePipeline.End() + + } catch { + + throw + } +} +} diff --git a/src/ServiceLinker/internal/Test-AzServiceLinker.ps1 b/src/ServiceLinker/internal/Test-AzServiceLinker.ps1 index e3736274b8db..ffb9e928637f 100644 --- a/src/ServiceLinker/internal/Test-AzServiceLinker.ps1 +++ b/src/ServiceLinker/internal/Test-AzServiceLinker.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Validate a link. +Validate a Linker. .Description -Validate a link. +Validate a Linker. .Example {{ Add code here }} .Example @@ -27,21 +27,26 @@ Validate a link. .Inputs Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateOperationResult +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateOperationResult .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter + [ConnectorName ]: The name of resource. + [DryrunName ]: The name of dryrun. [Id ]: Resource identity path [LinkerName ]: The name Linker resource. + [Location ]: The name of Azure region. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ResourceUri ]: The fully qualified Azure Resource manager identifier of the resource to be connected. + [SubscriptionId ]: The ID of the target subscription. .Link https://learn.microsoft.com/powershell/module/az.servicelinker/test-azservicelinker #> function Test-AzServiceLinker { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IValidateOperationResult])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IValidateOperationResult])] [CmdletBinding(DefaultParameterSetName='Validate', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Validate', Mandatory)] diff --git a/src/ServiceLinker/internal/Update-AzServiceLinker.ps1 b/src/ServiceLinker/internal/Update-AzServiceLinker.ps1 index 5e9146899f13..85176ebfa079 100644 --- a/src/ServiceLinker/internal/Update-AzServiceLinker.ps1 +++ b/src/ServiceLinker/internal/Update-AzServiceLinker.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Operation to update an existing link. +Operation to update an existing Linker. .Description -Operation to update an existing link. +Operation to update an existing Linker. .Example {{ Add code here }} .Example @@ -27,7 +27,7 @@ Operation to update an existing link. .Inputs Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource .Notes COMPLEX PARAMETER PROPERTIES @@ -37,9 +37,14 @@ AUTHINFO : The authentication type. AuthType : The authentication type. INPUTOBJECT : Identity Parameter + [ConnectorName ]: The name of resource. + [DryrunName ]: The name of dryrun. [Id ]: Resource identity path [LinkerName ]: The name Linker resource. + [Location ]: The name of Azure region. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ResourceUri ]: The fully qualified Azure Resource manager identifier of the resource to be connected. + [SubscriptionId ]: The ID of the target subscription. TARGETSERVICE : The target service properties Type : The target service type. @@ -47,7 +52,7 @@ TARGETSERVICE : The target service properties https://learn.microsoft.com/powershell/module/az.servicelinker/update-azservicelinker #> function Update-AzServiceLinker { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ILinkerResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ILinkerResource])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -78,7 +83,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.IAuthInfoBase] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IAuthInfoBase] # The authentication type. # To construct, see NOTES section for AUTHINFO properties and create a hash table. ${AuthInfo}, @@ -90,6 +95,66 @@ param( # The application client type ${ClientType}, + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType])] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType] + # Optional, indicate whether to apply configurations on source application. + # If enable, generate configurations and applied to the source application. + # Default is enable. + # If optOut, no configuration change will be made on source. + ${ConfigurationInfoAction}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoAdditionalConfigurations]))] + [System.Collections.Hashtable] + # A dictionary of additional configurations to be added. + # Service will auto generate a set of basic configurations and this property is to full fill more customized configurations + ${ConfigurationInfoAdditionalConfiguration}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IConfigurationInfoCustomizedKeys]))] + [System.Collections.Hashtable] + # Optional. + # A dictionary of default key name and customized key name mapping. + # If not specified, default key name will be used for generate configurations + ${ConfigurationInfoCustomizedKey}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType])] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType] + # Allow Azure services to access the target service if true. + ${FirewallRuleAzureService}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType])] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.AllowType] + # Allow caller client IP to access the target service if true. + # the property is used when connecting local application to target service. + ${FirewallRuleCallerClientIP}, + + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [System.String[]] + # This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client IPs for a given database account. + ${FirewallRuleIPRange}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType])] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Support.ActionType] + # Optional. + # Indicates public network solution. + # If enable, enable public network access of target service with best try. + # Default is enable. + # If optOut, opt out public network access configuration. + ${PublicNetworkSolutionAction}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] [System.String] @@ -104,7 +169,13 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20220501.ITargetServiceBase] + [System.String] + # The key vault secret name to store secret, only valid when storing one secret + ${SecretStoreKeyVaultSecretName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.ITargetServiceBase] # The target service properties # To construct, see NOTES section for TARGETSERVICE properties and create a hash table. ${TargetService}, diff --git a/src/ServiceLinker/internal/Update-AzServiceLinkerDryrun.ps1 b/src/ServiceLinker/internal/Update-AzServiceLinkerDryrun.ps1 new file mode 100644 index 000000000000..7576aa9ecd22 --- /dev/null +++ b/src/ServiceLinker/internal/Update-AzServiceLinkerDryrun.ps1 @@ -0,0 +1,172 @@ + +# ---------------------------------------------------------------------------------- +# 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 +add a dryrun job to do necessary check before actual creation +.Description +add a dryrun job to do necessary check before actual creation +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResource +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [ConnectorName ]: The name of resource. + [DryrunName ]: The name of dryrun. + [Id ]: Resource identity path + [LinkerName ]: The name Linker resource. + [Location ]: The name of Azure region. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [ResourceUri ]: The fully qualified Azure Resource manager identifier of the resource to be connected. + [SubscriptionId ]: The ID of the target subscription. +.Link +https://learn.microsoft.com/powershell/module/az.servicelinker/update-azservicelinkerdryrun +#> +function Update-AzServiceLinkerDryrun { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.Api20221101Preview.IDryrunResource])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Path')] + [System.String] + # The name of dryrun. + ${DryrunName}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Path')] + [System.String] + # The fully qualified Azure Resource manager identifier of the resource to be connected. + ${ResourceUri}, + + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Models.IServiceLinkerIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $mapping = @{ + UpdateExpanded = 'Az.ServiceLinker.private\Update-AzServiceLinkerDryrun_UpdateExpanded'; + UpdateViaIdentityExpanded = 'Az.ServiceLinker.private\Update-AzServiceLinkerDryrun_UpdateViaIdentityExpanded'; + } + + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + + throw + } + +} +end { + try { + $steppablePipeline.End() + + } catch { + + throw + } +} +} diff --git a/src/ServiceLinker/test/Get-AzServiceLinkerConfigurationForContainerApp.Recording.json b/src/ServiceLinker/test/Get-AzServiceLinkerConfigurationForContainerApp.Recording.json index 38ed3d7ec975..b5939c277f49 100644 --- a/src/ServiceLinker/test/Get-AzServiceLinkerConfigurationForContainerApp.Recording.json +++ b/src/ServiceLinker/test/Get-AzServiceLinkerConfigurationForContainerApp.Recording.json @@ -1,12 +1,12 @@ { - "Get-AzServiceLinkerConfigurationForContainerApp+[NoContext]+List+$POST+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/preparedLinker/listConfigurations?api-version=2022-05-01+1": { + "Get-AzServiceLinkerConfigurationForContainerApp+[NoContext]+List+$POST+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/preparedLinker/listConfigurations?api-version=2022-11-01-preview+1": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/preparedLinker/listConfigurations?api-version=2022-05-01", + "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/preparedLinker/listConfigurations?api-version=2022-11-01-preview", "Content": null, "Headers": { "x-ms-unique-id": [ "1" ], - "x-ms-client-request-id": [ "c77f0223-bc4a-44b0-ab98-38d5e771e8c5" ], + "x-ms-client-request-id": [ "3b3cd48e-c232-4928-bfcc-340eb9fb1a9c" ], "CommandName": [ "Az.ServiceLinker.internal\\Get-AzServiceLinkerConfiguration" ], "FullCommandName": [ "Get-AzServiceLinkerConfiguration_List" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -21,23 +21,22 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], "x-ms-providerhub-traffic": [ "True" ], - "mise-correlation-id": [ "0188fb0c-6eac-451a-a23e-a3d736cb773e" ], + "mise-correlation-id": [ "9da2798d-3ef0-48fc-bbd2-5b587d7a6c38" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "740cb3db-59f0-4fa5-a09d-81ff77ef6a66" ], - "x-ms-correlation-request-id": [ "fd94b62a-ad29-414f-9e9b-695e026603c3" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T064256Z:fd94b62a-ad29-414f-9e9b-695e026603c3" ], + "x-ms-request-id": [ "8ea66fcc-a9aa-416d-a0c1-11df05b1651c" ], + "x-ms-correlation-request-id": [ "d56af4ee-399f-4114-99b1-df7ac28fa5bf" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20230130T074100Z:d56af4ee-399f-4114-99b1-df7ac28fa5bf" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:42:56 GMT" ] + "Date": [ "Mon, 30 Jan 2023 07:40:59 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "78" ], + "Content-Length": [ "125" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"configurations\":[{\"name\":\"AZURE_POSTGRESQL_CONNECTIONSTRING\",\"value\":null}]}" + "Content": "{\"configurations\":[{\"name\":\"AZURE_APPCONFIGURATION_ENDPOINT\",\"value\":\"https://servicelinker-app-configuration.azconfig.io\"}]}" } } } \ No newline at end of file diff --git a/src/ServiceLinker/test/Get-AzServiceLinkerConfigurationForSpringCloud.Recording.json b/src/ServiceLinker/test/Get-AzServiceLinkerConfigurationForSpringCloud.Recording.json index 038aec97c35b..b981fc97dace 100644 --- a/src/ServiceLinker/test/Get-AzServiceLinkerConfigurationForSpringCloud.Recording.json +++ b/src/ServiceLinker/test/Get-AzServiceLinkerConfigurationForSpringCloud.Recording.json @@ -1,12 +1,12 @@ { - "Get-AzServiceLinkerConfigurationForSpringCloud+[NoContext]+Get+$POST+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers/preparedLinker/listConfigurations?api-version=2022-05-01+1": { + "Get-AzServiceLinkerConfigurationForSpringCloud+[NoContext]+Get+$POST+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers/preparedLinker/listConfigurations?api-version=2022-11-01-preview+1": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers/preparedLinker/listConfigurations?api-version=2022-05-01", + "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers/preparedLinker/listConfigurations?api-version=2022-11-01-preview", "Content": null, "Headers": { "x-ms-unique-id": [ "2" ], - "x-ms-client-request-id": [ "47443aa5-a40c-4940-8f2a-9137a82d7bd4" ], + "x-ms-client-request-id": [ "6ba8b995-041d-4bd7-a0c4-37dbac168f1a" ], "CommandName": [ "Az.ServiceLinker.internal\\Get-AzServiceLinkerConfiguration" ], "FullCommandName": [ "Get-AzServiceLinkerConfiguration_List" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -21,16 +21,15 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], "x-ms-providerhub-traffic": [ "True" ], - "mise-correlation-id": [ "a3aa463e-390a-4b07-967e-3bb8f216d107" ], + "mise-correlation-id": [ "0de207aa-f1e3-47aa-adf8-9b4736df4ba8" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "0013b7e7-825a-4c34-82ba-c09fd92a755f" ], - "x-ms-correlation-request-id": [ "1ef2ecd3-74b9-40f1-b644-6057e1b645d7" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T064305Z:1ef2ecd3-74b9-40f1-b644-6057e1b645d7" ], + "x-ms-request-id": [ "45f69441-f2a6-43da-a749-0b2be25527b9" ], + "x-ms-correlation-request-id": [ "6d92dfe5-c8c0-4880-8fc0-c91b976a8060" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20230130T074112Z:6d92dfe5-c8c0-4880-8fc0-c91b976a8060" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:43:04 GMT" ] + "Date": [ "Mon, 30 Jan 2023 07:41:12 GMT" ] }, "ContentHeaders": { "Content-Length": [ "227" ], diff --git a/src/ServiceLinker/test/Get-AzServiceLinkerConfigurationForWebApp.Recording.json b/src/ServiceLinker/test/Get-AzServiceLinkerConfigurationForWebApp.Recording.json index 31b03e8bc62b..635638da06fd 100644 --- a/src/ServiceLinker/test/Get-AzServiceLinkerConfigurationForWebApp.Recording.json +++ b/src/ServiceLinker/test/Get-AzServiceLinkerConfigurationForWebApp.Recording.json @@ -1,12 +1,12 @@ { - "Get-AzServiceLinkerConfigurationForWebApp+[NoContext]+Get+$POST+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-test-app/providers/Microsoft.ServiceLinker/linkers/preparedLinker/listConfigurations?api-version=2022-05-01+1": { + "Get-AzServiceLinkerConfigurationForWebApp+[NoContext]+Get+$POST+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-test-app/providers/Microsoft.ServiceLinker/linkers/preparedLinker/listConfigurations?api-version=2022-11-01-preview+1": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-test-app/providers/Microsoft.ServiceLinker/linkers/preparedLinker/listConfigurations?api-version=2022-05-01", + "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-test-app/providers/Microsoft.ServiceLinker/linkers/preparedLinker/listConfigurations?api-version=2022-11-01-preview", "Content": null, "Headers": { "x-ms-unique-id": [ "3" ], - "x-ms-client-request-id": [ "8e0d4168-901b-4b8d-a6e3-82ad02b40994" ], + "x-ms-client-request-id": [ "425697d2-6df2-4c61-9e8e-f1f98a1d499c" ], "CommandName": [ "Az.ServiceLinker.internal\\Get-AzServiceLinkerConfiguration" ], "FullCommandName": [ "Get-AzServiceLinkerConfiguration_List" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -21,23 +21,22 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1197" ], "x-ms-providerhub-traffic": [ "True" ], - "mise-correlation-id": [ "f69c1f96-fe48-49ff-a2f0-a8fdb7d66b9f" ], + "mise-correlation-id": [ "dc91cd06-8937-4c3a-9c20-ff21246f5e80" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "df837b82-5b49-442f-b70e-4ff769419e73" ], - "x-ms-correlation-request-id": [ "669dc65e-e639-43a6-8ab5-51850a31fba2" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T064313Z:669dc65e-e639-43a6-8ab5-51850a31fba2" ], + "x-ms-request-id": [ "fd7f3303-d09d-4655-8cf3-f58f58188de4" ], + "x-ms-correlation-request-id": [ "12d11d7a-5667-4970-b480-eb8cf025f8b3" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20230130T074124Z:12d11d7a-5667-4970-b480-eb8cf025f8b3" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:43:12 GMT" ] + "Date": [ "Mon, 30 Jan 2023 07:41:23 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "235" ], + "Content-Length": [ "220" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"configurations\":[{\"name\":\"AZURE_POSTGRESQL_PREPAREDLINKER_CONNECTIONSTRING\",\"value\":\"Server=servicelinker-postgresql.postgres.database.azure.com;Database=pollsdb;Port=5432;Ssl Mode=Require;User Id=xichen@servicelinker-postgresql;\"}]}" + "Content": "{\"configurations\":[{\"name\":\"AZURE_POSTGRESQL_CONNECTIONSTRING\",\"value\":\"Server=servicelinker-postgresql.postgres.database.azure.com;Database=pollsdb;Port=5432;Ssl Mode=Require;User Id=xichen@servicelinker-postgresql;\"}]}" } } } \ No newline at end of file diff --git a/src/ServiceLinker/test/Get-AzServiceLinkerConfigurationName.Recording.json b/src/ServiceLinker/test/Get-AzServiceLinkerConfigurationName.Recording.json new file mode 100644 index 000000000000..26f61ae36831 --- /dev/null +++ b/src/ServiceLinker/test/Get-AzServiceLinkerConfigurationName.Recording.json @@ -0,0 +1,42 @@ +{ + "Get-AzServiceLinkerConfigurationName+[NoContext]+List+$GET+https://management.azure.com/providers/Microsoft.ServiceLinker/configurationNames?api-version=2022-11-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/providers/Microsoft.ServiceLinker/configurationNames?api-version=2022-11-01-preview", + "Content": null, + "Headers": { + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "8f70f979-b676-4044-a6b6-a4dbe384e83b" ], + "CommandName": [ "Get-AzServiceLinkerConfigurationName" ], + "FullCommandName": [ "Get-AzServiceLinkerConfigurationName_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-tenant-reads": [ "11999" ], + "x-ms-providerhub-traffic": [ "True" ], + "mise-correlation-id": [ "1bef8641-b57e-4399-88e7-ddadbf2b2b8c" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "694ddae1-c10e-4bdd-bc41-f60f90f9a8c4" ], + "x-ms-correlation-request-id": [ "18300a16-eafa-4d8c-9983-93df88f701cc" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20230130T074136Z:18300a16-eafa-4d8c-9983-93df88f701cc" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 30 Jan 2023 07:41:36 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "304528" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"properties\":{\"targetService\":\"MICROSOFT.APPCONFIGURATION/CONFIGURATIONSTORES\",\"clientType\":\"none\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_APPCONFIGURATION_ENDPOINT\",\"description\":\"App Configuration endpoint\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.APPCONFIGURATION/CONFIGURATIONSTORES\",\"clientType\":\"none\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_APPCONFIGURATION_ENDPOINT\",\"description\":\"App Configuration endpoint\"},{\"value\":\"AZURE_APPCONFIGURATION_CLIENTID\",\"description\":\"User Identity client id\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.APPCONFIGURATION/CONFIGURATIONSTORES\",\"clientType\":\"none\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_APPCONFIGURATION_ENDPOINT\",\"description\":\"App Configuration endpoint\"},{\"value\":\"AZURE_APPCONFIGURATION_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_APPCONFIGURATION_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_APPCONFIGURATION_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_APPCONFIGURATION_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.APPCONFIGURATION/CONFIGURATIONSTORES\",\"clientType\":\"none\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_APPCONFIGURATION_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.APPCONFIGURATION/CONFIGURATIONSTORES\",\"clientType\":\"none\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_APPCONFIGURATION_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.APPCONFIGURATION/CONFIGURATIONSTORES\",\"clientType\":\"none\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_APPCONFIGURATION_ENDPOINT\",\"description\":\"App Configuration endpoint\"},{\"value\":\"AZURE_APPCONFIGURATION_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.APPCONFIGURATION/CONFIGURATIONSTORES\",\"clientType\":\"dotnet\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_APPCONFIGURATION_ENDPOINT\",\"description\":\"App Configuration endpoint\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.APPCONFIGURATION/CONFIGURATIONSTORES\",\"clientType\":\"dotnet\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_APPCONFIGURATION_ENDPOINT\",\"description\":\"App Configuration endpoint\"},{\"value\":\"AZURE_APPCONFIGURATION_CLIENTID\",\"description\":\"User Identity client id\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.APPCONFIGURATION/CONFIGURATIONSTORES\",\"clientType\":\"dotnet\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_APPCONFIGURATION_ENDPOINT\",\"description\":\"App Configuration endpoint\"},{\"value\":\"AZURE_APPCONFIGURATION_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_APPCONFIGURATION_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_APPCONFIGURATION_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_APPCONFIGURATION_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.APPCONFIGURATION/CONFIGURATIONSTORES\",\"clientType\":\"dotnet\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_APPCONFIGURATION_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.APPCONFIGURATION/CONFIGURATIONSTORES\",\"clientType\":\"dotnet\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_APPCONFIGURATION_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.APPCONFIGURATION/CONFIGURATIONSTORES\",\"clientType\":\"dotnet\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_APPCONFIGURATION_ENDPOINT\",\"description\":\"App Configuration endpoint\"},{\"value\":\"AZURE_APPCONFIGURATION_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.APPCONFIGURATION/CONFIGURATIONSTORES\",\"clientType\":\"java\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_APPCONFIGURATION_ENDPOINT\",\"description\":\"App Configuration endpoint\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.APPCONFIGURATION/CONFIGURATIONSTORES\",\"clientType\":\"java\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_APPCONFIGURATION_ENDPOINT\",\"description\":\"App Configuration endpoint\"},{\"value\":\"AZURE_APPCONFIGURATION_CLIENTID\",\"description\":\"User Identity client id\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.APPCONFIGURATION/CONFIGURATIONSTORES\",\"clientType\":\"java\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_APPCONFIGURATION_ENDPOINT\",\"description\":\"App Configuration endpoint\"},{\"value\":\"AZURE_APPCONFIGURATION_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_APPCONFIGURATION_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_APPCONFIGURATION_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_APPCONFIGURATION_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.APPCONFIGURATION/CONFIGURATIONSTORES\",\"clientType\":\"java\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_APPCONFIGURATION_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.APPCONFIGURATION/CONFIGURATIONSTORES\",\"clientType\":\"java\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_APPCONFIGURATION_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.APPCONFIGURATION/CONFIGURATIONSTORES\",\"clientType\":\"java\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_APPCONFIGURATION_ENDPOINT\",\"description\":\"App Configuration endpoint\"},{\"value\":\"AZURE_APPCONFIGURATION_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.APPCONFIGURATION/CONFIGURATIONSTORES\",\"clientType\":\"nodejs\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_APPCONFIGURATION_ENDPOINT\",\"description\":\"App Configuration endpoint\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.APPCONFIGURATION/CONFIGURATIONSTORES\",\"clientType\":\"nodejs\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_APPCONFIGURATION_ENDPOINT\",\"description\":\"App Configuration endpoint\"},{\"value\":\"AZURE_APPCONFIGURATION_CLIENTID\",\"description\":\"User Identity client id\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.APPCONFIGURATION/CONFIGURATIONSTORES\",\"clientType\":\"nodejs\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_APPCONFIGURATION_ENDPOINT\",\"description\":\"App Configuration endpoint\"},{\"value\":\"AZURE_APPCONFIGURATION_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_APPCONFIGURATION_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_APPCONFIGURATION_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_APPCONFIGURATION_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.APPCONFIGURATION/CONFIGURATIONSTORES\",\"clientType\":\"nodejs\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_APPCONFIGURATION_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.APPCONFIGURATION/CONFIGURATIONSTORES\",\"clientType\":\"nodejs\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_APPCONFIGURATION_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.APPCONFIGURATION/CONFIGURATIONSTORES\",\"clientType\":\"nodejs\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_APPCONFIGURATION_ENDPOINT\",\"description\":\"App Configuration endpoint\"},{\"value\":\"AZURE_APPCONFIGURATION_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.APPCONFIGURATION/CONFIGURATIONSTORES\",\"clientType\":\"python\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_APPCONFIGURATION_ENDPOINT\",\"description\":\"App Configuration endpoint\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.APPCONFIGURATION/CONFIGURATIONSTORES\",\"clientType\":\"python\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_APPCONFIGURATION_ENDPOINT\",\"description\":\"App Configuration endpoint\"},{\"value\":\"AZURE_APPCONFIGURATION_CLIENTID\",\"description\":\"User Identity client id\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.APPCONFIGURATION/CONFIGURATIONSTORES\",\"clientType\":\"python\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_APPCONFIGURATION_ENDPOINT\",\"description\":\"App Configuration endpoint\"},{\"value\":\"AZURE_APPCONFIGURATION_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_APPCONFIGURATION_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_APPCONFIGURATION_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_APPCONFIGURATION_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.APPCONFIGURATION/CONFIGURATIONSTORES\",\"clientType\":\"python\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_APPCONFIGURATION_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.APPCONFIGURATION/CONFIGURATIONSTORES\",\"clientType\":\"python\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_APPCONFIGURATION_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.APPCONFIGURATION/CONFIGURATIONSTORES\",\"clientType\":\"python\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_APPCONFIGURATION_ENDPOINT\",\"description\":\"App Configuration endpoint\"},{\"value\":\"AZURE_APPCONFIGURATION_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.APPCONFIGURATION/CONFIGURATIONSTORES\",\"clientType\":\"go\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_APPCONFIGURATION_ENDPOINT\",\"description\":\"App Configuration endpoint\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.APPCONFIGURATION/CONFIGURATIONSTORES\",\"clientType\":\"go\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_APPCONFIGURATION_ENDPOINT\",\"description\":\"App Configuration endpoint\"},{\"value\":\"AZURE_APPCONFIGURATION_CLIENTID\",\"description\":\"User Identity client id\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.APPCONFIGURATION/CONFIGURATIONSTORES\",\"clientType\":\"go\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_APPCONFIGURATION_ENDPOINT\",\"description\":\"App Configuration endpoint\"},{\"value\":\"AZURE_APPCONFIGURATION_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_APPCONFIGURATION_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_APPCONFIGURATION_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_APPCONFIGURATION_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.APPCONFIGURATION/CONFIGURATIONSTORES\",\"clientType\":\"go\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_APPCONFIGURATION_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.APPCONFIGURATION/CONFIGURATIONSTORES\",\"clientType\":\"go\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_APPCONFIGURATION_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.APPCONFIGURATION/CONFIGURATIONSTORES\",\"clientType\":\"go\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_APPCONFIGURATION_ENDPOINT\",\"description\":\"App Configuration endpoint\"},{\"value\":\"AZURE_APPCONFIGURATION_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SQL/SERVERS/DATABASES\",\"clientType\":\"none\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_SQL_HOST\",\"description\":\"SQL host\"},{\"value\":\"AZURE_SQL_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_SQL_DATABASE\",\"description\":\"database name\"},{\"value\":\"AZURE_SQL_AUTHENTICATION\",\"description\":\"authentication type\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SQL/SERVERS/DATABASES\",\"clientType\":\"none\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_SQL_HOST\",\"description\":\"SQL host\"},{\"value\":\"AZURE_SQL_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_SQL_DATABASE\",\"description\":\"database name\"},{\"value\":\"AZURE_SQL_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_SQL_AUTHENTICATION\",\"description\":\"authentication type\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SQL/SERVERS/DATABASES\",\"clientType\":\"none\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_SQL_HOST\",\"description\":\"SQL host\"},{\"value\":\"AZURE_SQL_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_SQL_DATABASE\",\"description\":\"database name\"},{\"value\":\"AZURE_SQL_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_SQL_PASSWORD\",\"description\":\"password\"},{\"value\":\"AZURE_SQL_AUTHENTICATION\",\"description\":\"authentication type\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SQL/SERVERS/DATABASES\",\"clientType\":\"none\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_SQL_HOST\",\"description\":\"SQL host\"},{\"value\":\"AZURE_SQL_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_SQL_DATABASE\",\"description\":\"database name\"},{\"value\":\"AZURE_SQL_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_SQL_PASSWORD\",\"description\":\"password\"},{\"value\":\"AZURE_SQL_AUTHENTICATION\",\"description\":\"authentication type\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SQL/SERVERS/DATABASES\",\"clientType\":\"none\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_SQL_HOST\",\"description\":\"SQL host\"},{\"value\":\"AZURE_SQL_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_SQL_DATABASE\",\"description\":\"database name\"},{\"value\":\"AZURE_SQL_AUTHENTICATION\",\"description\":\"authentication type\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SQL/SERVERS/DATABASES\",\"clientType\":\"dotnet\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_SQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SQL/SERVERS/DATABASES\",\"clientType\":\"dotnet\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_SQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SQL/SERVERS/DATABASES\",\"clientType\":\"dotnet\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_SQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SQL/SERVERS/DATABASES\",\"clientType\":\"dotnet\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_SQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SQL/SERVERS/DATABASES\",\"clientType\":\"dotnet\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_SQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SQL/SERVERS/DATABASES\",\"clientType\":\"java\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_SQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SQL/SERVERS/DATABASES\",\"clientType\":\"java\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_SQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SQL/SERVERS/DATABASES\",\"clientType\":\"java\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_SQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SQL/SERVERS/DATABASES\",\"clientType\":\"java\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_SQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SQL/SERVERS/DATABASES\",\"clientType\":\"java\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_SQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SQL/SERVERS/DATABASES\",\"clientType\":\"nodejs\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_SQL_SERVER\",\"description\":\"SQL server\"},{\"value\":\"AZURE_SQL_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_SQL_DATABASE\",\"description\":\"database name\"},{\"value\":\"AZURE_SQL_AUTHENTICATIONTYPE\",\"description\":\"authentication type\"},{\"value\":\"AZURE_SQL_CLIENTID\",\"description\":\"client id\"},{\"value\":\"AZURE_SQL_CLIENTSECRET\",\"description\":\"client secret\"},{\"value\":\"AZURE_SQL_TENANTID\",\"description\":\"tenant id\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SQL/SERVERS/DATABASES\",\"clientType\":\"nodejs\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_SQL_SERVER\",\"description\":\"SQL server\"},{\"value\":\"AZURE_SQL_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_SQL_DATABASE\",\"description\":\"database name\"},{\"value\":\"AZURE_SQL_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_SQL_AUTHENTICATIONTYPE\",\"description\":\"authentication type\"},{\"value\":\"AZURE_SQL_CLIENTID\",\"description\":\"client id\"},{\"value\":\"AZURE_SQL_CLIENTSECRET\",\"description\":\"client secret\"},{\"value\":\"AZURE_SQL_TENANTID\",\"description\":\"tenant id\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SQL/SERVERS/DATABASES\",\"clientType\":\"nodejs\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_SQL_SERVER\",\"description\":\"SQL server\"},{\"value\":\"AZURE_SQL_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_SQL_DATABASE\",\"description\":\"database name\"},{\"value\":\"AZURE_SQL_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_SQL_PASSWORD\",\"description\":\"password\"},{\"value\":\"AZURE_SQL_AUTHENTICATIONTYPE\",\"description\":\"authentication type\"},{\"value\":\"AZURE_SQL_CLIENTID\",\"description\":\"client id\"},{\"value\":\"AZURE_SQL_CLIENTSECRET\",\"description\":\"client secret\"},{\"value\":\"AZURE_SQL_TENANTID\",\"description\":\"tenant id\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SQL/SERVERS/DATABASES\",\"clientType\":\"nodejs\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_SQL_SERVER\",\"description\":\"SQL server\"},{\"value\":\"AZURE_SQL_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_SQL_DATABASE\",\"description\":\"database name\"},{\"value\":\"AZURE_SQL_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_SQL_PASSWORD\",\"description\":\"password\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SQL/SERVERS/DATABASES\",\"clientType\":\"nodejs\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_SQL_SERVER\",\"description\":\"SQL server\"},{\"value\":\"AZURE_SQL_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_SQL_DATABASE\",\"description\":\"database name\"},{\"value\":\"AZURE_SQL_AUTHENTICATIONTYPE\",\"description\":\"authentication type\"},{\"value\":\"AZURE_SQL_CLIENTID\",\"description\":\"client id\"},{\"value\":\"AZURE_SQL_CLIENTSECRET\",\"description\":\"client secret\"},{\"value\":\"AZURE_SQL_TENANTID\",\"description\":\"tenant id\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SQL/SERVERS/DATABASES\",\"clientType\":\"python\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_SQL_SERVER\",\"description\":\"SQL server name\"},{\"value\":\"AZURE_SQL_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_SQL_DATABASE\",\"description\":\"database name\"},{\"value\":\"AZURE_SQL_USER\",\"description\":\"user name\"},{\"value\":\"AZURE_SQL_AUTHENTICATION\",\"description\":\"authentication type\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SQL/SERVERS/DATABASES\",\"clientType\":\"python\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_SQL_SERVER\",\"description\":\"SQL server name\"},{\"value\":\"AZURE_SQL_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_SQL_DATABASE\",\"description\":\"database name\"},{\"value\":\"AZURE_SQL_USER\",\"description\":\"user name\"},{\"value\":\"AZURE_SQL_AUTHENTICATION\",\"description\":\"authentication type\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SQL/SERVERS/DATABASES\",\"clientType\":\"python\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_SQL_SERVER\",\"description\":\"SQL server name\"},{\"value\":\"AZURE_SQL_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_SQL_DATABASE\",\"description\":\"database name\"},{\"value\":\"AZURE_SQL_USER\",\"description\":\"user name\"},{\"value\":\"AZURE_SQL_AUTHENTICATION\",\"description\":\"authentication type\"},{\"value\":\"AZURE_SQL_PASSWORD\",\"description\":\"password\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SQL/SERVERS/DATABASES\",\"clientType\":\"python\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_SQL_SERVER\",\"description\":\"SQL server name\"},{\"value\":\"AZURE_SQL_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_SQL_DATABASE\",\"description\":\"database name\"},{\"value\":\"AZURE_SQL_USER\",\"description\":\"user name\"},{\"value\":\"AZURE_SQL_AUTHENTICATION\",\"description\":\"authentication type\"},{\"value\":\"AZURE_SQL_PASSWORD\",\"description\":\"password\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SQL/SERVERS/DATABASES\",\"clientType\":\"python\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_SQL_SERVER\",\"description\":\"SQL server name\"},{\"value\":\"AZURE_SQL_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_SQL_DATABASE\",\"description\":\"database name\"},{\"value\":\"AZURE_SQL_USER\",\"description\":\"user name\"},{\"value\":\"AZURE_SQL_AUTHENTICATION\",\"description\":\"authentication type\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SQL/SERVERS/DATABASES\",\"clientType\":\"go\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_SQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SQL/SERVERS/DATABASES\",\"clientType\":\"go\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_SQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SQL/SERVERS/DATABASES\",\"clientType\":\"php\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_SQL_SERVERNAME\",\"description\":\"SQL server name\"},{\"value\":\"AZURE_SQL_DATABASE\",\"description\":\"database name\"},{\"value\":\"AZURE_SQL_UID\",\"description\":\"SQL UID\"},{\"value\":\"AZURE_SQL_PWD\",\"description\":\"password\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SQL/SERVERS/DATABASES\",\"clientType\":\"php\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_SQL_SERVERNAME\",\"description\":\"SQL server name\"},{\"value\":\"AZURE_SQL_DATABASE\",\"description\":\"database name\"},{\"value\":\"AZURE_SQL_UID\",\"description\":\"SQL UID\"},{\"value\":\"AZURE_SQL_PWD\",\"description\":\"password\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SQL/SERVERS/DATABASES\",\"clientType\":\"ruby\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_SQL_HOST\",\"description\":\"SQL host\"},{\"value\":\"AZURE_SQL_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_SQL_DATABASE\",\"description\":\"database name\"},{\"value\":\"AZURE_SQL_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_SQL_PASSWORD\",\"description\":\"password\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SQL/SERVERS/DATABASES\",\"clientType\":\"ruby\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_SQL_HOST\",\"description\":\"SQL host\"},{\"value\":\"AZURE_SQL_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_SQL_DATABASE\",\"description\":\"database name\"},{\"value\":\"AZURE_SQL_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_SQL_PASSWORD\",\"description\":\"password\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SQL/SERVERS/DATABASES\",\"clientType\":\"django\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_SQL_HOST\",\"description\":\"SQL host\"},{\"value\":\"AZURE_SQL_PORT\",\"description\":\"Database port\"},{\"value\":\"AZURE_SQL_NAME\",\"description\":\"database name\"},{\"value\":\"AZURE_SQL_USER\",\"description\":\"user name\"},{\"value\":\"AZURE_SQL_PASSWORD\",\"description\":\"password\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SQL/SERVERS/DATABASES\",\"clientType\":\"django\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_SQL_HOST\",\"description\":\"SQL host\"},{\"value\":\"AZURE_SQL_PORT\",\"description\":\"Database port\"},{\"value\":\"AZURE_SQL_NAME\",\"description\":\"database name\"},{\"value\":\"AZURE_SQL_USER\",\"description\":\"user name\"},{\"value\":\"AZURE_SQL_PASSWORD\",\"description\":\"password\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SQL/SERVERS/DATABASES\",\"clientType\":\"springBoot\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"spring.datasource.url\",\"description\":\"database url\"},{\"value\":\"spring.datasource.username\",\"description\":\"user name\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SQL/SERVERS/DATABASES\",\"clientType\":\"springBoot\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"spring.datasource.url\",\"description\":\"database url\"},{\"value\":\"spring.datasource.username\",\"description\":\"user name\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SQL/SERVERS/DATABASES\",\"clientType\":\"springBoot\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"spring.datasource.url\",\"description\":\"database url\"},{\"value\":\"spring.datasource.username\",\"description\":\"user name\"},{\"value\":\"spring.datasource.password\",\"description\":\"password\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SQL/SERVERS/DATABASES\",\"clientType\":\"springBoot\",\"authType\":\"secret\",\"names\":[{\"value\":\"spring.datasource.url\",\"description\":\"database url\"},{\"value\":\"spring.datasource.username\",\"description\":\"user name\"},{\"value\":\"spring.datasource.password\",\"description\":\"password\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SQL/SERVERS/DATABASES\",\"clientType\":\"springBoot\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"spring.datasource.url\",\"description\":\"database url\"},{\"value\":\"spring.datasource.username\",\"description\":\"user name\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SQL/SERVERS/DATABASES\",\"clientType\":\"dotnet-connectionString\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_SQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SQL/SERVERS/DATABASES\",\"clientType\":\"dotnet-connectionString\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_SQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SQL/SERVERS/DATABASES\",\"clientType\":\"dotnet-connectionString\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_SQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SQL/SERVERS/DATABASES\",\"clientType\":\"dotnet-connectionString\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_SQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SQL/SERVERS/DATABASES\",\"clientType\":\"dotnet-connectionString\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_SQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SIGNALRSERVICE/SIGNALR\",\"clientType\":\"none\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_SIGNALR_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SIGNALRSERVICE/SIGNALR\",\"clientType\":\"none\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_SIGNALR_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SIGNALRSERVICE/SIGNALR\",\"clientType\":\"none\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_SIGNALR_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SIGNALRSERVICE/SIGNALR\",\"clientType\":\"none\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_SIGNALR_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SIGNALRSERVICE/SIGNALR\",\"clientType\":\"none\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_SIGNALR_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SIGNALRSERVICE/SIGNALR\",\"clientType\":\"none\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_SIGNALR_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SIGNALRSERVICE/SIGNALR\",\"clientType\":\"dotnet\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_SIGNALR_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SIGNALRSERVICE/SIGNALR\",\"clientType\":\"dotnet\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_SIGNALR_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SIGNALRSERVICE/SIGNALR\",\"clientType\":\"dotnet\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_SIGNALR_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SIGNALRSERVICE/SIGNALR\",\"clientType\":\"dotnet\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_SIGNALR_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SIGNALRSERVICE/SIGNALR\",\"clientType\":\"dotnet\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_SIGNALR_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SIGNALRSERVICE/SIGNALR\",\"clientType\":\"dotnet\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_SIGNALR_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SIGNALRSERVICE/WEBPUBSUB\",\"clientType\":\"none\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_WEBPUBSUB_HOST\",\"description\":\"Web PubSub host\"},{\"value\":\"AZURE_WEBPUBSUB_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SIGNALRSERVICE/WEBPUBSUB\",\"clientType\":\"none\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_WEBPUBSUB_HOST\",\"description\":\"Web PubSub host\"},{\"value\":\"AZURE_WEBPUBSUB_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_WEBPUBSUB_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SIGNALRSERVICE/WEBPUBSUB\",\"clientType\":\"none\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_WEBPUBSUB_HOST\",\"description\":\"Web PubSub host\"},{\"value\":\"AZURE_WEBPUBSUB_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_WEBPUBSUB_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_WEBPUBSUB_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_WEBPUBSUB_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SIGNALRSERVICE/WEBPUBSUB\",\"clientType\":\"none\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_WEBPUBSUB_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SIGNALRSERVICE/WEBPUBSUB\",\"clientType\":\"none\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_WEBPUBSUB_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SIGNALRSERVICE/WEBPUBSUB\",\"clientType\":\"none\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_WEBPUBSUB_HOST\",\"description\":\"Web PubSub host\"},{\"value\":\"AZURE_WEBPUBSUB_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SIGNALRSERVICE/WEBPUBSUB\",\"clientType\":\"dotnet\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_WEBPUBSUB_HOST\",\"description\":\"Web PubSub host\"},{\"value\":\"AZURE_WEBPUBSUB_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SIGNALRSERVICE/WEBPUBSUB\",\"clientType\":\"dotnet\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_WEBPUBSUB_HOST\",\"description\":\"Web PubSub host\"},{\"value\":\"AZURE_WEBPUBSUB_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_WEBPUBSUB_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SIGNALRSERVICE/WEBPUBSUB\",\"clientType\":\"dotnet\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_WEBPUBSUB_HOST\",\"description\":\"Web PubSub host\"},{\"value\":\"AZURE_WEBPUBSUB_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_WEBPUBSUB_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_WEBPUBSUB_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_WEBPUBSUB_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SIGNALRSERVICE/WEBPUBSUB\",\"clientType\":\"dotnet\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_WEBPUBSUB_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SIGNALRSERVICE/WEBPUBSUB\",\"clientType\":\"dotnet\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_WEBPUBSUB_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SIGNALRSERVICE/WEBPUBSUB\",\"clientType\":\"dotnet\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_WEBPUBSUB_HOST\",\"description\":\"Web PubSub host\"},{\"value\":\"AZURE_WEBPUBSUB_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SIGNALRSERVICE/WEBPUBSUB\",\"clientType\":\"java\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_WEBPUBSUB_HOST\",\"description\":\"Web PubSub host\"},{\"value\":\"AZURE_WEBPUBSUB_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SIGNALRSERVICE/WEBPUBSUB\",\"clientType\":\"java\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_WEBPUBSUB_HOST\",\"description\":\"Web PubSub host\"},{\"value\":\"AZURE_WEBPUBSUB_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_WEBPUBSUB_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SIGNALRSERVICE/WEBPUBSUB\",\"clientType\":\"java\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_WEBPUBSUB_HOST\",\"description\":\"Web PubSub host\"},{\"value\":\"AZURE_WEBPUBSUB_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_WEBPUBSUB_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_WEBPUBSUB_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_WEBPUBSUB_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SIGNALRSERVICE/WEBPUBSUB\",\"clientType\":\"java\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_WEBPUBSUB_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SIGNALRSERVICE/WEBPUBSUB\",\"clientType\":\"java\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_WEBPUBSUB_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SIGNALRSERVICE/WEBPUBSUB\",\"clientType\":\"java\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_WEBPUBSUB_HOST\",\"description\":\"Web PubSub host\"},{\"value\":\"AZURE_WEBPUBSUB_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SIGNALRSERVICE/WEBPUBSUB\",\"clientType\":\"nodejs\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_WEBPUBSUB_HOST\",\"description\":\"Web PubSub host\"},{\"value\":\"AZURE_WEBPUBSUB_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SIGNALRSERVICE/WEBPUBSUB\",\"clientType\":\"nodejs\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_WEBPUBSUB_HOST\",\"description\":\"Web PubSub host\"},{\"value\":\"AZURE_WEBPUBSUB_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_WEBPUBSUB_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SIGNALRSERVICE/WEBPUBSUB\",\"clientType\":\"nodejs\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_WEBPUBSUB_HOST\",\"description\":\"Web PubSub host\"},{\"value\":\"AZURE_WEBPUBSUB_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_WEBPUBSUB_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_WEBPUBSUB_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_WEBPUBSUB_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SIGNALRSERVICE/WEBPUBSUB\",\"clientType\":\"nodejs\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_WEBPUBSUB_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SIGNALRSERVICE/WEBPUBSUB\",\"clientType\":\"nodejs\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_WEBPUBSUB_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SIGNALRSERVICE/WEBPUBSUB\",\"clientType\":\"nodejs\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_WEBPUBSUB_HOST\",\"description\":\"Web PubSub host\"},{\"value\":\"AZURE_WEBPUBSUB_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SIGNALRSERVICE/WEBPUBSUB\",\"clientType\":\"python\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_WEBPUBSUB_HOST\",\"description\":\"Web PubSub host\"},{\"value\":\"AZURE_WEBPUBSUB_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SIGNALRSERVICE/WEBPUBSUB\",\"clientType\":\"python\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_WEBPUBSUB_HOST\",\"description\":\"Web PubSub host\"},{\"value\":\"AZURE_WEBPUBSUB_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_WEBPUBSUB_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SIGNALRSERVICE/WEBPUBSUB\",\"clientType\":\"python\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_WEBPUBSUB_HOST\",\"description\":\"Web PubSub host\"},{\"value\":\"AZURE_WEBPUBSUB_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_WEBPUBSUB_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_WEBPUBSUB_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_WEBPUBSUB_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SIGNALRSERVICE/WEBPUBSUB\",\"clientType\":\"python\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_WEBPUBSUB_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SIGNALRSERVICE/WEBPUBSUB\",\"clientType\":\"python\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_WEBPUBSUB_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SIGNALRSERVICE/WEBPUBSUB\",\"clientType\":\"python\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_WEBPUBSUB_HOST\",\"description\":\"Web PubSub host\"},{\"value\":\"AZURE_WEBPUBSUB_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORMYSQL/SERVERS/DATABASES\",\"clientType\":\"none\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_MYSQL_HOST\",\"description\":\"MySQL host\"},{\"value\":\"AZURE_MYSQL_PORT\",\"description\":\"Database port\"},{\"value\":\"AZURE_MYSQL_DATABASE\",\"description\":\"Database name\"},{\"value\":\"AZURE_MYSQL_SSL\",\"description\":\"SSL configuration\"},{\"value\":\"AZURE_MYSQL_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_MYSQL_PASSWORD\",\"description\":\"password\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORMYSQL/SERVERS/DATABASES\",\"clientType\":\"none\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_MYSQL_HOST\",\"description\":\"MySQL host\"},{\"value\":\"AZURE_MYSQL_PORT\",\"description\":\"Database port\"},{\"value\":\"AZURE_MYSQL_DATABASE\",\"description\":\"Database name\"},{\"value\":\"AZURE_MYSQL_SSL\",\"description\":\"SSL configuration\"},{\"value\":\"AZURE_MYSQL_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_MYSQL_PASSWORD\",\"description\":\"password\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORMYSQL/SERVERS/DATABASES\",\"clientType\":\"dotnet\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_MYSQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORMYSQL/SERVERS/DATABASES\",\"clientType\":\"dotnet\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_MYSQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORMYSQL/SERVERS/DATABASES\",\"clientType\":\"java\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_MYSQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORMYSQL/SERVERS/DATABASES\",\"clientType\":\"java\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_MYSQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORMYSQL/SERVERS/DATABASES\",\"clientType\":\"nodejs\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_MYSQL_HOST\",\"description\":\"PostgresQL host\"},{\"value\":\"AZURE_MYSQL_USER\",\"description\":\"user name\"},{\"value\":\"AZURE_MYSQL_PASSWORD\",\"description\":\"password\"},{\"value\":\"AZURE_MYSQL_DATABASE\",\"description\":\"database name\"},{\"value\":\"AZURE_MYSQL_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_MYSQL_SSL\",\"description\":\"SSL configuration\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORMYSQL/SERVERS/DATABASES\",\"clientType\":\"nodejs\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_MYSQL_HOST\",\"description\":\"PostgresQL host\"},{\"value\":\"AZURE_MYSQL_USER\",\"description\":\"user name\"},{\"value\":\"AZURE_MYSQL_PASSWORD\",\"description\":\"password\"},{\"value\":\"AZURE_MYSQL_DATABASE\",\"description\":\"database name\"},{\"value\":\"AZURE_MYSQL_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_MYSQL_SSL\",\"description\":\"SSL configuration\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORMYSQL/SERVERS/DATABASES\",\"clientType\":\"python\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_MYSQL_NAME\",\"description\":\"database name\"},{\"value\":\"AZURE_MYSQL_HOST\",\"description\":\"host\"},{\"value\":\"AZURE_MYSQL_USER\",\"description\":\"user name\"},{\"value\":\"AZURE_MYSQL_PASSWORD\",\"description\":\"password\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORMYSQL/SERVERS/DATABASES\",\"clientType\":\"python\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_MYSQL_NAME\",\"description\":\"database name\"},{\"value\":\"AZURE_MYSQL_HOST\",\"description\":\"host\"},{\"value\":\"AZURE_MYSQL_USER\",\"description\":\"user name\"},{\"value\":\"AZURE_MYSQL_PASSWORD\",\"description\":\"password\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORMYSQL/SERVERS/DATABASES\",\"clientType\":\"go\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_MYSQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORMYSQL/SERVERS/DATABASES\",\"clientType\":\"go\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_MYSQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORMYSQL/SERVERS/DATABASES\",\"clientType\":\"php\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_MYSQL_DBNAME\",\"description\":\"database name\"},{\"value\":\"AZURE_MYSQL_HOST\",\"description\":\"MySQL host\"},{\"value\":\"AZURE_MYSQL_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_MYSQL_FLAG\",\"description\":\"SSL flag configuration\"},{\"value\":\"AZURE_MYSQL_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_MYSQL_PASSWORD\",\"description\":\"password\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORMYSQL/SERVERS/DATABASES\",\"clientType\":\"php\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_MYSQL_DBNAME\",\"description\":\"database name\"},{\"value\":\"AZURE_MYSQL_HOST\",\"description\":\"MySQL host\"},{\"value\":\"AZURE_MYSQL_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_MYSQL_FLAG\",\"description\":\"SSL flag configuration\"},{\"value\":\"AZURE_MYSQL_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_MYSQL_PASSWORD\",\"description\":\"password\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORMYSQL/SERVERS/DATABASES\",\"clientType\":\"ruby\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_MYSQL_DATABASE\",\"description\":\"database name\"},{\"value\":\"AZURE_MYSQL_HOST\",\"description\":\"MySQL host\"},{\"value\":\"AZURE_MYSQL_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_MYSQL_PASSWORD\",\"description\":\"password\"},{\"value\":\"AZURE_MYSQL_SSLMODE\",\"description\":\"SSL mode\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORMYSQL/SERVERS/DATABASES\",\"clientType\":\"ruby\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_MYSQL_DATABASE\",\"description\":\"database name\"},{\"value\":\"AZURE_MYSQL_HOST\",\"description\":\"MySQL host\"},{\"value\":\"AZURE_MYSQL_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_MYSQL_PASSWORD\",\"description\":\"password\"},{\"value\":\"AZURE_MYSQL_SSLMODE\",\"description\":\"SSL mode\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORMYSQL/SERVERS/DATABASES\",\"clientType\":\"django\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_MYSQL_NAME\",\"description\":\"database name\"},{\"value\":\"AZURE_MYSQL_HOST\",\"description\":\"host\"},{\"value\":\"AZURE_MYSQL_USER\",\"description\":\"user name\"},{\"value\":\"AZURE_MYSQL_PASSWORD\",\"description\":\"password\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORMYSQL/SERVERS/DATABASES\",\"clientType\":\"django\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_MYSQL_NAME\",\"description\":\"database name\"},{\"value\":\"AZURE_MYSQL_HOST\",\"description\":\"host\"},{\"value\":\"AZURE_MYSQL_USER\",\"description\":\"user name\"},{\"value\":\"AZURE_MYSQL_PASSWORD\",\"description\":\"password\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORMYSQL/SERVERS/DATABASES\",\"clientType\":\"springBoot\",\"authType\":\"secret\",\"names\":[{\"value\":\"spring.datasource.url\",\"description\":\"database url\"},{\"value\":\"spring.datasource.username\",\"description\":\"user name\"},{\"value\":\"spring.datasource.password\",\"description\":\"password\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORMYSQL/SERVERS/DATABASES\",\"clientType\":\"springBoot\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"spring.datasource.azure.passwordless-enabled\",\"description\":\"passwordless flag\"},{\"value\":\"spring.datasource.url\",\"description\":\"database url\"},{\"value\":\"spring.datasource.username\",\"description\":\"user name\"},{\"value\":\"spring.datasource.password\",\"description\":\"password\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORMYSQL/SERVERS/DATABASES\",\"clientType\":\"dotnet-connectionString\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_MYSQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORMYSQL/SERVERS/DATABASES\",\"clientType\":\"dotnet-connectionString\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_MYSQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORMYSQL/FLEXIBLESERVERS/DATABASES\",\"clientType\":\"none\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_MYSQL_HOST\",\"description\":\"MySQL host\"},{\"value\":\"AZURE_MYSQL_PORT\",\"description\":\"Database port\"},{\"value\":\"AZURE_MYSQL_DATABASE\",\"description\":\"Database name\"},{\"value\":\"AZURE_MYSQL_SSL\",\"description\":\"SSL configuration\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORMYSQL/FLEXIBLESERVERS/DATABASES\",\"clientType\":\"none\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_MYSQL_HOST\",\"description\":\"MySQL host\"},{\"value\":\"AZURE_MYSQL_PORT\",\"description\":\"Database port\"},{\"value\":\"AZURE_MYSQL_DATABASE\",\"description\":\"Database name\"},{\"value\":\"AZURE_MYSQL_SSL\",\"description\":\"SSL configuration\"},{\"value\":\"AZURE_MYSQL_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_MYSQL_PASSWORD\",\"description\":\"password\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORMYSQL/FLEXIBLESERVERS/DATABASES\",\"clientType\":\"none\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_MYSQL_HOST\",\"description\":\"MySQL host\"},{\"value\":\"AZURE_MYSQL_PORT\",\"description\":\"Database port\"},{\"value\":\"AZURE_MYSQL_DATABASE\",\"description\":\"Database name\"},{\"value\":\"AZURE_MYSQL_SSL\",\"description\":\"SSL configuration\"},{\"value\":\"AZURE_MYSQL_USERNAME\",\"description\":\"user name\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORMYSQL/FLEXIBLESERVERS/DATABASES\",\"clientType\":\"dotnet\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_MYSQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORMYSQL/FLEXIBLESERVERS/DATABASES\",\"clientType\":\"dotnet\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_MYSQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORMYSQL/FLEXIBLESERVERS/DATABASES\",\"clientType\":\"dotnet\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_MYSQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORMYSQL/FLEXIBLESERVERS/DATABASES\",\"clientType\":\"java\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_MYSQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORMYSQL/FLEXIBLESERVERS/DATABASES\",\"clientType\":\"java\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_MYSQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORMYSQL/FLEXIBLESERVERS/DATABASES\",\"clientType\":\"java\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_MYSQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORMYSQL/FLEXIBLESERVERS/DATABASES\",\"clientType\":\"nodejs\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_MYSQL_HOST\",\"description\":\"PostgresQL host\"},{\"value\":\"AZURE_MYSQL_USER\",\"description\":\"user name\"},{\"value\":\"AZURE_MYSQL_DATABASE\",\"description\":\"database name\"},{\"value\":\"AZURE_MYSQL_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_MYSQL_SSL\",\"description\":\"SSL configuration\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORMYSQL/FLEXIBLESERVERS/DATABASES\",\"clientType\":\"nodejs\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_MYSQL_HOST\",\"description\":\"PostgresQL host\"},{\"value\":\"AZURE_MYSQL_USER\",\"description\":\"user name\"},{\"value\":\"AZURE_MYSQL_PASSWORD\",\"description\":\"password\"},{\"value\":\"AZURE_MYSQL_DATABASE\",\"description\":\"database name\"},{\"value\":\"AZURE_MYSQL_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_MYSQL_SSL\",\"description\":\"SSL configuration\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORMYSQL/FLEXIBLESERVERS/DATABASES\",\"clientType\":\"nodejs\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_MYSQL_HOST\",\"description\":\"PostgresQL host\"},{\"value\":\"AZURE_MYSQL_USER\",\"description\":\"user name\"},{\"value\":\"AZURE_MYSQL_DATABASE\",\"description\":\"database name\"},{\"value\":\"AZURE_MYSQL_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_MYSQL_SSL\",\"description\":\"SSL configuration\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORMYSQL/FLEXIBLESERVERS/DATABASES\",\"clientType\":\"python\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_MYSQL_NAME\",\"description\":\"database name\"},{\"value\":\"AZURE_MYSQL_HOST\",\"description\":\"host\"},{\"value\":\"AZURE_MYSQL_USER\",\"description\":\"user name\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORMYSQL/FLEXIBLESERVERS/DATABASES\",\"clientType\":\"python\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_MYSQL_NAME\",\"description\":\"database name\"},{\"value\":\"AZURE_MYSQL_HOST\",\"description\":\"host\"},{\"value\":\"AZURE_MYSQL_USER\",\"description\":\"user name\"},{\"value\":\"AZURE_MYSQL_PASSWORD\",\"description\":\"password\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORMYSQL/FLEXIBLESERVERS/DATABASES\",\"clientType\":\"python\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_MYSQL_NAME\",\"description\":\"database name\"},{\"value\":\"AZURE_MYSQL_HOST\",\"description\":\"host\"},{\"value\":\"AZURE_MYSQL_USER\",\"description\":\"user name\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORMYSQL/FLEXIBLESERVERS/DATABASES\",\"clientType\":\"go\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_MYSQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORMYSQL/FLEXIBLESERVERS/DATABASES\",\"clientType\":\"go\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_MYSQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORMYSQL/FLEXIBLESERVERS/DATABASES\",\"clientType\":\"go\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_MYSQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORMYSQL/FLEXIBLESERVERS/DATABASES\",\"clientType\":\"php\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_MYSQL_DBNAME\",\"description\":\"database name\"},{\"value\":\"AZURE_MYSQL_HOST\",\"description\":\"MySQL host\"},{\"value\":\"AZURE_MYSQL_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_MYSQL_FLAG\",\"description\":\"SSL flag configuration\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORMYSQL/FLEXIBLESERVERS/DATABASES\",\"clientType\":\"php\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_MYSQL_DBNAME\",\"description\":\"database name\"},{\"value\":\"AZURE_MYSQL_HOST\",\"description\":\"MySQL host\"},{\"value\":\"AZURE_MYSQL_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_MYSQL_FLAG\",\"description\":\"SSL flag configuration\"},{\"value\":\"AZURE_MYSQL_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_MYSQL_PASSWORD\",\"description\":\"password\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORMYSQL/FLEXIBLESERVERS/DATABASES\",\"clientType\":\"php\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_MYSQL_DBNAME\",\"description\":\"database name\"},{\"value\":\"AZURE_MYSQL_HOST\",\"description\":\"MySQL host\"},{\"value\":\"AZURE_MYSQL_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_MYSQL_FLAG\",\"description\":\"SSL flag configuration\"},{\"value\":\"AZURE_MYSQL_USERNAME\",\"description\":\"user name\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORMYSQL/FLEXIBLESERVERS/DATABASES\",\"clientType\":\"ruby\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_MYSQL_DATABASE\",\"description\":\"database name\"},{\"value\":\"AZURE_MYSQL_HOST\",\"description\":\"MySQL host\"},{\"value\":\"AZURE_MYSQL_SSLMODE\",\"description\":\"SSL mode\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORMYSQL/FLEXIBLESERVERS/DATABASES\",\"clientType\":\"ruby\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_MYSQL_DATABASE\",\"description\":\"database name\"},{\"value\":\"AZURE_MYSQL_HOST\",\"description\":\"MySQL host\"},{\"value\":\"AZURE_MYSQL_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_MYSQL_PASSWORD\",\"description\":\"password\"},{\"value\":\"AZURE_MYSQL_SSLMODE\",\"description\":\"SSL mode\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORMYSQL/FLEXIBLESERVERS/DATABASES\",\"clientType\":\"ruby\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_MYSQL_DATABASE\",\"description\":\"database name\"},{\"value\":\"AZURE_MYSQL_HOST\",\"description\":\"MySQL host\"},{\"value\":\"AZURE_MYSQL_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_MYSQL_SSLMODE\",\"description\":\"SSL mode\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORMYSQL/FLEXIBLESERVERS/DATABASES\",\"clientType\":\"django\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_MYSQL_NAME\",\"description\":\"database name\"},{\"value\":\"AZURE_MYSQL_HOST\",\"description\":\"host\"},{\"value\":\"AZURE_MYSQL_USER\",\"description\":\"user name\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORMYSQL/FLEXIBLESERVERS/DATABASES\",\"clientType\":\"django\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_MYSQL_NAME\",\"description\":\"database name\"},{\"value\":\"AZURE_MYSQL_HOST\",\"description\":\"host\"},{\"value\":\"AZURE_MYSQL_USER\",\"description\":\"user name\"},{\"value\":\"AZURE_MYSQL_PASSWORD\",\"description\":\"password\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORMYSQL/FLEXIBLESERVERS/DATABASES\",\"clientType\":\"django\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_MYSQL_NAME\",\"description\":\"database name\"},{\"value\":\"AZURE_MYSQL_HOST\",\"description\":\"host\"},{\"value\":\"AZURE_MYSQL_USER\",\"description\":\"user name\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORMYSQL/FLEXIBLESERVERS/DATABASES\",\"clientType\":\"springBoot\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"spring.datasource.azure.passwordless-enabled\",\"description\":\"passwordless flag\"},{\"value\":\"spring.datasource.url\",\"description\":\"database url\"},{\"value\":\"spring.datasource.username\",\"description\":\"user name\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORMYSQL/FLEXIBLESERVERS/DATABASES\",\"clientType\":\"springBoot\",\"authType\":\"secret\",\"names\":[{\"value\":\"spring.datasource.url\",\"description\":\"database url\"},{\"value\":\"spring.datasource.username\",\"description\":\"user name\"},{\"value\":\"spring.datasource.password\",\"description\":\"password\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORMYSQL/FLEXIBLESERVERS/DATABASES\",\"clientType\":\"springBoot\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"spring.datasource.azure.passwordless-enabled\",\"description\":\"passwordless flag\"},{\"value\":\"spring.datasource.url\",\"description\":\"database url\"},{\"value\":\"spring.datasource.username\",\"description\":\"user name\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORMYSQL/FLEXIBLESERVERS/DATABASES\",\"clientType\":\"dotnet-connectionString\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_MYSQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORMYSQL/FLEXIBLESERVERS/DATABASES\",\"clientType\":\"dotnet-connectionString\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_MYSQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORMYSQL/FLEXIBLESERVERS/DATABASES\",\"clientType\":\"dotnet-connectionString\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_MYSQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.KEYVAULT/VAULTS\",\"clientType\":\"none\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_KEYVAULT_RESOURCEENDPOINT\",\"description\":\"Key Vault endpoint\"},{\"value\":\"AZURE_KEYVAULT_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.KEYVAULT/VAULTS\",\"clientType\":\"none\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_KEYVAULT_RESOURCEENDPOINT\",\"description\":\"Key Vault endpoint\"},{\"value\":\"AZURE_KEYVAULT_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_KEYVAULT_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.KEYVAULT/VAULTS\",\"clientType\":\"none\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_KEYVAULT_RESOURCEENDPOINT\",\"description\":\"Key Vault endpoint\"},{\"value\":\"AZURE_KEYVAULT_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_KEYVAULT_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_KEYVAULT_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_KEYVAULT_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.KEYVAULT/VAULTS\",\"clientType\":\"none\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_KEYVAULT_RESOURCEENDPOINT\",\"description\":\"Key Vault endpoint\"},{\"value\":\"AZURE_KEYVAULT_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.KEYVAULT/VAULTS\",\"clientType\":\"dotnet\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_KEYVAULT_RESOURCEENDPOINT\",\"description\":\"Key Vault endpoint\"},{\"value\":\"AZURE_KEYVAULT_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.KEYVAULT/VAULTS\",\"clientType\":\"dotnet\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_KEYVAULT_RESOURCEENDPOINT\",\"description\":\"Key Vault endpoint\"},{\"value\":\"AZURE_KEYVAULT_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_KEYVAULT_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.KEYVAULT/VAULTS\",\"clientType\":\"dotnet\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_KEYVAULT_RESOURCEENDPOINT\",\"description\":\"Key Vault endpoint\"},{\"value\":\"AZURE_KEYVAULT_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_KEYVAULT_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_KEYVAULT_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_KEYVAULT_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.KEYVAULT/VAULTS\",\"clientType\":\"dotnet\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_KEYVAULT_RESOURCEENDPOINT\",\"description\":\"Key Vault endpoint\"},{\"value\":\"AZURE_KEYVAULT_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.KEYVAULT/VAULTS\",\"clientType\":\"java\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_KEYVAULT_RESOURCEENDPOINT\",\"description\":\"Key Vault endpoint\"},{\"value\":\"AZURE_KEYVAULT_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.KEYVAULT/VAULTS\",\"clientType\":\"java\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_KEYVAULT_RESOURCEENDPOINT\",\"description\":\"Key Vault endpoint\"},{\"value\":\"AZURE_KEYVAULT_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_KEYVAULT_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.KEYVAULT/VAULTS\",\"clientType\":\"java\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_KEYVAULT_RESOURCEENDPOINT\",\"description\":\"Key Vault endpoint\"},{\"value\":\"AZURE_KEYVAULT_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_KEYVAULT_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_KEYVAULT_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_KEYVAULT_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.KEYVAULT/VAULTS\",\"clientType\":\"java\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_KEYVAULT_RESOURCEENDPOINT\",\"description\":\"Key Vault endpoint\"},{\"value\":\"AZURE_KEYVAULT_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.KEYVAULT/VAULTS\",\"clientType\":\"nodejs\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_KEYVAULT_RESOURCEENDPOINT\",\"description\":\"Key Vault endpoint\"},{\"value\":\"AZURE_KEYVAULT_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.KEYVAULT/VAULTS\",\"clientType\":\"nodejs\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_KEYVAULT_RESOURCEENDPOINT\",\"description\":\"Key Vault endpoint\"},{\"value\":\"AZURE_KEYVAULT_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_KEYVAULT_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.KEYVAULT/VAULTS\",\"clientType\":\"nodejs\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_KEYVAULT_RESOURCEENDPOINT\",\"description\":\"Key Vault endpoint\"},{\"value\":\"AZURE_KEYVAULT_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_KEYVAULT_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_KEYVAULT_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_KEYVAULT_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.KEYVAULT/VAULTS\",\"clientType\":\"nodejs\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_KEYVAULT_RESOURCEENDPOINT\",\"description\":\"Key Vault endpoint\"},{\"value\":\"AZURE_KEYVAULT_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.KEYVAULT/VAULTS\",\"clientType\":\"python\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_KEYVAULT_RESOURCEENDPOINT\",\"description\":\"Key Vault endpoint\"},{\"value\":\"AZURE_KEYVAULT_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.KEYVAULT/VAULTS\",\"clientType\":\"python\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_KEYVAULT_RESOURCEENDPOINT\",\"description\":\"Key Vault endpoint\"},{\"value\":\"AZURE_KEYVAULT_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_KEYVAULT_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.KEYVAULT/VAULTS\",\"clientType\":\"python\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_KEYVAULT_RESOURCEENDPOINT\",\"description\":\"Key Vault endpoint\"},{\"value\":\"AZURE_KEYVAULT_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_KEYVAULT_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_KEYVAULT_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_KEYVAULT_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.KEYVAULT/VAULTS\",\"clientType\":\"python\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_KEYVAULT_RESOURCEENDPOINT\",\"description\":\"Key Vault endpoint\"},{\"value\":\"AZURE_KEYVAULT_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.KEYVAULT/VAULTS\",\"clientType\":\"go\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_KEYVAULT_RESOURCEENDPOINT\",\"description\":\"Key Vault endpoint\"},{\"value\":\"AZURE_KEYVAULT_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.KEYVAULT/VAULTS\",\"clientType\":\"go\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_KEYVAULT_RESOURCEENDPOINT\",\"description\":\"Key Vault endpoint\"},{\"value\":\"AZURE_KEYVAULT_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_KEYVAULT_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.KEYVAULT/VAULTS\",\"clientType\":\"go\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_KEYVAULT_RESOURCEENDPOINT\",\"description\":\"Key Vault endpoint\"},{\"value\":\"AZURE_KEYVAULT_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_KEYVAULT_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_KEYVAULT_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_KEYVAULT_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.KEYVAULT/VAULTS\",\"clientType\":\"go\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_KEYVAULT_RESOURCEENDPOINT\",\"description\":\"Key Vault endpoint\"},{\"value\":\"AZURE_KEYVAULT_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.KEYVAULT/VAULTS\",\"clientType\":\"springBoot\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"azure.keyvault.uri\",\"description\":\"Key Vault endpoint\"},{\"value\":\"azure.keyvault.scope\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.KEYVAULT/VAULTS\",\"clientType\":\"springBoot\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"azure.keyvault.uri\",\"description\":\"Key Vault endpoint\"},{\"value\":\"azure.keyvault.client-id\",\"description\":\"User Identity client id\"},{\"value\":\"azure.keyvault.scope\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.KEYVAULT/VAULTS\",\"clientType\":\"springBoot\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"azure.keyvault.uri\",\"description\":\"Key Vault endpoint\"},{\"value\":\"azure.keyvault.client-key\",\"description\":\"Service Principal client secret\"},{\"value\":\"azure.keyvault.client-id\",\"description\":\"Service Principal client id\"},{\"value\":\"azure.keyvault.tenant-id\",\"description\":\"Service Principal tenant id\"},{\"value\":\"azure.keyvault.scope\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.KEYVAULT/VAULTS\",\"clientType\":\"springBoot\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"azure.keyvault.uri\",\"description\":\"Key Vault endpoint\"},{\"value\":\"azure.keyvault.scope\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORPOSTGRESQL/SERVERS/DATABASES\",\"clientType\":\"none\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_POSTGRESQL_HOST\",\"description\":\"PostgresQL host\"},{\"value\":\"AZURE_POSTGRESQL_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_POSTGRESQL_DATABASE\",\"description\":\"database name\"},{\"value\":\"AZURE_POSTGRESQL_SSL\",\"description\":\"SSL configuration\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORPOSTGRESQL/SERVERS/DATABASES\",\"clientType\":\"none\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_POSTGRESQL_HOST\",\"description\":\"PostgresQL host\"},{\"value\":\"AZURE_POSTGRESQL_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_POSTGRESQL_DATABASE\",\"description\":\"database name\"},{\"value\":\"AZURE_POSTGRESQL_SSL\",\"description\":\"SSL configuration\"},{\"value\":\"AZURE_POSTGRESQL_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_POSTGRESQL_PASSWORD\",\"description\":\"password\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORPOSTGRESQL/SERVERS/DATABASES\",\"clientType\":\"none\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_POSTGRESQL_HOST\",\"description\":\"PostgresQL host\"},{\"value\":\"AZURE_POSTGRESQL_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_POSTGRESQL_DATABASE\",\"description\":\"database name\"},{\"value\":\"AZURE_POSTGRESQL_SSL\",\"description\":\"SSL configuration\"},{\"value\":\"AZURE_POSTGRESQL_USERNAME\",\"description\":\"user name\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORPOSTGRESQL/SERVERS/DATABASES\",\"clientType\":\"dotnet\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_POSTGRESQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORPOSTGRESQL/SERVERS/DATABASES\",\"clientType\":\"dotnet\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_POSTGRESQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORPOSTGRESQL/SERVERS/DATABASES\",\"clientType\":\"dotnet\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_POSTGRESQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORPOSTGRESQL/SERVERS/DATABASES\",\"clientType\":\"java\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_POSTGRESQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORPOSTGRESQL/SERVERS/DATABASES\",\"clientType\":\"java\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_POSTGRESQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORPOSTGRESQL/SERVERS/DATABASES\",\"clientType\":\"java\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_POSTGRESQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORPOSTGRESQL/SERVERS/DATABASES\",\"clientType\":\"nodejs\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_POSTGRESQL_HOST\",\"description\":\"PostgresQL host\"},{\"value\":\"AZURE_POSTGRESQL_USER\",\"description\":\"user name\"},{\"value\":\"AZURE_POSTGRESQL_DATABASE\",\"description\":\"database name\"},{\"value\":\"AZURE_POSTGRESQL_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_POSTGRESQL_SSL\",\"description\":\"SSL configuration\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORPOSTGRESQL/SERVERS/DATABASES\",\"clientType\":\"nodejs\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_POSTGRESQL_HOST\",\"description\":\"PostgresQL host\"},{\"value\":\"AZURE_POSTGRESQL_USER\",\"description\":\"user name\"},{\"value\":\"AZURE_POSTGRESQL_PASSWORD\",\"description\":\"password\"},{\"value\":\"AZURE_POSTGRESQL_DATABASE\",\"description\":\"database name\"},{\"value\":\"AZURE_POSTGRESQL_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_POSTGRESQL_SSL\",\"description\":\"SSL configuration\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORPOSTGRESQL/SERVERS/DATABASES\",\"clientType\":\"nodejs\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_POSTGRESQL_HOST\",\"description\":\"PostgresQL host\"},{\"value\":\"AZURE_POSTGRESQL_USER\",\"description\":\"user name\"},{\"value\":\"AZURE_POSTGRESQL_DATABASE\",\"description\":\"database name\"},{\"value\":\"AZURE_POSTGRESQL_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_POSTGRESQL_SSL\",\"description\":\"SSL configuration\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORPOSTGRESQL/SERVERS/DATABASES\",\"clientType\":\"python\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_POSTGRESQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORPOSTGRESQL/SERVERS/DATABASES\",\"clientType\":\"python\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_POSTGRESQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORPOSTGRESQL/SERVERS/DATABASES\",\"clientType\":\"python\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_POSTGRESQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORPOSTGRESQL/SERVERS/DATABASES\",\"clientType\":\"go\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_POSTGRESQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORPOSTGRESQL/SERVERS/DATABASES\",\"clientType\":\"go\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_POSTGRESQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORPOSTGRESQL/SERVERS/DATABASES\",\"clientType\":\"go\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_POSTGRESQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORPOSTGRESQL/SERVERS/DATABASES\",\"clientType\":\"php\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_POSTGRESQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORPOSTGRESQL/SERVERS/DATABASES\",\"clientType\":\"php\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_POSTGRESQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORPOSTGRESQL/SERVERS/DATABASES\",\"clientType\":\"php\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_POSTGRESQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORPOSTGRESQL/SERVERS/DATABASES\",\"clientType\":\"ruby\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_POSTGRESQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORPOSTGRESQL/SERVERS/DATABASES\",\"clientType\":\"ruby\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_POSTGRESQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORPOSTGRESQL/SERVERS/DATABASES\",\"clientType\":\"ruby\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_POSTGRESQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORPOSTGRESQL/SERVERS/DATABASES\",\"clientType\":\"django\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_POSTGRESQL_NAME\",\"description\":\"database name\"},{\"value\":\"AZURE_POSTGRESQL_HOST\",\"description\":\"host\"},{\"value\":\"AZURE_POSTGRESQL_USER\",\"description\":\"user name\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORPOSTGRESQL/SERVERS/DATABASES\",\"clientType\":\"django\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_POSTGRESQL_NAME\",\"description\":\"database name\"},{\"value\":\"AZURE_POSTGRESQL_HOST\",\"description\":\"host\"},{\"value\":\"AZURE_POSTGRESQL_USER\",\"description\":\"user name\"},{\"value\":\"AZURE_POSTGRESQL_PASSWORD\",\"description\":\"password\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORPOSTGRESQL/SERVERS/DATABASES\",\"clientType\":\"django\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_POSTGRESQL_NAME\",\"description\":\"database name\"},{\"value\":\"AZURE_POSTGRESQL_HOST\",\"description\":\"host\"},{\"value\":\"AZURE_POSTGRESQL_USER\",\"description\":\"user name\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORPOSTGRESQL/SERVERS/DATABASES\",\"clientType\":\"springBoot\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"spring.datasource.azure.passwordless-enabled\",\"description\":\"passwordless flag\"},{\"value\":\"spring.datasource.url\",\"description\":\"database url\"},{\"value\":\"spring.datasource.username\",\"description\":\"user name\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORPOSTGRESQL/SERVERS/DATABASES\",\"clientType\":\"springBoot\",\"authType\":\"secret\",\"names\":[{\"value\":\"spring.datasource.url\",\"description\":\"database url\"},{\"value\":\"spring.datasource.username\",\"description\":\"user name\"},{\"value\":\"spring.datasource.password\",\"description\":\"password\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORPOSTGRESQL/SERVERS/DATABASES\",\"clientType\":\"springBoot\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"spring.datasource.azure.passwordless-enabled\",\"description\":\"passwordless flag\"},{\"value\":\"spring.datasource.url\",\"description\":\"database url\"},{\"value\":\"spring.datasource.username\",\"description\":\"user name\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORPOSTGRESQL/SERVERS/DATABASES\",\"clientType\":\"dotnet-connectionString\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_POSTGRESQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORPOSTGRESQL/SERVERS/DATABASES\",\"clientType\":\"dotnet-connectionString\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_POSTGRESQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORPOSTGRESQL/SERVERS/DATABASES\",\"clientType\":\"dotnet-connectionString\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_POSTGRESQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORPOSTGRESQL/FLEXIBLESERVERS/DATABASES\",\"clientType\":\"none\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_POSTGRESQL_HOST\",\"description\":\"PostgresQL host\"},{\"value\":\"AZURE_POSTGRESQL_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_POSTGRESQL_DATABASE\",\"description\":\"database name\"},{\"value\":\"AZURE_POSTGRESQL_SSL\",\"description\":\"SSL configuration\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORPOSTGRESQL/FLEXIBLESERVERS/DATABASES\",\"clientType\":\"none\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_POSTGRESQL_HOST\",\"description\":\"PostgresQL host\"},{\"value\":\"AZURE_POSTGRESQL_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_POSTGRESQL_DATABASE\",\"description\":\"database name\"},{\"value\":\"AZURE_POSTGRESQL_SSL\",\"description\":\"SSL configuration\"},{\"value\":\"AZURE_POSTGRESQL_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_POSTGRESQL_PASSWORD\",\"description\":\"password\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORPOSTGRESQL/FLEXIBLESERVERS/DATABASES\",\"clientType\":\"none\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_POSTGRESQL_HOST\",\"description\":\"PostgresQL host\"},{\"value\":\"AZURE_POSTGRESQL_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_POSTGRESQL_DATABASE\",\"description\":\"database name\"},{\"value\":\"AZURE_POSTGRESQL_SSL\",\"description\":\"SSL configuration\"},{\"value\":\"AZURE_POSTGRESQL_USERNAME\",\"description\":\"user name\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORPOSTGRESQL/FLEXIBLESERVERS/DATABASES\",\"clientType\":\"dotnet\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_POSTGRESQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORPOSTGRESQL/FLEXIBLESERVERS/DATABASES\",\"clientType\":\"dotnet\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_POSTGRESQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORPOSTGRESQL/FLEXIBLESERVERS/DATABASES\",\"clientType\":\"dotnet\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_POSTGRESQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORPOSTGRESQL/FLEXIBLESERVERS/DATABASES\",\"clientType\":\"java\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_POSTGRESQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORPOSTGRESQL/FLEXIBLESERVERS/DATABASES\",\"clientType\":\"java\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_POSTGRESQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORPOSTGRESQL/FLEXIBLESERVERS/DATABASES\",\"clientType\":\"java\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_POSTGRESQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORPOSTGRESQL/FLEXIBLESERVERS/DATABASES\",\"clientType\":\"nodejs\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_POSTGRESQL_HOST\",\"description\":\"PostgresQL host\"},{\"value\":\"AZURE_POSTGRESQL_USER\",\"description\":\"user name\"},{\"value\":\"AZURE_POSTGRESQL_DATABASE\",\"description\":\"database name\"},{\"value\":\"AZURE_POSTGRESQL_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_POSTGRESQL_SSL\",\"description\":\"SSL configuration\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORPOSTGRESQL/FLEXIBLESERVERS/DATABASES\",\"clientType\":\"nodejs\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_POSTGRESQL_HOST\",\"description\":\"PostgresQL host\"},{\"value\":\"AZURE_POSTGRESQL_USER\",\"description\":\"user name\"},{\"value\":\"AZURE_POSTGRESQL_PASSWORD\",\"description\":\"password\"},{\"value\":\"AZURE_POSTGRESQL_DATABASE\",\"description\":\"database name\"},{\"value\":\"AZURE_POSTGRESQL_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_POSTGRESQL_SSL\",\"description\":\"SSL configuration\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORPOSTGRESQL/FLEXIBLESERVERS/DATABASES\",\"clientType\":\"nodejs\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_POSTGRESQL_HOST\",\"description\":\"PostgresQL host\"},{\"value\":\"AZURE_POSTGRESQL_USER\",\"description\":\"user name\"},{\"value\":\"AZURE_POSTGRESQL_DATABASE\",\"description\":\"database name\"},{\"value\":\"AZURE_POSTGRESQL_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_POSTGRESQL_SSL\",\"description\":\"SSL configuration\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORPOSTGRESQL/FLEXIBLESERVERS/DATABASES\",\"clientType\":\"python\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_POSTGRESQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORPOSTGRESQL/FLEXIBLESERVERS/DATABASES\",\"clientType\":\"python\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_POSTGRESQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORPOSTGRESQL/FLEXIBLESERVERS/DATABASES\",\"clientType\":\"python\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_POSTGRESQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORPOSTGRESQL/FLEXIBLESERVERS/DATABASES\",\"clientType\":\"go\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_POSTGRESQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORPOSTGRESQL/FLEXIBLESERVERS/DATABASES\",\"clientType\":\"go\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_POSTGRESQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORPOSTGRESQL/FLEXIBLESERVERS/DATABASES\",\"clientType\":\"go\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_POSTGRESQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORPOSTGRESQL/FLEXIBLESERVERS/DATABASES\",\"clientType\":\"php\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_POSTGRESQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORPOSTGRESQL/FLEXIBLESERVERS/DATABASES\",\"clientType\":\"php\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_POSTGRESQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORPOSTGRESQL/FLEXIBLESERVERS/DATABASES\",\"clientType\":\"php\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_POSTGRESQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORPOSTGRESQL/FLEXIBLESERVERS/DATABASES\",\"clientType\":\"ruby\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_POSTGRESQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORPOSTGRESQL/FLEXIBLESERVERS/DATABASES\",\"clientType\":\"ruby\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_POSTGRESQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORPOSTGRESQL/FLEXIBLESERVERS/DATABASES\",\"clientType\":\"ruby\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_POSTGRESQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORPOSTGRESQL/FLEXIBLESERVERS/DATABASES\",\"clientType\":\"django\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_POSTGRESQL_NAME\",\"description\":\"database name\"},{\"value\":\"AZURE_POSTGRESQL_HOST\",\"description\":\"host\"},{\"value\":\"AZURE_POSTGRESQL_USER\",\"description\":\"user name\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORPOSTGRESQL/FLEXIBLESERVERS/DATABASES\",\"clientType\":\"django\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_POSTGRESQL_NAME\",\"description\":\"database name\"},{\"value\":\"AZURE_POSTGRESQL_HOST\",\"description\":\"host\"},{\"value\":\"AZURE_POSTGRESQL_USER\",\"description\":\"user name\"},{\"value\":\"AZURE_POSTGRESQL_PASSWORD\",\"description\":\"password\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORPOSTGRESQL/FLEXIBLESERVERS/DATABASES\",\"clientType\":\"django\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_POSTGRESQL_NAME\",\"description\":\"database name\"},{\"value\":\"AZURE_POSTGRESQL_HOST\",\"description\":\"host\"},{\"value\":\"AZURE_POSTGRESQL_USER\",\"description\":\"user name\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORPOSTGRESQL/FLEXIBLESERVERS/DATABASES\",\"clientType\":\"springBoot\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"spring.datasource.azure.passwordless-enabled\",\"description\":\"passwordless flag\"},{\"value\":\"spring.datasource.url\",\"description\":\"database url\"},{\"value\":\"spring.datasource.username\",\"description\":\"user name\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORPOSTGRESQL/FLEXIBLESERVERS/DATABASES\",\"clientType\":\"springBoot\",\"authType\":\"secret\",\"names\":[{\"value\":\"spring.datasource.url\",\"description\":\"database url\"},{\"value\":\"spring.datasource.username\",\"description\":\"user name\"},{\"value\":\"spring.datasource.password\",\"description\":\"password\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORPOSTGRESQL/FLEXIBLESERVERS/DATABASES\",\"clientType\":\"springBoot\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"spring.datasource.azure.passwordless-enabled\",\"description\":\"passwordless flag\"},{\"value\":\"spring.datasource.url\",\"description\":\"database url\"},{\"value\":\"spring.datasource.username\",\"description\":\"user name\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORPOSTGRESQL/FLEXIBLESERVERS/DATABASES\",\"clientType\":\"dotnet-connectionString\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_POSTGRESQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORPOSTGRESQL/FLEXIBLESERVERS/DATABASES\",\"clientType\":\"dotnet-connectionString\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_POSTGRESQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DBFORPOSTGRESQL/FLEXIBLESERVERS/DATABASES\",\"clientType\":\"dotnet-connectionString\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_POSTGRESQL_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.EVENTHUB/NAMESPACES\",\"clientType\":\"none\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_EVENTHUB_FULLYQUALIFIEDNAMESPACE\",\"description\":\"Event Hubs namespace\"},{\"value\":\"AZURE_EVENTHUB_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.EVENTHUB/NAMESPACES\",\"clientType\":\"none\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_EVENTHUB_FULLYQUALIFIEDNAMESPACE\",\"description\":\"Event Hubs namespace\"},{\"value\":\"AZURE_EVENTHUB_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_EVENTHUB_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.EVENTHUB/NAMESPACES\",\"clientType\":\"none\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_EVENTHUB_FULLYQUALIFIEDNAMESPACE\",\"description\":\"Event Hubs namespace\"},{\"value\":\"AZURE_EVENTHUB_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_EVENTHUB_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_EVENTHUB_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_EVENTHUB_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.EVENTHUB/NAMESPACES\",\"clientType\":\"none\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_EVENTHUB_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.EVENTHUB/NAMESPACES\",\"clientType\":\"none\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_EVENTHUB_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.EVENTHUB/NAMESPACES\",\"clientType\":\"none\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_EVENTHUB_FULLYQUALIFIEDNAMESPACE\",\"description\":\"Event Hubs namespace\"},{\"value\":\"AZURE_EVENTHUB_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.EVENTHUB/NAMESPACES\",\"clientType\":\"dotnet\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_EVENTHUB_FULLYQUALIFIEDNAMESPACE\",\"description\":\"Event Hubs namespace\"},{\"value\":\"AZURE_EVENTHUB_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.EVENTHUB/NAMESPACES\",\"clientType\":\"dotnet\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_EVENTHUB_FULLYQUALIFIEDNAMESPACE\",\"description\":\"Event Hubs namespace\"},{\"value\":\"AZURE_EVENTHUB_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_EVENTHUB_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.EVENTHUB/NAMESPACES\",\"clientType\":\"dotnet\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_EVENTHUB_FULLYQUALIFIEDNAMESPACE\",\"description\":\"Event Hubs namespace\"},{\"value\":\"AZURE_EVENTHUB_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_EVENTHUB_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_EVENTHUB_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_EVENTHUB_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.EVENTHUB/NAMESPACES\",\"clientType\":\"dotnet\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_EVENTHUB_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.EVENTHUB/NAMESPACES\",\"clientType\":\"dotnet\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_EVENTHUB_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.EVENTHUB/NAMESPACES\",\"clientType\":\"dotnet\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_EVENTHUB_FULLYQUALIFIEDNAMESPACE\",\"description\":\"Event Hubs namespace\"},{\"value\":\"AZURE_EVENTHUB_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.EVENTHUB/NAMESPACES\",\"clientType\":\"java\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_EVENTHUB_FULLYQUALIFIEDNAMESPACE\",\"description\":\"Event Hubs namespace\"},{\"value\":\"AZURE_EVENTHUB_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.EVENTHUB/NAMESPACES\",\"clientType\":\"java\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_EVENTHUB_FULLYQUALIFIEDNAMESPACE\",\"description\":\"Event Hubs namespace\"},{\"value\":\"AZURE_EVENTHUB_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_EVENTHUB_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.EVENTHUB/NAMESPACES\",\"clientType\":\"java\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_EVENTHUB_FULLYQUALIFIEDNAMESPACE\",\"description\":\"Event Hubs namespace\"},{\"value\":\"AZURE_EVENTHUB_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_EVENTHUB_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_EVENTHUB_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_EVENTHUB_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.EVENTHUB/NAMESPACES\",\"clientType\":\"java\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_EVENTHUB_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.EVENTHUB/NAMESPACES\",\"clientType\":\"java\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_EVENTHUB_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.EVENTHUB/NAMESPACES\",\"clientType\":\"java\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_EVENTHUB_FULLYQUALIFIEDNAMESPACE\",\"description\":\"Event Hubs namespace\"},{\"value\":\"AZURE_EVENTHUB_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.EVENTHUB/NAMESPACES\",\"clientType\":\"nodejs\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_EVENTHUB_FULLYQUALIFIEDNAMESPACE\",\"description\":\"Event Hubs namespace\"},{\"value\":\"AZURE_EVENTHUB_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.EVENTHUB/NAMESPACES\",\"clientType\":\"nodejs\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_EVENTHUB_FULLYQUALIFIEDNAMESPACE\",\"description\":\"Event Hubs namespace\"},{\"value\":\"AZURE_EVENTHUB_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_EVENTHUB_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.EVENTHUB/NAMESPACES\",\"clientType\":\"nodejs\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_EVENTHUB_FULLYQUALIFIEDNAMESPACE\",\"description\":\"Event Hubs namespace\"},{\"value\":\"AZURE_EVENTHUB_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_EVENTHUB_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_EVENTHUB_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_EVENTHUB_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.EVENTHUB/NAMESPACES\",\"clientType\":\"nodejs\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_EVENTHUB_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.EVENTHUB/NAMESPACES\",\"clientType\":\"nodejs\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_EVENTHUB_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.EVENTHUB/NAMESPACES\",\"clientType\":\"nodejs\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_EVENTHUB_FULLYQUALIFIEDNAMESPACE\",\"description\":\"Event Hubs namespace\"},{\"value\":\"AZURE_EVENTHUB_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.EVENTHUB/NAMESPACES\",\"clientType\":\"python\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_EVENTHUB_FULLYQUALIFIEDNAMESPACE\",\"description\":\"Event Hubs namespace\"},{\"value\":\"AZURE_EVENTHUB_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.EVENTHUB/NAMESPACES\",\"clientType\":\"python\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_EVENTHUB_FULLYQUALIFIEDNAMESPACE\",\"description\":\"Event Hubs namespace\"},{\"value\":\"AZURE_EVENTHUB_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_EVENTHUB_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.EVENTHUB/NAMESPACES\",\"clientType\":\"python\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_EVENTHUB_FULLYQUALIFIEDNAMESPACE\",\"description\":\"Event Hubs namespace\"},{\"value\":\"AZURE_EVENTHUB_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_EVENTHUB_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_EVENTHUB_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_EVENTHUB_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.EVENTHUB/NAMESPACES\",\"clientType\":\"python\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_EVENTHUB_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.EVENTHUB/NAMESPACES\",\"clientType\":\"python\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_EVENTHUB_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.EVENTHUB/NAMESPACES\",\"clientType\":\"python\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_EVENTHUB_FULLYQUALIFIEDNAMESPACE\",\"description\":\"Event Hubs namespace\"},{\"value\":\"AZURE_EVENTHUB_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.EVENTHUB/NAMESPACES\",\"clientType\":\"go\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_EVENTHUB_FULLYQUALIFIEDNAMESPACE\",\"description\":\"Event Hubs namespace\"},{\"value\":\"AZURE_EVENTHUB_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.EVENTHUB/NAMESPACES\",\"clientType\":\"go\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_EVENTHUB_FULLYQUALIFIEDNAMESPACE\",\"description\":\"Event Hubs namespace\"},{\"value\":\"AZURE_EVENTHUB_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_EVENTHUB_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.EVENTHUB/NAMESPACES\",\"clientType\":\"go\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_EVENTHUB_FULLYQUALIFIEDNAMESPACE\",\"description\":\"Event Hubs namespace\"},{\"value\":\"AZURE_EVENTHUB_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_EVENTHUB_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_EVENTHUB_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_EVENTHUB_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.EVENTHUB/NAMESPACES\",\"clientType\":\"go\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_EVENTHUB_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.EVENTHUB/NAMESPACES\",\"clientType\":\"go\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_EVENTHUB_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.EVENTHUB/NAMESPACES\",\"clientType\":\"go\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_EVENTHUB_FULLYQUALIFIEDNAMESPACE\",\"description\":\"Event Hubs namespace\"},{\"value\":\"AZURE_EVENTHUB_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.EVENTHUB/NAMESPACES\",\"clientType\":\"springBoot\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"spring.cloud.azure.eventhub.namespace\",\"description\":\"Event Hubs namespace\"},{\"value\":\"spring.cloud.azure.scope\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.EVENTHUB/NAMESPACES\",\"clientType\":\"springBoot\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"spring.cloud.azure.eventhub.namespace\",\"description\":\"Event Hubs namespace\"},{\"value\":\"spring.cloud.azure.client-id\",\"description\":\"User Identity client id\"},{\"value\":\"spring.cloud.azure.scope\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.EVENTHUB/NAMESPACES\",\"clientType\":\"springBoot\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"spring.cloud.azure.eventhub.namespace\",\"description\":\"Event Hubs namespace\"},{\"value\":\"spring.cloud.azure.client-secret\",\"description\":\"Service Principal client secret\"},{\"value\":\"spring.cloud.azure.client-id\",\"description\":\"Service Principal client id\"},{\"value\":\"spring.cloud.azure.tenant-id\",\"description\":\"Service Principal tenant id\"},{\"value\":\"spring.cloud.azure.scope\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.EVENTHUB/NAMESPACES\",\"clientType\":\"springBoot\",\"authType\":\"secret\",\"names\":[{\"value\":\"spring.cloud.azure.eventhub.connection-string\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.EVENTHUB/NAMESPACES\",\"clientType\":\"springBoot\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"spring.cloud.azure.eventhub.connection-string\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.EVENTHUB/NAMESPACES\",\"clientType\":\"springBoot\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"spring.cloud.azure.eventhub.namespace\",\"description\":\"Event Hubs namespace\"},{\"value\":\"spring.cloud.azure.scope\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.EVENTHUB/NAMESPACES\",\"clientType\":\"kafka-springBoot\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"spring.kafka.bootstrap-servers\",\"description\":\"Kafka bootstrap server\"},{\"value\":\"spring.cloud.azure.scope\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.EVENTHUB/NAMESPACES\",\"clientType\":\"kafka-springBoot\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"spring.kafka.bootstrap-servers\",\"description\":\"Kafka bootstrap server\"},{\"value\":\"spring.kafka.properties.azure.credential.managed-identity-enabled\",\"description\":\"whether manage identity is enabled\"},{\"value\":\"spring.kafka.properties.azure.credential.client-id\",\"description\":\"User Identity client id\"},{\"value\":\"scope\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.EVENTHUB/NAMESPACES\",\"clientType\":\"kafka-springBoot\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"spring.kafka.bootstrap-servers\",\"description\":\"Kafka bootstrap server\"},{\"value\":\"spring.kafka.properties.azure.credential.client-secret\",\"description\":\"Service Principal client secret\"},{\"value\":\"spring.kafka.properties.azure.credential.client-id\",\"description\":\"Service Principal client id\"},{\"value\":\"spring.kafka.properties.azure.profile.tenant-id\",\"description\":\"Service Principal tenant id\"},{\"value\":\"scope\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.EVENTHUB/NAMESPACES\",\"clientType\":\"kafka-springBoot\",\"authType\":\"secret\",\"names\":[{\"value\":\"spring.cloud.azure.eventhubs.connection-string\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.EVENTHUB/NAMESPACES\",\"clientType\":\"kafka-springBoot\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"spring.cloud.azure.eventhubs.connection-string\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.EVENTHUB/NAMESPACES\",\"clientType\":\"kafka-springBoot\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"spring.kafka.bootstrap-servers\",\"description\":\"Kafka bootstrap server\"},{\"value\":\"spring.cloud.azure.scope\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SERVICEBUS/NAMESPACES\",\"clientType\":\"none\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_SERVICEBUS_FULLYQUALIFIEDNAMESPACE\",\"description\":\"Service Bus namespace\"},{\"value\":\"AZURE_SERVICEBUS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SERVICEBUS/NAMESPACES\",\"clientType\":\"none\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_SERVICEBUS_FULLYQUALIFIEDNAMESPACE\",\"description\":\"Service Bus namespace\"},{\"value\":\"AZURE_SERVICEBUS_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_SERVICEBUS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SERVICEBUS/NAMESPACES\",\"clientType\":\"none\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_SERVICEBUS_FULLYQUALIFIEDNAMESPACE\",\"description\":\"Service Bus namespace\"},{\"value\":\"AZURE_SERVICEBUS_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_SERVICEBUS_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_SERVICEBUS_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_SERVICEBUS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SERVICEBUS/NAMESPACES\",\"clientType\":\"none\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_SERVICEBUS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SERVICEBUS/NAMESPACES\",\"clientType\":\"none\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_SERVICEBUS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SERVICEBUS/NAMESPACES\",\"clientType\":\"none\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_SERVICEBUS_FULLYQUALIFIEDNAMESPACE\",\"description\":\"Service Bus namespace\"},{\"value\":\"AZURE_SERVICEBUS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SERVICEBUS/NAMESPACES\",\"clientType\":\"dotnet\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_SERVICEBUS_FULLYQUALIFIEDNAMESPACE\",\"description\":\"Service Bus namespace\"},{\"value\":\"AZURE_SERVICEBUS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SERVICEBUS/NAMESPACES\",\"clientType\":\"dotnet\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_SERVICEBUS_FULLYQUALIFIEDNAMESPACE\",\"description\":\"Service Bus namespace\"},{\"value\":\"AZURE_SERVICEBUS_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_SERVICEBUS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SERVICEBUS/NAMESPACES\",\"clientType\":\"dotnet\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_SERVICEBUS_FULLYQUALIFIEDNAMESPACE\",\"description\":\"Service Bus namespace\"},{\"value\":\"AZURE_SERVICEBUS_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_SERVICEBUS_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_SERVICEBUS_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_SERVICEBUS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SERVICEBUS/NAMESPACES\",\"clientType\":\"dotnet\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_SERVICEBUS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SERVICEBUS/NAMESPACES\",\"clientType\":\"dotnet\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_SERVICEBUS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SERVICEBUS/NAMESPACES\",\"clientType\":\"dotnet\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_SERVICEBUS_FULLYQUALIFIEDNAMESPACE\",\"description\":\"Service Bus namespace\"},{\"value\":\"AZURE_SERVICEBUS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SERVICEBUS/NAMESPACES\",\"clientType\":\"java\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_SERVICEBUS_FULLYQUALIFIEDNAMESPACE\",\"description\":\"Service Bus namespace\"},{\"value\":\"AZURE_SERVICEBUS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SERVICEBUS/NAMESPACES\",\"clientType\":\"java\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_SERVICEBUS_FULLYQUALIFIEDNAMESPACE\",\"description\":\"Service Bus namespace\"},{\"value\":\"AZURE_SERVICEBUS_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_SERVICEBUS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SERVICEBUS/NAMESPACES\",\"clientType\":\"java\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_SERVICEBUS_FULLYQUALIFIEDNAMESPACE\",\"description\":\"Service Bus namespace\"},{\"value\":\"AZURE_SERVICEBUS_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_SERVICEBUS_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_SERVICEBUS_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_SERVICEBUS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SERVICEBUS/NAMESPACES\",\"clientType\":\"java\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_SERVICEBUS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SERVICEBUS/NAMESPACES\",\"clientType\":\"java\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_SERVICEBUS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SERVICEBUS/NAMESPACES\",\"clientType\":\"java\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_SERVICEBUS_FULLYQUALIFIEDNAMESPACE\",\"description\":\"Service Bus namespace\"},{\"value\":\"AZURE_SERVICEBUS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SERVICEBUS/NAMESPACES\",\"clientType\":\"nodejs\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_SERVICEBUS_FULLYQUALIFIEDNAMESPACE\",\"description\":\"Service Bus namespace\"},{\"value\":\"AZURE_SERVICEBUS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SERVICEBUS/NAMESPACES\",\"clientType\":\"nodejs\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_SERVICEBUS_FULLYQUALIFIEDNAMESPACE\",\"description\":\"Service Bus namespace\"},{\"value\":\"AZURE_SERVICEBUS_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_SERVICEBUS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SERVICEBUS/NAMESPACES\",\"clientType\":\"nodejs\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_SERVICEBUS_FULLYQUALIFIEDNAMESPACE\",\"description\":\"Service Bus namespace\"},{\"value\":\"AZURE_SERVICEBUS_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_SERVICEBUS_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_SERVICEBUS_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_SERVICEBUS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SERVICEBUS/NAMESPACES\",\"clientType\":\"nodejs\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_SERVICEBUS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SERVICEBUS/NAMESPACES\",\"clientType\":\"nodejs\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_SERVICEBUS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SERVICEBUS/NAMESPACES\",\"clientType\":\"nodejs\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_SERVICEBUS_FULLYQUALIFIEDNAMESPACE\",\"description\":\"Service Bus namespace\"},{\"value\":\"AZURE_SERVICEBUS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SERVICEBUS/NAMESPACES\",\"clientType\":\"python\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_SERVICEBUS_FULLYQUALIFIEDNAMESPACE\",\"description\":\"Service Bus namespace\"},{\"value\":\"AZURE_SERVICEBUS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SERVICEBUS/NAMESPACES\",\"clientType\":\"python\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_SERVICEBUS_FULLYQUALIFIEDNAMESPACE\",\"description\":\"Service Bus namespace\"},{\"value\":\"AZURE_SERVICEBUS_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_SERVICEBUS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SERVICEBUS/NAMESPACES\",\"clientType\":\"python\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_SERVICEBUS_FULLYQUALIFIEDNAMESPACE\",\"description\":\"Service Bus namespace\"},{\"value\":\"AZURE_SERVICEBUS_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_SERVICEBUS_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_SERVICEBUS_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_SERVICEBUS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SERVICEBUS/NAMESPACES\",\"clientType\":\"python\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_SERVICEBUS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SERVICEBUS/NAMESPACES\",\"clientType\":\"python\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_SERVICEBUS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SERVICEBUS/NAMESPACES\",\"clientType\":\"python\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_SERVICEBUS_FULLYQUALIFIEDNAMESPACE\",\"description\":\"Service Bus namespace\"},{\"value\":\"AZURE_SERVICEBUS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SERVICEBUS/NAMESPACES\",\"clientType\":\"go\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_SERVICEBUS_FULLYQUALIFIEDNAMESPACE\",\"description\":\"Service Bus namespace\"},{\"value\":\"AZURE_SERVICEBUS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SERVICEBUS/NAMESPACES\",\"clientType\":\"go\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_SERVICEBUS_FULLYQUALIFIEDNAMESPACE\",\"description\":\"Service Bus namespace\"},{\"value\":\"AZURE_SERVICEBUS_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_SERVICEBUS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SERVICEBUS/NAMESPACES\",\"clientType\":\"go\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_SERVICEBUS_FULLYQUALIFIEDNAMESPACE\",\"description\":\"Service Bus namespace\"},{\"value\":\"AZURE_SERVICEBUS_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_SERVICEBUS_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_SERVICEBUS_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_SERVICEBUS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SERVICEBUS/NAMESPACES\",\"clientType\":\"go\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_SERVICEBUS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SERVICEBUS/NAMESPACES\",\"clientType\":\"go\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_SERVICEBUS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SERVICEBUS/NAMESPACES\",\"clientType\":\"go\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_SERVICEBUS_FULLYQUALIFIEDNAMESPACE\",\"description\":\"Service Bus namespace\"},{\"value\":\"AZURE_SERVICEBUS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SERVICEBUS/NAMESPACES\",\"clientType\":\"springBoot\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"spring.cloud.azure.servicebus.namespace\",\"description\":\"Service Bus namespace\"},{\"value\":\"spring.cloud.azure.scope\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SERVICEBUS/NAMESPACES\",\"clientType\":\"springBoot\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"spring.cloud.azure.servicebus.namespace\",\"description\":\"Service Bus namespace\"},{\"value\":\"spring.cloud.azure.client-id\",\"description\":\"User Identity client id\"},{\"value\":\"spring.cloud.azure.scope\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SERVICEBUS/NAMESPACES\",\"clientType\":\"springBoot\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"spring.cloud.azure.servicebus.namespace\",\"description\":\"Service Bus namespace\"},{\"value\":\"spring.cloud.azure.client-secret\",\"description\":\"Service Principal client secret\"},{\"value\":\"spring.cloud.azure.client-id\",\"description\":\"Service Principal client id\"},{\"value\":\"spring.cloud.azure.tenant-id\",\"description\":\"Service Principal tenant id\"},{\"value\":\"spring.cloud.azure.scope\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SERVICEBUS/NAMESPACES\",\"clientType\":\"springBoot\",\"authType\":\"secret\",\"names\":[{\"value\":\"spring.cloud.azure.servicebus.connection-string\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SERVICEBUS/NAMESPACES\",\"clientType\":\"springBoot\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"spring.cloud.azure.servicebus.connection-string\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.SERVICEBUS/NAMESPACES\",\"clientType\":\"springBoot\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"spring.cloud.azure.servicebus.namespace\",\"description\":\"Service Bus namespace\"},{\"value\":\"spring.cloud.azure.scope\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"CONFLUENT.CLOUD/KAFKA\",\"clientType\":\"none\",\"authType\":\"secret\",\"names\":[{\"value\":\"CONFLUENTCLOUD_KAFKA_BOOTSTRAPSERVER\",\"description\":\"Kafka bootstrap server\"},{\"value\":\"CONFLUENTCLOUD_KAFKA_SASLUSERNAME\",\"description\":\"SASL user name\"},{\"value\":\"CONFLUENTCLOUD_KAFKA_SASLPASSWORD\",\"description\":\"SASL password\"}]}},{\"properties\":{\"targetService\":\"CONFLUENT.CLOUD/KAFKA\",\"clientType\":\"none\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"CONFLUENTCLOUD_KAFKA_BOOTSTRAPSERVER\",\"description\":\"Kafka bootstrap server\"},{\"value\":\"CONFLUENTCLOUD_KAFKA_SASLUSERNAME\",\"description\":\"SASL user name\"},{\"value\":\"CONFLUENTCLOUD_KAFKA_SASLPASSWORD\",\"description\":\"SASL password\"}]}},{\"properties\":{\"targetService\":\"CONFLUENT.CLOUD/KAFKA\",\"clientType\":\"dotnet\",\"authType\":\"secret\",\"names\":[{\"value\":\"CONFLUENTCLOUD_KAFKA_BOOTSTRAPSERVER\",\"description\":\"Kafka bootstrap server\"},{\"value\":\"CONFLUENTCLOUD_KAFKA_SASLUSERNAME\",\"description\":\"SASL user name\"},{\"value\":\"CONFLUENTCLOUD_KAFKA_SASLPASSWORD\",\"description\":\"SASL password\"}]}},{\"properties\":{\"targetService\":\"CONFLUENT.CLOUD/KAFKA\",\"clientType\":\"dotnet\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"CONFLUENTCLOUD_KAFKA_BOOTSTRAPSERVER\",\"description\":\"Kafka bootstrap server\"},{\"value\":\"CONFLUENTCLOUD_KAFKA_SASLUSERNAME\",\"description\":\"SASL user name\"},{\"value\":\"CONFLUENTCLOUD_KAFKA_SASLPASSWORD\",\"description\":\"SASL password\"}]}},{\"properties\":{\"targetService\":\"CONFLUENT.CLOUD/KAFKA\",\"clientType\":\"java\",\"authType\":\"secret\",\"names\":[{\"value\":\"CONFLUENTCLOUD_KAFKA_BOOTSTRAPSERVER\",\"description\":\"Kafka bootstrap server\"},{\"value\":\"CONFLUENTCLOUD_KAFKA_SASLCONFIG\",\"description\":\"SASL configuration\"}]}},{\"properties\":{\"targetService\":\"CONFLUENT.CLOUD/KAFKA\",\"clientType\":\"java\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"CONFLUENTCLOUD_KAFKA_BOOTSTRAPSERVER\",\"description\":\"Kafka bootstrap server\"},{\"value\":\"CONFLUENTCLOUD_KAFKA_SASLCONFIG\",\"description\":\"SASL configuration\"}]}},{\"properties\":{\"targetService\":\"CONFLUENT.CLOUD/KAFKA\",\"clientType\":\"nodejs\",\"authType\":\"secret\",\"names\":[{\"value\":\"CONFLUENTCLOUD_KAFKA_BOOTSTRAPSERVER\",\"description\":\"Kafka bootstrap server\"},{\"value\":\"CONFLUENTCLOUD_KAFKA_SASLUSERNAME\",\"description\":\"SASL user name\"},{\"value\":\"CONFLUENTCLOUD_KAFKA_SASLPASSWORD\",\"description\":\"SASL password\"}]}},{\"properties\":{\"targetService\":\"CONFLUENT.CLOUD/KAFKA\",\"clientType\":\"nodejs\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"CONFLUENTCLOUD_KAFKA_BOOTSTRAPSERVER\",\"description\":\"Kafka bootstrap server\"},{\"value\":\"CONFLUENTCLOUD_KAFKA_SASLUSERNAME\",\"description\":\"SASL user name\"},{\"value\":\"CONFLUENTCLOUD_KAFKA_SASLPASSWORD\",\"description\":\"SASL password\"}]}},{\"properties\":{\"targetService\":\"CONFLUENT.CLOUD/KAFKA\",\"clientType\":\"python\",\"authType\":\"secret\",\"names\":[{\"value\":\"CONFLUENTCLOUD_KAFKA_BOOTSTRAPSERVER\",\"description\":\"Kafka bootstrap server\"},{\"value\":\"CONFLUENTCLOUD_KAFKA_SASLUSERNAME\",\"description\":\"SASL user name\"},{\"value\":\"CONFLUENTCLOUD_KAFKA_SASLPASSWORD\",\"description\":\"SASL password\"}]}},{\"properties\":{\"targetService\":\"CONFLUENT.CLOUD/KAFKA\",\"clientType\":\"python\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"CONFLUENTCLOUD_KAFKA_BOOTSTRAPSERVER\",\"description\":\"Kafka bootstrap server\"},{\"value\":\"CONFLUENTCLOUD_KAFKA_SASLUSERNAME\",\"description\":\"SASL user name\"},{\"value\":\"CONFLUENTCLOUD_KAFKA_SASLPASSWORD\",\"description\":\"SASL password\"}]}},{\"properties\":{\"targetService\":\"CONFLUENT.CLOUD/KAFKA\",\"clientType\":\"go\",\"authType\":\"secret\",\"names\":[{\"value\":\"CONFLUENTCLOUD_KAFKA_BOOTSTRAPSERVER\",\"description\":\"Kafka bootstrap server\"},{\"value\":\"CONFLUENTCLOUD_KAFKA_SASLUSERNAME\",\"description\":\"SASL user name\"},{\"value\":\"CONFLUENTCLOUD_KAFKA_SASLPASSWORD\",\"description\":\"SASL password\"}]}},{\"properties\":{\"targetService\":\"CONFLUENT.CLOUD/KAFKA\",\"clientType\":\"go\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"CONFLUENTCLOUD_KAFKA_BOOTSTRAPSERVER\",\"description\":\"Kafka bootstrap server\"},{\"value\":\"CONFLUENTCLOUD_KAFKA_SASLUSERNAME\",\"description\":\"SASL user name\"},{\"value\":\"CONFLUENTCLOUD_KAFKA_SASLPASSWORD\",\"description\":\"SASL password\"}]}},{\"properties\":{\"targetService\":\"CONFLUENT.CLOUD/KAFKA\",\"clientType\":\"ruby\",\"authType\":\"secret\",\"names\":[{\"value\":\"CONFLUENTCLOUD_KAFKA_BOOTSTRAPSERVER\",\"description\":\"Kafka bootstrap server\"},{\"value\":\"CONFLUENTCLOUD_KAFKA_SASLUSERNAME\",\"description\":\"SASL user name\"},{\"value\":\"CONFLUENTCLOUD_KAFKA_SASLPASSWORD\",\"description\":\"SASL password\"}]}},{\"properties\":{\"targetService\":\"CONFLUENT.CLOUD/KAFKA\",\"clientType\":\"ruby\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"CONFLUENTCLOUD_KAFKA_BOOTSTRAPSERVER\",\"description\":\"Kafka bootstrap server\"},{\"value\":\"CONFLUENTCLOUD_KAFKA_SASLUSERNAME\",\"description\":\"SASL user name\"},{\"value\":\"CONFLUENTCLOUD_KAFKA_SASLPASSWORD\",\"description\":\"SASL password\"}]}},{\"properties\":{\"targetService\":\"CONFLUENT.CLOUD/KAFKA\",\"clientType\":\"springBoot\",\"authType\":\"secret\",\"names\":[{\"value\":\"spring.kafka.properties.bootstrap.servers\",\"description\":\"Kafka bootstrap server\"},{\"value\":\"spring.kafka.properties.sasl.jaas.config\",\"description\":\"SASL configuration\"}]}},{\"properties\":{\"targetService\":\"CONFLUENT.CLOUD/KAFKA\",\"clientType\":\"springBoot\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"spring.kafka.properties.bootstrap.servers\",\"description\":\"Kafka bootstrap server\"},{\"value\":\"spring.kafka.properties.sasl.jaas.config\",\"description\":\"SASL configuration\"}]}},{\"properties\":{\"targetService\":\"CONFLUENT.CLOUD/SCHEMA/REGISTRY\",\"clientType\":\"none\",\"authType\":\"secret\",\"names\":[{\"value\":\"CONFLUENTCLOUD_SCHEMAREGISTRY_URL\",\"description\":\"Kafka schema registry URL\"},{\"value\":\"CONFLUENTCLOUD_SCHEMAREGISTRY_USERINFO\",\"description\":\"user info including username and password\"}]}},{\"properties\":{\"targetService\":\"CONFLUENT.CLOUD/SCHEMA/REGISTRY\",\"clientType\":\"none\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"CONFLUENTCLOUD_SCHEMAREGISTRY_URL\",\"description\":\"Kafka schema registry URL\"},{\"value\":\"CONFLUENTCLOUD_SCHEMAREGISTRY_USERINFO\",\"description\":\"user info including username and password\"}]}},{\"properties\":{\"targetService\":\"CONFLUENT.CLOUD/SCHEMA/REGISTRY\",\"clientType\":\"java\",\"authType\":\"secret\",\"names\":[{\"value\":\"CONFLUENTCLOUD_SCHEMAREGISTRY_URL\",\"description\":\"Kafka schema registry URL\"},{\"value\":\"CONFLUENTCLOUD_SCHEMAREGISTRY_USERINFO\",\"description\":\"user info including username and password\"}]}},{\"properties\":{\"targetService\":\"CONFLUENT.CLOUD/SCHEMA/REGISTRY\",\"clientType\":\"java\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"CONFLUENTCLOUD_SCHEMAREGISTRY_URL\",\"description\":\"Kafka schema registry URL\"},{\"value\":\"CONFLUENTCLOUD_SCHEMAREGISTRY_USERINFO\",\"description\":\"user info including username and password\"}]}},{\"properties\":{\"targetService\":\"CONFLUENT.CLOUD/SCHEMA/REGISTRY\",\"clientType\":\"python\",\"authType\":\"secret\",\"names\":[{\"value\":\"CONFLUENTCLOUD_SCHEMAREGISTRY_URL\",\"description\":\"Kafka schema registry URL\"},{\"value\":\"CONFLUENTCLOUD_SCHEMAREGISTRY_USERINFO\",\"description\":\"user info including username and password\"}]}},{\"properties\":{\"targetService\":\"CONFLUENT.CLOUD/SCHEMA/REGISTRY\",\"clientType\":\"python\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"CONFLUENTCLOUD_SCHEMAREGISTRY_URL\",\"description\":\"Kafka schema registry URL\"},{\"value\":\"CONFLUENTCLOUD_SCHEMAREGISTRY_USERINFO\",\"description\":\"user info including username and password\"}]}},{\"properties\":{\"targetService\":\"CONFLUENT.CLOUD/SCHEMA/REGISTRY\",\"clientType\":\"springBoot\",\"authType\":\"secret\",\"names\":[{\"value\":\"spring.kafka.properties.schema.registry.url\",\"description\":\"Kafka schema registry URL\"},{\"value\":\"spring.kafka.properties.schema.registry.basic.auth.user.info\",\"description\":\"user info including username and password\"}]}},{\"properties\":{\"targetService\":\"CONFLUENT.CLOUD/SCHEMA/REGISTRY\",\"clientType\":\"springBoot\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"spring.kafka.properties.schema.registry.url\",\"description\":\"Kafka schema registry URL\"},{\"value\":\"spring.kafka.properties.schema.registry.basic.auth.user.info\",\"description\":\"user info including username and password\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.CACHE/REDIS/DATABASES\",\"clientType\":\"none\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_REDIS_HOST\",\"description\":\"Redis host\"},{\"value\":\"AZURE_REDIS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_REDIS_DATABASE\",\"description\":\"database name\"},{\"value\":\"AZURE_REDIS_SSL\",\"description\":\"SSL configuration\"},{\"value\":\"AZURE_REDIS_PASSWORD\",\"description\":\"password\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.CACHE/REDIS/DATABASES\",\"clientType\":\"none\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_REDIS_HOST\",\"description\":\"Redis host\"},{\"value\":\"AZURE_REDIS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_REDIS_DATABASE\",\"description\":\"database name\"},{\"value\":\"AZURE_REDIS_SSL\",\"description\":\"SSL configuration\"},{\"value\":\"AZURE_REDIS_PASSWORD\",\"description\":\"password\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.CACHE/REDIS/DATABASES\",\"clientType\":\"dotnet\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_REDIS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.CACHE/REDIS/DATABASES\",\"clientType\":\"dotnet\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_REDIS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.CACHE/REDIS/DATABASES\",\"clientType\":\"java\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_REDIS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.CACHE/REDIS/DATABASES\",\"clientType\":\"java\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_REDIS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.CACHE/REDIS/DATABASES\",\"clientType\":\"nodejs\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_REDIS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.CACHE/REDIS/DATABASES\",\"clientType\":\"nodejs\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_REDIS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.CACHE/REDIS/DATABASES\",\"clientType\":\"python\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_REDIS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.CACHE/REDIS/DATABASES\",\"clientType\":\"python\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_REDIS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.CACHE/REDIS/DATABASES\",\"clientType\":\"go\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_REDIS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.CACHE/REDIS/DATABASES\",\"clientType\":\"go\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_REDIS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.CACHE/REDIS/DATABASES\",\"clientType\":\"springBoot\",\"authType\":\"secret\",\"names\":[{\"value\":\"spring.redis.host\",\"description\":\"Redis host uri\"},{\"value\":\"spring.redis.port\",\"description\":\"database port\"},{\"value\":\"spring.redis.password\",\"description\":\"password\"},{\"value\":\"spring.redis.database\",\"description\":\"database name\"},{\"value\":\"spring.redis.ssl\",\"description\":\"SSL configuration\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.CACHE/REDIS/DATABASES\",\"clientType\":\"springBoot\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"spring.redis.host\",\"description\":\"Redis host uri\"},{\"value\":\"spring.redis.port\",\"description\":\"database port\"},{\"value\":\"spring.redis.password\",\"description\":\"password\"},{\"value\":\"spring.redis.database\",\"description\":\"database name\"},{\"value\":\"spring.redis.ssl\",\"description\":\"SSL configuration\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.CACHE/REDISENTERPRISE/DATABASES\",\"clientType\":\"none\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_REDIS_HOST\",\"description\":\"Redis host\"},{\"value\":\"AZURE_REDIS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_REDIS_DATABASE\",\"description\":\"database name\"},{\"value\":\"AZURE_REDIS_SSL\",\"description\":\"SSL configuration\"},{\"value\":\"AZURE_REDIS_PASSWORD\",\"description\":\"password\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.CACHE/REDISENTERPRISE/DATABASES\",\"clientType\":\"none\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_REDIS_HOST\",\"description\":\"Redis host\"},{\"value\":\"AZURE_REDIS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_REDIS_DATABASE\",\"description\":\"database name\"},{\"value\":\"AZURE_REDIS_SSL\",\"description\":\"SSL configuration\"},{\"value\":\"AZURE_REDIS_PASSWORD\",\"description\":\"password\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.CACHE/REDISENTERPRISE/DATABASES\",\"clientType\":\"dotnet\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_REDIS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.CACHE/REDISENTERPRISE/DATABASES\",\"clientType\":\"dotnet\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_REDIS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.CACHE/REDISENTERPRISE/DATABASES\",\"clientType\":\"java\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_REDIS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.CACHE/REDISENTERPRISE/DATABASES\",\"clientType\":\"java\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_REDIS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.CACHE/REDISENTERPRISE/DATABASES\",\"clientType\":\"nodejs\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_REDIS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.CACHE/REDISENTERPRISE/DATABASES\",\"clientType\":\"nodejs\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_REDIS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.CACHE/REDISENTERPRISE/DATABASES\",\"clientType\":\"python\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_REDIS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.CACHE/REDISENTERPRISE/DATABASES\",\"clientType\":\"python\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_REDIS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.CACHE/REDISENTERPRISE/DATABASES\",\"clientType\":\"go\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_REDIS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.CACHE/REDISENTERPRISE/DATABASES\",\"clientType\":\"go\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_REDIS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.CACHE/REDISENTERPRISE/DATABASES\",\"clientType\":\"springBoot\",\"authType\":\"secret\",\"names\":[{\"value\":\"spring.redis.host\",\"description\":\"Redis host uri\"},{\"value\":\"spring.redis.port\",\"description\":\"database port\"},{\"value\":\"spring.redis.password\",\"description\":\"password\"},{\"value\":\"spring.redis.database\",\"description\":\"database name\"},{\"value\":\"spring.redis.ssl\",\"description\":\"SSL configuration\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.CACHE/REDISENTERPRISE/DATABASES\",\"clientType\":\"springBoot\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"spring.redis.host\",\"description\":\"Redis host uri\"},{\"value\":\"spring.redis.port\",\"description\":\"database port\"},{\"value\":\"spring.redis.password\",\"description\":\"password\"},{\"value\":\"spring.redis.database\",\"description\":\"database name\"},{\"value\":\"spring.redis.ssl\",\"description\":\"SSL configuration\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS\",\"clientType\":\"none\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS\",\"clientType\":\"none\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS\",\"clientType\":\"none\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_COSMOS_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_COSMOS_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS\",\"clientType\":\"none\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_COSMOS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS\",\"clientType\":\"none\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_COSMOS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS\",\"clientType\":\"none\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS\",\"clientType\":\"dotnet\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS\",\"clientType\":\"dotnet\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS\",\"clientType\":\"dotnet\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_COSMOS_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_COSMOS_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS\",\"clientType\":\"dotnet\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_COSMOS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS\",\"clientType\":\"dotnet\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_COSMOS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS\",\"clientType\":\"dotnet\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS\",\"clientType\":\"java\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS\",\"clientType\":\"java\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS\",\"clientType\":\"java\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_COSMOS_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_COSMOS_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS\",\"clientType\":\"java\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_COSMOS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS\",\"clientType\":\"java\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_COSMOS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS\",\"clientType\":\"java\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS\",\"clientType\":\"nodejs\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS\",\"clientType\":\"nodejs\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS\",\"clientType\":\"nodejs\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_COSMOS_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_COSMOS_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS\",\"clientType\":\"nodejs\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_COSMOS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS\",\"clientType\":\"nodejs\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_COSMOS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS\",\"clientType\":\"nodejs\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS\",\"clientType\":\"python\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS\",\"clientType\":\"python\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS\",\"clientType\":\"python\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_COSMOS_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_COSMOS_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS\",\"clientType\":\"python\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_COSMOS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS\",\"clientType\":\"python\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_COSMOS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS\",\"clientType\":\"python\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS\",\"clientType\":\"go\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS\",\"clientType\":\"go\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS\",\"clientType\":\"go\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_COSMOS_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_COSMOS_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS\",\"clientType\":\"go\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_COSMOS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS\",\"clientType\":\"go\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_COSMOS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS\",\"clientType\":\"go\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS\",\"clientType\":\"php\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS\",\"clientType\":\"php\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS\",\"clientType\":\"php\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_COSMOS_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_COSMOS_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS\",\"clientType\":\"php\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_COSMOS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS\",\"clientType\":\"php\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_COSMOS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS\",\"clientType\":\"php\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/CASSANDRAKEYSPACES\",\"clientType\":\"none\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTKEYURL\",\"description\":\"url to list key\"},{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_CONTACTPOINT\",\"description\":\"contact point\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_KEYSPACE\",\"description\":\"Cassandra key space\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cassandra endpoint\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/CASSANDRAKEYSPACES\",\"clientType\":\"none\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTKEYURL\",\"description\":\"url to list key\"},{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_CONTACTPOINT\",\"description\":\"contact point\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_KEYSPACE\",\"description\":\"Cassandra key space\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cassandra endpoint\"},{\"value\":\"AZURE_COSMOS_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/CASSANDRAKEYSPACES\",\"clientType\":\"none\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTKEYURL\",\"description\":\"url to list key\"},{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_CONTACTPOINT\",\"description\":\"contact point\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_KEYSPACE\",\"description\":\"Cassandra key space\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cassandra endpoint\"},{\"value\":\"AZURE_COSMOS_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_COSMOS_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_COSMOS_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/CASSANDRAKEYSPACES\",\"clientType\":\"none\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_PASSWORD\",\"description\":\"password\"},{\"value\":\"AZURE_COSMOS_CONTACTPOINT\",\"description\":\"contact point\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_KEYSPACE\",\"description\":\"Cassandra key space\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/CASSANDRAKEYSPACES\",\"clientType\":\"none\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_PASSWORD\",\"description\":\"password\"},{\"value\":\"AZURE_COSMOS_CONTACTPOINT\",\"description\":\"contact point\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_KEYSPACE\",\"description\":\"Cassandra key space\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/CASSANDRAKEYSPACES\",\"clientType\":\"none\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTKEYURL\",\"description\":\"url to list key\"},{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_CONTACTPOINT\",\"description\":\"contact point\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_KEYSPACE\",\"description\":\"Cassandra key space\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cassandra endpoint\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/CASSANDRAKEYSPACES\",\"clientType\":\"dotnet\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTKEYURL\",\"description\":\"url to list key\"},{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_CONTACTPOINT\",\"description\":\"contact point\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_KEYSPACE\",\"description\":\"Cassandra key space\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cassandra endpoint\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/CASSANDRAKEYSPACES\",\"clientType\":\"dotnet\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTKEYURL\",\"description\":\"url to list key\"},{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_CONTACTPOINT\",\"description\":\"contact point\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_KEYSPACE\",\"description\":\"Cassandra key space\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cassandra endpoint\"},{\"value\":\"AZURE_COSMOS_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/CASSANDRAKEYSPACES\",\"clientType\":\"dotnet\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTKEYURL\",\"description\":\"url to list key\"},{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_CONTACTPOINT\",\"description\":\"contact point\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_KEYSPACE\",\"description\":\"Cassandra key space\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cassandra endpoint\"},{\"value\":\"AZURE_COSMOS_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_COSMOS_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_COSMOS_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/CASSANDRAKEYSPACES\",\"clientType\":\"dotnet\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_PASSWORD\",\"description\":\"password\"},{\"value\":\"AZURE_COSMOS_CONTACTPOINT\",\"description\":\"contact point\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_KEYSPACE\",\"description\":\"Cassandra key space\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/CASSANDRAKEYSPACES\",\"clientType\":\"dotnet\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_PASSWORD\",\"description\":\"password\"},{\"value\":\"AZURE_COSMOS_CONTACTPOINT\",\"description\":\"contact point\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_KEYSPACE\",\"description\":\"Cassandra key space\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/CASSANDRAKEYSPACES\",\"clientType\":\"dotnet\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTKEYURL\",\"description\":\"url to list key\"},{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_CONTACTPOINT\",\"description\":\"contact point\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_KEYSPACE\",\"description\":\"Cassandra key space\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cassandra endpoint\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/CASSANDRAKEYSPACES\",\"clientType\":\"java\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTKEYURL\",\"description\":\"url to list key\"},{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_CONTACTPOINT\",\"description\":\"contact point\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_KEYSPACE\",\"description\":\"Cassandra key space\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cassandra endpoint\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/CASSANDRAKEYSPACES\",\"clientType\":\"java\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTKEYURL\",\"description\":\"url to list key\"},{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_CONTACTPOINT\",\"description\":\"contact point\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_KEYSPACE\",\"description\":\"Cassandra key space\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cassandra endpoint\"},{\"value\":\"AZURE_COSMOS_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/CASSANDRAKEYSPACES\",\"clientType\":\"java\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTKEYURL\",\"description\":\"url to list key\"},{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_CONTACTPOINT\",\"description\":\"contact point\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_KEYSPACE\",\"description\":\"Cassandra key space\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cassandra endpoint\"},{\"value\":\"AZURE_COSMOS_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_COSMOS_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_COSMOS_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/CASSANDRAKEYSPACES\",\"clientType\":\"java\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_PASSWORD\",\"description\":\"password\"},{\"value\":\"AZURE_COSMOS_CONTACTPOINT\",\"description\":\"contact point\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_KEYSPACE\",\"description\":\"Cassandra key space\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/CASSANDRAKEYSPACES\",\"clientType\":\"java\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_PASSWORD\",\"description\":\"password\"},{\"value\":\"AZURE_COSMOS_CONTACTPOINT\",\"description\":\"contact point\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_KEYSPACE\",\"description\":\"Cassandra key space\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/CASSANDRAKEYSPACES\",\"clientType\":\"java\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTKEYURL\",\"description\":\"url to list key\"},{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_CONTACTPOINT\",\"description\":\"contact point\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_KEYSPACE\",\"description\":\"Cassandra key space\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cassandra endpoint\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/CASSANDRAKEYSPACES\",\"clientType\":\"nodejs\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTKEYURL\",\"description\":\"url to list key\"},{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_CONTACTPOINT\",\"description\":\"contact point\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_KEYSPACE\",\"description\":\"Cassandra key space\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cassandra endpoint\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/CASSANDRAKEYSPACES\",\"clientType\":\"nodejs\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTKEYURL\",\"description\":\"url to list key\"},{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_CONTACTPOINT\",\"description\":\"contact point\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_KEYSPACE\",\"description\":\"Cassandra key space\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cassandra endpoint\"},{\"value\":\"AZURE_COSMOS_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/CASSANDRAKEYSPACES\",\"clientType\":\"nodejs\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTKEYURL\",\"description\":\"url to list key\"},{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_CONTACTPOINT\",\"description\":\"contact point\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_KEYSPACE\",\"description\":\"Cassandra key space\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cassandra endpoint\"},{\"value\":\"AZURE_COSMOS_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_COSMOS_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_COSMOS_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/CASSANDRAKEYSPACES\",\"clientType\":\"nodejs\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_PASSWORD\",\"description\":\"password\"},{\"value\":\"AZURE_COSMOS_CONTACTPOINT\",\"description\":\"contact point\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_KEYSPACE\",\"description\":\"Cassandra key space\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/CASSANDRAKEYSPACES\",\"clientType\":\"nodejs\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_PASSWORD\",\"description\":\"password\"},{\"value\":\"AZURE_COSMOS_CONTACTPOINT\",\"description\":\"contact point\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_KEYSPACE\",\"description\":\"Cassandra key space\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/CASSANDRAKEYSPACES\",\"clientType\":\"nodejs\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTKEYURL\",\"description\":\"url to list key\"},{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_CONTACTPOINT\",\"description\":\"contact point\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_KEYSPACE\",\"description\":\"Cassandra key space\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cassandra endpoint\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/CASSANDRAKEYSPACES\",\"clientType\":\"python\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTKEYURL\",\"description\":\"url to list key\"},{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_CONTACTPOINT\",\"description\":\"contact point\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_KEYSPACE\",\"description\":\"Cassandra key space\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cassandra endpoint\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/CASSANDRAKEYSPACES\",\"clientType\":\"python\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTKEYURL\",\"description\":\"url to list key\"},{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_CONTACTPOINT\",\"description\":\"contact point\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_KEYSPACE\",\"description\":\"Cassandra key space\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cassandra endpoint\"},{\"value\":\"AZURE_COSMOS_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/CASSANDRAKEYSPACES\",\"clientType\":\"python\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTKEYURL\",\"description\":\"url to list key\"},{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_CONTACTPOINT\",\"description\":\"contact point\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_KEYSPACE\",\"description\":\"Cassandra key space\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cassandra endpoint\"},{\"value\":\"AZURE_COSMOS_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_COSMOS_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_COSMOS_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/CASSANDRAKEYSPACES\",\"clientType\":\"python\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_PASSWORD\",\"description\":\"password\"},{\"value\":\"AZURE_COSMOS_CONTACTPOINT\",\"description\":\"contact point\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_KEYSPACE\",\"description\":\"Cassandra key space\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/CASSANDRAKEYSPACES\",\"clientType\":\"python\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_PASSWORD\",\"description\":\"password\"},{\"value\":\"AZURE_COSMOS_CONTACTPOINT\",\"description\":\"contact point\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_KEYSPACE\",\"description\":\"Cassandra key space\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/CASSANDRAKEYSPACES\",\"clientType\":\"python\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTKEYURL\",\"description\":\"url to list key\"},{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_CONTACTPOINT\",\"description\":\"contact point\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_KEYSPACE\",\"description\":\"Cassandra key space\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cassandra endpoint\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/CASSANDRAKEYSPACES\",\"clientType\":\"go\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTKEYURL\",\"description\":\"url to list key\"},{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_CONTACTPOINT\",\"description\":\"contact point\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_KEYSPACE\",\"description\":\"Cassandra key space\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cassandra endpoint\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/CASSANDRAKEYSPACES\",\"clientType\":\"go\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTKEYURL\",\"description\":\"url to list key\"},{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_CONTACTPOINT\",\"description\":\"contact point\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_KEYSPACE\",\"description\":\"Cassandra key space\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cassandra endpoint\"},{\"value\":\"AZURE_COSMOS_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/CASSANDRAKEYSPACES\",\"clientType\":\"go\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTKEYURL\",\"description\":\"url to list key\"},{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_CONTACTPOINT\",\"description\":\"contact point\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_KEYSPACE\",\"description\":\"Cassandra key space\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cassandra endpoint\"},{\"value\":\"AZURE_COSMOS_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_COSMOS_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_COSMOS_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/CASSANDRAKEYSPACES\",\"clientType\":\"go\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_PASSWORD\",\"description\":\"password\"},{\"value\":\"AZURE_COSMOS_CONTACTPOINT\",\"description\":\"contact point\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_KEYSPACE\",\"description\":\"Cassandra key space\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/CASSANDRAKEYSPACES\",\"clientType\":\"go\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_PASSWORD\",\"description\":\"password\"},{\"value\":\"AZURE_COSMOS_CONTACTPOINT\",\"description\":\"contact point\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_KEYSPACE\",\"description\":\"Cassandra key space\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/CASSANDRAKEYSPACES\",\"clientType\":\"go\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTKEYURL\",\"description\":\"url to list key\"},{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_CONTACTPOINT\",\"description\":\"contact point\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_KEYSPACE\",\"description\":\"Cassandra key space\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cassandra endpoint\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/CASSANDRAKEYSPACES\",\"clientType\":\"springBoot\",\"authType\":\"secret\",\"names\":[{\"value\":\"spring.data.cassandra.contact-points\",\"description\":\"contact points\"},{\"value\":\"spring.data.cassandra.port\",\"description\":\"database port\"},{\"value\":\"spring.data.cassandra.keyspace-name\",\"description\":\"cassandra key space\"},{\"value\":\"spring.data.cassandra.username\",\"description\":\"user name\"},{\"value\":\"spring.data.cassandra.password\",\"description\":\"password\"},{\"value\":\"spring.data.cassandra.local-datacenter\",\"description\":\"local data center\"},{\"value\":\"spring.data.cassandra.ssl\",\"description\":\"Ssl configuration\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/CASSANDRAKEYSPACES\",\"clientType\":\"springBoot\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"spring.data.cassandra.contact-points\",\"description\":\"contact points\"},{\"value\":\"spring.data.cassandra.port\",\"description\":\"database port\"},{\"value\":\"spring.data.cassandra.keyspace-name\",\"description\":\"cassandra key space\"},{\"value\":\"spring.data.cassandra.username\",\"description\":\"user name\"},{\"value\":\"spring.data.cassandra.password\",\"description\":\"password\"},{\"value\":\"spring.data.cassandra.local-datacenter\",\"description\":\"local data center\"},{\"value\":\"spring.data.cassandra.ssl\",\"description\":\"Ssl configuration\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/GREMLINDATABASES/GRAPHS\",\"clientType\":\"none\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTKEYURL\",\"description\":\"url to list key\"},{\"value\":\"AZURE_COSMOS_HOSTNAME\",\"description\":\"Gremlin host name\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Gremlin endpoint\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/GREMLINDATABASES/GRAPHS\",\"clientType\":\"none\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTKEYURL\",\"description\":\"url to list key\"},{\"value\":\"AZURE_COSMOS_HOSTNAME\",\"description\":\"Gremlin host name\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Gremlin endpoint\"},{\"value\":\"AZURE_COSMOS_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/GREMLINDATABASES/GRAPHS\",\"clientType\":\"none\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTKEYURL\",\"description\":\"url to list key\"},{\"value\":\"AZURE_COSMOS_HOSTNAME\",\"description\":\"Gremlin host name\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Gremlin endpoint\"},{\"value\":\"AZURE_COSMOS_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_COSMOS_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_COSMOS_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/GREMLINDATABASES/GRAPHS\",\"clientType\":\"none\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_COSMOS_HOSTNAME\",\"description\":\"Gremlin host name\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_PASSWORD\",\"description\":\"password\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/GREMLINDATABASES/GRAPHS\",\"clientType\":\"none\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_COSMOS_HOSTNAME\",\"description\":\"Gremlin host name\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_PASSWORD\",\"description\":\"password\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/GREMLINDATABASES/GRAPHS\",\"clientType\":\"none\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTKEYURL\",\"description\":\"url to list key\"},{\"value\":\"AZURE_COSMOS_HOSTNAME\",\"description\":\"Gremlin host name\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Gremlin endpoint\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/GREMLINDATABASES/GRAPHS\",\"clientType\":\"dotnet\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTKEYURL\",\"description\":\"url to list key\"},{\"value\":\"AZURE_COSMOS_HOSTNAME\",\"description\":\"Gremlin host name\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Gremlin endpoint\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/GREMLINDATABASES/GRAPHS\",\"clientType\":\"dotnet\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTKEYURL\",\"description\":\"url to list key\"},{\"value\":\"AZURE_COSMOS_HOSTNAME\",\"description\":\"Gremlin host name\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Gremlin endpoint\"},{\"value\":\"AZURE_COSMOS_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/GREMLINDATABASES/GRAPHS\",\"clientType\":\"dotnet\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTKEYURL\",\"description\":\"url to list key\"},{\"value\":\"AZURE_COSMOS_HOSTNAME\",\"description\":\"Gremlin host name\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Gremlin endpoint\"},{\"value\":\"AZURE_COSMOS_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_COSMOS_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_COSMOS_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/GREMLINDATABASES/GRAPHS\",\"clientType\":\"dotnet\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_COSMOS_HOSTNAME\",\"description\":\"Gremlin host name\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_PASSWORD\",\"description\":\"password\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/GREMLINDATABASES/GRAPHS\",\"clientType\":\"dotnet\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_COSMOS_HOSTNAME\",\"description\":\"Gremlin host name\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_PASSWORD\",\"description\":\"password\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/GREMLINDATABASES/GRAPHS\",\"clientType\":\"dotnet\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTKEYURL\",\"description\":\"url to list key\"},{\"value\":\"AZURE_COSMOS_HOSTNAME\",\"description\":\"Gremlin host name\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Gremlin endpoint\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/GREMLINDATABASES/GRAPHS\",\"clientType\":\"java\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTKEYURL\",\"description\":\"url to list key\"},{\"value\":\"AZURE_COSMOS_HOSTNAME\",\"description\":\"Gremlin host name\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Gremlin endpoint\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/GREMLINDATABASES/GRAPHS\",\"clientType\":\"java\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTKEYURL\",\"description\":\"url to list key\"},{\"value\":\"AZURE_COSMOS_HOSTNAME\",\"description\":\"Gremlin host name\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Gremlin endpoint\"},{\"value\":\"AZURE_COSMOS_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/GREMLINDATABASES/GRAPHS\",\"clientType\":\"java\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTKEYURL\",\"description\":\"url to list key\"},{\"value\":\"AZURE_COSMOS_HOSTNAME\",\"description\":\"Gremlin host name\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Gremlin endpoint\"},{\"value\":\"AZURE_COSMOS_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_COSMOS_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_COSMOS_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/GREMLINDATABASES/GRAPHS\",\"clientType\":\"java\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_COSMOS_HOSTNAME\",\"description\":\"Gremlin host name\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_PASSWORD\",\"description\":\"password\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/GREMLINDATABASES/GRAPHS\",\"clientType\":\"java\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_COSMOS_HOSTNAME\",\"description\":\"Gremlin host name\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_PASSWORD\",\"description\":\"password\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/GREMLINDATABASES/GRAPHS\",\"clientType\":\"java\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTKEYURL\",\"description\":\"url to list key\"},{\"value\":\"AZURE_COSMOS_HOSTNAME\",\"description\":\"Gremlin host name\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Gremlin endpoint\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/GREMLINDATABASES/GRAPHS\",\"clientType\":\"nodejs\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTKEYURL\",\"description\":\"url to list key\"},{\"value\":\"AZURE_COSMOS_HOSTNAME\",\"description\":\"Gremlin host name\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Gremlin endpoint\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/GREMLINDATABASES/GRAPHS\",\"clientType\":\"nodejs\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTKEYURL\",\"description\":\"url to list key\"},{\"value\":\"AZURE_COSMOS_HOSTNAME\",\"description\":\"Gremlin host name\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Gremlin endpoint\"},{\"value\":\"AZURE_COSMOS_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/GREMLINDATABASES/GRAPHS\",\"clientType\":\"nodejs\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTKEYURL\",\"description\":\"url to list key\"},{\"value\":\"AZURE_COSMOS_HOSTNAME\",\"description\":\"Gremlin host name\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Gremlin endpoint\"},{\"value\":\"AZURE_COSMOS_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_COSMOS_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_COSMOS_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/GREMLINDATABASES/GRAPHS\",\"clientType\":\"nodejs\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_COSMOS_HOSTNAME\",\"description\":\"Gremlin host name\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_PASSWORD\",\"description\":\"password\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/GREMLINDATABASES/GRAPHS\",\"clientType\":\"nodejs\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_COSMOS_HOSTNAME\",\"description\":\"Gremlin host name\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_PASSWORD\",\"description\":\"password\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/GREMLINDATABASES/GRAPHS\",\"clientType\":\"nodejs\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTKEYURL\",\"description\":\"url to list key\"},{\"value\":\"AZURE_COSMOS_HOSTNAME\",\"description\":\"Gremlin host name\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Gremlin endpoint\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/GREMLINDATABASES/GRAPHS\",\"clientType\":\"python\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTKEYURL\",\"description\":\"url to list key\"},{\"value\":\"AZURE_COSMOS_HOSTNAME\",\"description\":\"Gremlin host name\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Gremlin endpoint\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/GREMLINDATABASES/GRAPHS\",\"clientType\":\"python\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTKEYURL\",\"description\":\"url to list key\"},{\"value\":\"AZURE_COSMOS_HOSTNAME\",\"description\":\"Gremlin host name\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Gremlin endpoint\"},{\"value\":\"AZURE_COSMOS_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/GREMLINDATABASES/GRAPHS\",\"clientType\":\"python\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTKEYURL\",\"description\":\"url to list key\"},{\"value\":\"AZURE_COSMOS_HOSTNAME\",\"description\":\"Gremlin host name\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Gremlin endpoint\"},{\"value\":\"AZURE_COSMOS_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_COSMOS_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_COSMOS_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/GREMLINDATABASES/GRAPHS\",\"clientType\":\"python\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_COSMOS_HOSTNAME\",\"description\":\"Gremlin host name\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_PASSWORD\",\"description\":\"password\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/GREMLINDATABASES/GRAPHS\",\"clientType\":\"python\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_COSMOS_HOSTNAME\",\"description\":\"Gremlin host name\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_PASSWORD\",\"description\":\"password\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/GREMLINDATABASES/GRAPHS\",\"clientType\":\"python\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTKEYURL\",\"description\":\"url to list key\"},{\"value\":\"AZURE_COSMOS_HOSTNAME\",\"description\":\"Gremlin host name\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Gremlin endpoint\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/GREMLINDATABASES/GRAPHS\",\"clientType\":\"go\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTKEYURL\",\"description\":\"url to list key\"},{\"value\":\"AZURE_COSMOS_HOSTNAME\",\"description\":\"Gremlin host name\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Gremlin endpoint\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/GREMLINDATABASES/GRAPHS\",\"clientType\":\"go\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTKEYURL\",\"description\":\"url to list key\"},{\"value\":\"AZURE_COSMOS_HOSTNAME\",\"description\":\"Gremlin host name\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Gremlin endpoint\"},{\"value\":\"AZURE_COSMOS_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/GREMLINDATABASES/GRAPHS\",\"clientType\":\"go\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTKEYURL\",\"description\":\"url to list key\"},{\"value\":\"AZURE_COSMOS_HOSTNAME\",\"description\":\"Gremlin host name\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Gremlin endpoint\"},{\"value\":\"AZURE_COSMOS_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_COSMOS_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_COSMOS_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/GREMLINDATABASES/GRAPHS\",\"clientType\":\"go\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_COSMOS_HOSTNAME\",\"description\":\"Gremlin host name\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_PASSWORD\",\"description\":\"password\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/GREMLINDATABASES/GRAPHS\",\"clientType\":\"go\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_COSMOS_HOSTNAME\",\"description\":\"Gremlin host name\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_PASSWORD\",\"description\":\"password\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/GREMLINDATABASES/GRAPHS\",\"clientType\":\"go\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTKEYURL\",\"description\":\"url to list key\"},{\"value\":\"AZURE_COSMOS_HOSTNAME\",\"description\":\"Gremlin host name\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Gremlin endpoint\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/GREMLINDATABASES/GRAPHS\",\"clientType\":\"php\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTKEYURL\",\"description\":\"url to list key\"},{\"value\":\"AZURE_COSMOS_HOSTNAME\",\"description\":\"Gremlin host name\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Gremlin endpoint\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/GREMLINDATABASES/GRAPHS\",\"clientType\":\"php\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTKEYURL\",\"description\":\"url to list key\"},{\"value\":\"AZURE_COSMOS_HOSTNAME\",\"description\":\"Gremlin host name\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Gremlin endpoint\"},{\"value\":\"AZURE_COSMOS_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/GREMLINDATABASES/GRAPHS\",\"clientType\":\"php\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTKEYURL\",\"description\":\"url to list key\"},{\"value\":\"AZURE_COSMOS_HOSTNAME\",\"description\":\"Gremlin host name\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Gremlin endpoint\"},{\"value\":\"AZURE_COSMOS_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_COSMOS_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_COSMOS_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/GREMLINDATABASES/GRAPHS\",\"clientType\":\"php\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_COSMOS_HOSTNAME\",\"description\":\"Gremlin host name\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_PASSWORD\",\"description\":\"password\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/GREMLINDATABASES/GRAPHS\",\"clientType\":\"php\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_COSMOS_HOSTNAME\",\"description\":\"Gremlin host name\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_PASSWORD\",\"description\":\"password\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/GREMLINDATABASES/GRAPHS\",\"clientType\":\"php\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTKEYURL\",\"description\":\"url to list key\"},{\"value\":\"AZURE_COSMOS_HOSTNAME\",\"description\":\"Gremlin host name\"},{\"value\":\"AZURE_COSMOS_PORT\",\"description\":\"database port\"},{\"value\":\"AZURE_COSMOS_USERNAME\",\"description\":\"user name\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Gremlin endpoint\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/MONGODBDATABASES\",\"clientType\":\"none\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/MONGODBDATABASES\",\"clientType\":\"none\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/MONGODBDATABASES\",\"clientType\":\"none\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_COSMOS_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_COSMOS_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/MONGODBDATABASES\",\"clientType\":\"none\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_COSMOS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/MONGODBDATABASES\",\"clientType\":\"none\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_COSMOS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/MONGODBDATABASES\",\"clientType\":\"none\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/MONGODBDATABASES\",\"clientType\":\"dotnet\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/MONGODBDATABASES\",\"clientType\":\"dotnet\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/MONGODBDATABASES\",\"clientType\":\"dotnet\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_COSMOS_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_COSMOS_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/MONGODBDATABASES\",\"clientType\":\"dotnet\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_COSMOS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/MONGODBDATABASES\",\"clientType\":\"dotnet\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_COSMOS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/MONGODBDATABASES\",\"clientType\":\"dotnet\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/MONGODBDATABASES\",\"clientType\":\"java\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/MONGODBDATABASES\",\"clientType\":\"java\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/MONGODBDATABASES\",\"clientType\":\"java\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_COSMOS_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_COSMOS_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/MONGODBDATABASES\",\"clientType\":\"java\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_COSMOS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/MONGODBDATABASES\",\"clientType\":\"java\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_COSMOS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/MONGODBDATABASES\",\"clientType\":\"java\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/MONGODBDATABASES\",\"clientType\":\"nodejs\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/MONGODBDATABASES\",\"clientType\":\"nodejs\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/MONGODBDATABASES\",\"clientType\":\"nodejs\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_COSMOS_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_COSMOS_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/MONGODBDATABASES\",\"clientType\":\"nodejs\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_COSMOS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/MONGODBDATABASES\",\"clientType\":\"nodejs\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_COSMOS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/MONGODBDATABASES\",\"clientType\":\"nodejs\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/MONGODBDATABASES\",\"clientType\":\"python\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/MONGODBDATABASES\",\"clientType\":\"python\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/MONGODBDATABASES\",\"clientType\":\"python\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_COSMOS_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_COSMOS_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/MONGODBDATABASES\",\"clientType\":\"python\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_COSMOS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/MONGODBDATABASES\",\"clientType\":\"python\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_COSMOS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/MONGODBDATABASES\",\"clientType\":\"python\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/MONGODBDATABASES\",\"clientType\":\"go\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/MONGODBDATABASES\",\"clientType\":\"go\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/MONGODBDATABASES\",\"clientType\":\"go\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_COSMOS_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_COSMOS_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/MONGODBDATABASES\",\"clientType\":\"go\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_COSMOS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/MONGODBDATABASES\",\"clientType\":\"go\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_COSMOS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/MONGODBDATABASES\",\"clientType\":\"go\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/MONGODBDATABASES\",\"clientType\":\"springBoot\",\"authType\":\"secret\",\"names\":[{\"value\":\"spring.data.mongodb.uri\",\"description\":\"Mongo host uri\"},{\"value\":\"spring.data.mongodb.database\",\"description\":\"database name\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/MONGODBDATABASES\",\"clientType\":\"springBoot\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"spring.data.mongodb.uri\",\"description\":\"Mongo host uri\"},{\"value\":\"spring.data.mongodb.database\",\"description\":\"database name\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/SQLDATABASES\",\"clientType\":\"none\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/SQLDATABASES\",\"clientType\":\"none\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/SQLDATABASES\",\"clientType\":\"none\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_COSMOS_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_COSMOS_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/SQLDATABASES\",\"clientType\":\"none\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_COSMOS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/SQLDATABASES\",\"clientType\":\"none\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_COSMOS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/SQLDATABASES\",\"clientType\":\"none\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/SQLDATABASES\",\"clientType\":\"dotnet\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/SQLDATABASES\",\"clientType\":\"dotnet\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/SQLDATABASES\",\"clientType\":\"dotnet\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_COSMOS_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_COSMOS_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/SQLDATABASES\",\"clientType\":\"dotnet\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_COSMOS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/SQLDATABASES\",\"clientType\":\"dotnet\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_COSMOS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/SQLDATABASES\",\"clientType\":\"dotnet\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/SQLDATABASES\",\"clientType\":\"java\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/SQLDATABASES\",\"clientType\":\"java\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/SQLDATABASES\",\"clientType\":\"java\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_COSMOS_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_COSMOS_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/SQLDATABASES\",\"clientType\":\"java\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_COSMOS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/SQLDATABASES\",\"clientType\":\"java\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_COSMOS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/SQLDATABASES\",\"clientType\":\"java\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/SQLDATABASES\",\"clientType\":\"nodejs\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/SQLDATABASES\",\"clientType\":\"nodejs\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/SQLDATABASES\",\"clientType\":\"nodejs\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_COSMOS_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_COSMOS_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/SQLDATABASES\",\"clientType\":\"nodejs\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_COSMOS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/SQLDATABASES\",\"clientType\":\"nodejs\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_COSMOS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/SQLDATABASES\",\"clientType\":\"nodejs\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/SQLDATABASES\",\"clientType\":\"python\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/SQLDATABASES\",\"clientType\":\"python\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/SQLDATABASES\",\"clientType\":\"python\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_COSMOS_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_COSMOS_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/SQLDATABASES\",\"clientType\":\"python\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_COSMOS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/SQLDATABASES\",\"clientType\":\"python\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_COSMOS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/SQLDATABASES\",\"clientType\":\"python\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/SQLDATABASES\",\"clientType\":\"go\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/SQLDATABASES\",\"clientType\":\"go\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/SQLDATABASES\",\"clientType\":\"go\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_COSMOS_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_COSMOS_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/SQLDATABASES\",\"clientType\":\"go\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_COSMOS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/SQLDATABASES\",\"clientType\":\"go\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_COSMOS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/SQLDATABASES\",\"clientType\":\"go\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/SQLDATABASES\",\"clientType\":\"springBoot\",\"authType\":\"secret\",\"names\":[{\"value\":\"azure.cosmos.uri\",\"description\":\"uri of Cosmos Sql database\"},{\"value\":\"azure.cosmos.key\",\"description\":\"access key\"},{\"value\":\"azure.cosmos.database\",\"description\":\"database name\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/SQLDATABASES\",\"clientType\":\"springBoot\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"azure.cosmos.uri\",\"description\":\"uri of Cosmos Sql database\"},{\"value\":\"azure.cosmos.key\",\"description\":\"access key\"},{\"value\":\"azure.cosmos.database\",\"description\":\"database name\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/TABLES\",\"clientType\":\"none\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/TABLES\",\"clientType\":\"none\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/TABLES\",\"clientType\":\"none\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_COSMOS_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_COSMOS_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/TABLES\",\"clientType\":\"none\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_COSMOS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/TABLES\",\"clientType\":\"none\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_COSMOS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/TABLES\",\"clientType\":\"none\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/TABLES\",\"clientType\":\"dotnet\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/TABLES\",\"clientType\":\"dotnet\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/TABLES\",\"clientType\":\"dotnet\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_COSMOS_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_COSMOS_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/TABLES\",\"clientType\":\"dotnet\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_COSMOS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/TABLES\",\"clientType\":\"dotnet\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_COSMOS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/TABLES\",\"clientType\":\"dotnet\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/TABLES\",\"clientType\":\"java\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/TABLES\",\"clientType\":\"java\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/TABLES\",\"clientType\":\"java\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_COSMOS_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_COSMOS_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/TABLES\",\"clientType\":\"java\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_COSMOS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/TABLES\",\"clientType\":\"java\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_COSMOS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/TABLES\",\"clientType\":\"java\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/TABLES\",\"clientType\":\"nodejs\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/TABLES\",\"clientType\":\"nodejs\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/TABLES\",\"clientType\":\"nodejs\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_COSMOS_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_COSMOS_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/TABLES\",\"clientType\":\"nodejs\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_COSMOS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/TABLES\",\"clientType\":\"nodejs\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_COSMOS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/TABLES\",\"clientType\":\"nodejs\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/TABLES\",\"clientType\":\"python\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/TABLES\",\"clientType\":\"python\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/TABLES\",\"clientType\":\"python\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_COSMOS_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_COSMOS_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/TABLES\",\"clientType\":\"python\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_COSMOS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/TABLES\",\"clientType\":\"python\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_COSMOS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/TABLES\",\"clientType\":\"python\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/TABLES\",\"clientType\":\"go\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/TABLES\",\"clientType\":\"go\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/TABLES\",\"clientType\":\"go\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_COSMOS_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_COSMOS_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/TABLES\",\"clientType\":\"go\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_COSMOS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/TABLES\",\"clientType\":\"go\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_COSMOS_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/TABLES\",\"clientType\":\"go\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_COSMOS_LISTCONNECTIONSTRINGURL\",\"description\":\"url to list connection string\"},{\"value\":\"AZURE_COSMOS_RESOURCEENDPOINT\",\"description\":\"Cosmos DB endpoint\"},{\"value\":\"AZURE_COSMOS_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS\",\"clientType\":\"none\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_STORAGEACCOUNT_BLOBENDPOINT\",\"description\":\"Storage Blob endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_QUEUEENDPOINT\",\"description\":\"Storage Queue endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_TABLEENDPOINT\",\"description\":\"Storage Table endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_FILEENDPOINT\",\"description\":\"Storage File endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS\",\"clientType\":\"none\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_STORAGEACCOUNT_BLOBENDPOINT\",\"description\":\"Storage Blob endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_QUEUEENDPOINT\",\"description\":\"Storage Queue endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_TABLEENDPOINT\",\"description\":\"Storage Table endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_FILEENDPOINT\",\"description\":\"Storage File endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_STORAGEACCOUNT_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS\",\"clientType\":\"none\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_STORAGEACCOUNT_BLOBENDPOINT\",\"description\":\"Storage Blob endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_QUEUEENDPOINT\",\"description\":\"Storage Queue endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_TABLEENDPOINT\",\"description\":\"Storage Table endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_FILEENDPOINT\",\"description\":\"Storage File endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_STORAGEACCOUNT_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_STORAGEACCOUNT_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_STORAGEACCOUNT_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS\",\"clientType\":\"none\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_STORAGEACCOUNT_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS\",\"clientType\":\"none\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_STORAGEACCOUNT_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS\",\"clientType\":\"none\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_STORAGEACCOUNT_BLOBENDPOINT\",\"description\":\"Storage Blob endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_QUEUEENDPOINT\",\"description\":\"Storage Queue endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_TABLEENDPOINT\",\"description\":\"Storage Table endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_FILEENDPOINT\",\"description\":\"Storage File endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS\",\"clientType\":\"dotnet\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_STORAGEACCOUNT_BLOBENDPOINT\",\"description\":\"Storage Blob endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_QUEUEENDPOINT\",\"description\":\"Storage Queue endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_TABLEENDPOINT\",\"description\":\"Storage Table endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_FILEENDPOINT\",\"description\":\"Storage File endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS\",\"clientType\":\"dotnet\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_STORAGEACCOUNT_BLOBENDPOINT\",\"description\":\"Storage Blob endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_QUEUEENDPOINT\",\"description\":\"Storage Queue endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_TABLEENDPOINT\",\"description\":\"Storage Table endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_FILEENDPOINT\",\"description\":\"Storage File endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_STORAGEACCOUNT_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS\",\"clientType\":\"dotnet\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_STORAGEACCOUNT_BLOBENDPOINT\",\"description\":\"Storage Blob endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_QUEUEENDPOINT\",\"description\":\"Storage Queue endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_TABLEENDPOINT\",\"description\":\"Storage Table endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_FILEENDPOINT\",\"description\":\"Storage File endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_STORAGEACCOUNT_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_STORAGEACCOUNT_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_STORAGEACCOUNT_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS\",\"clientType\":\"dotnet\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_STORAGEACCOUNT_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS\",\"clientType\":\"dotnet\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_STORAGEACCOUNT_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS\",\"clientType\":\"dotnet\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_STORAGEACCOUNT_BLOBENDPOINT\",\"description\":\"Storage Blob endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_QUEUEENDPOINT\",\"description\":\"Storage Queue endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_TABLEENDPOINT\",\"description\":\"Storage Table endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_FILEENDPOINT\",\"description\":\"Storage File endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS\",\"clientType\":\"java\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_STORAGEACCOUNT_BLOBENDPOINT\",\"description\":\"Storage Blob endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_QUEUEENDPOINT\",\"description\":\"Storage Queue endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_TABLEENDPOINT\",\"description\":\"Storage Table endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_FILEENDPOINT\",\"description\":\"Storage File endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS\",\"clientType\":\"java\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_STORAGEACCOUNT_BLOBENDPOINT\",\"description\":\"Storage Blob endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_QUEUEENDPOINT\",\"description\":\"Storage Queue endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_TABLEENDPOINT\",\"description\":\"Storage Table endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_FILEENDPOINT\",\"description\":\"Storage File endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_STORAGEACCOUNT_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS\",\"clientType\":\"java\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_STORAGEACCOUNT_BLOBENDPOINT\",\"description\":\"Storage Blob endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_QUEUEENDPOINT\",\"description\":\"Storage Queue endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_TABLEENDPOINT\",\"description\":\"Storage Table endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_FILEENDPOINT\",\"description\":\"Storage File endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_STORAGEACCOUNT_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_STORAGEACCOUNT_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_STORAGEACCOUNT_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS\",\"clientType\":\"java\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_STORAGEACCOUNT_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS\",\"clientType\":\"java\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_STORAGEACCOUNT_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS\",\"clientType\":\"java\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_STORAGEACCOUNT_BLOBENDPOINT\",\"description\":\"Storage Blob endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_QUEUEENDPOINT\",\"description\":\"Storage Queue endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_TABLEENDPOINT\",\"description\":\"Storage Table endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_FILEENDPOINT\",\"description\":\"Storage File endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS\",\"clientType\":\"nodejs\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_STORAGEACCOUNT_BLOBENDPOINT\",\"description\":\"Storage Blob endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_QUEUEENDPOINT\",\"description\":\"Storage Queue endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_TABLEENDPOINT\",\"description\":\"Storage Table endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_FILEENDPOINT\",\"description\":\"Storage File endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS\",\"clientType\":\"nodejs\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_STORAGEACCOUNT_BLOBENDPOINT\",\"description\":\"Storage Blob endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_QUEUEENDPOINT\",\"description\":\"Storage Queue endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_TABLEENDPOINT\",\"description\":\"Storage Table endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_FILEENDPOINT\",\"description\":\"Storage File endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_STORAGEACCOUNT_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS\",\"clientType\":\"nodejs\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_STORAGEACCOUNT_BLOBENDPOINT\",\"description\":\"Storage Blob endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_QUEUEENDPOINT\",\"description\":\"Storage Queue endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_TABLEENDPOINT\",\"description\":\"Storage Table endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_FILEENDPOINT\",\"description\":\"Storage File endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_STORAGEACCOUNT_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_STORAGEACCOUNT_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_STORAGEACCOUNT_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS\",\"clientType\":\"nodejs\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_STORAGEACCOUNT_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS\",\"clientType\":\"nodejs\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_STORAGEACCOUNT_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS\",\"clientType\":\"nodejs\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_STORAGEACCOUNT_BLOBENDPOINT\",\"description\":\"Storage Blob endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_QUEUEENDPOINT\",\"description\":\"Storage Queue endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_TABLEENDPOINT\",\"description\":\"Storage Table endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_FILEENDPOINT\",\"description\":\"Storage File endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS\",\"clientType\":\"python\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_STORAGEACCOUNT_BLOBENDPOINT\",\"description\":\"Storage Blob endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_QUEUEENDPOINT\",\"description\":\"Storage Queue endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_TABLEENDPOINT\",\"description\":\"Storage Table endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_FILEENDPOINT\",\"description\":\"Storage File endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS\",\"clientType\":\"python\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_STORAGEACCOUNT_BLOBENDPOINT\",\"description\":\"Storage Blob endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_QUEUEENDPOINT\",\"description\":\"Storage Queue endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_TABLEENDPOINT\",\"description\":\"Storage Table endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_FILEENDPOINT\",\"description\":\"Storage File endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_STORAGEACCOUNT_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS\",\"clientType\":\"python\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_STORAGEACCOUNT_BLOBENDPOINT\",\"description\":\"Storage Blob endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_QUEUEENDPOINT\",\"description\":\"Storage Queue endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_TABLEENDPOINT\",\"description\":\"Storage Table endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_FILEENDPOINT\",\"description\":\"Storage File endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_STORAGEACCOUNT_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_STORAGEACCOUNT_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_STORAGEACCOUNT_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS\",\"clientType\":\"python\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_STORAGEACCOUNT_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS\",\"clientType\":\"python\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_STORAGEACCOUNT_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS\",\"clientType\":\"python\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_STORAGEACCOUNT_BLOBENDPOINT\",\"description\":\"Storage Blob endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_QUEUEENDPOINT\",\"description\":\"Storage Queue endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_TABLEENDPOINT\",\"description\":\"Storage Table endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_FILEENDPOINT\",\"description\":\"Storage File endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS\",\"clientType\":\"go\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_STORAGEACCOUNT_BLOBENDPOINT\",\"description\":\"Storage Blob endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_QUEUEENDPOINT\",\"description\":\"Storage Queue endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_TABLEENDPOINT\",\"description\":\"Storage Table endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_FILEENDPOINT\",\"description\":\"Storage File endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS\",\"clientType\":\"go\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_STORAGEACCOUNT_BLOBENDPOINT\",\"description\":\"Storage Blob endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_QUEUEENDPOINT\",\"description\":\"Storage Queue endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_TABLEENDPOINT\",\"description\":\"Storage Table endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_FILEENDPOINT\",\"description\":\"Storage File endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_STORAGEACCOUNT_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS\",\"clientType\":\"go\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_STORAGEACCOUNT_BLOBENDPOINT\",\"description\":\"Storage Blob endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_QUEUEENDPOINT\",\"description\":\"Storage Queue endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_TABLEENDPOINT\",\"description\":\"Storage Table endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_FILEENDPOINT\",\"description\":\"Storage File endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_STORAGEACCOUNT_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_STORAGEACCOUNT_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_STORAGEACCOUNT_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS\",\"clientType\":\"go\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_STORAGEACCOUNT_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS\",\"clientType\":\"go\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_STORAGEACCOUNT_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS\",\"clientType\":\"go\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_STORAGEACCOUNT_BLOBENDPOINT\",\"description\":\"Storage Blob endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_QUEUEENDPOINT\",\"description\":\"Storage Queue endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_TABLEENDPOINT\",\"description\":\"Storage Table endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_FILEENDPOINT\",\"description\":\"Storage File endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS\",\"clientType\":\"django\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_STORAGEACCOUNT_BLOBENDPOINT\",\"description\":\"Storage Blob endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_QUEUEENDPOINT\",\"description\":\"Storage Queue endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_TABLEENDPOINT\",\"description\":\"Storage Table endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_FILEENDPOINT\",\"description\":\"Storage File endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS\",\"clientType\":\"django\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_STORAGEACCOUNT_BLOBENDPOINT\",\"description\":\"Storage Blob endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_QUEUEENDPOINT\",\"description\":\"Storage Queue endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_TABLEENDPOINT\",\"description\":\"Storage Table endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_FILEENDPOINT\",\"description\":\"Storage File endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_STORAGEACCOUNT_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS\",\"clientType\":\"django\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_STORAGEACCOUNT_BLOBENDPOINT\",\"description\":\"Storage Blob endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_QUEUEENDPOINT\",\"description\":\"Storage Queue endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_TABLEENDPOINT\",\"description\":\"Storage Table endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_FILEENDPOINT\",\"description\":\"Storage File endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_STORAGEACCOUNT_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_STORAGEACCOUNT_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_STORAGEACCOUNT_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS\",\"clientType\":\"django\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_STORAGEACCOUNT_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS\",\"clientType\":\"django\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_STORAGEACCOUNT_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS\",\"clientType\":\"django\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_STORAGEACCOUNT_BLOBENDPOINT\",\"description\":\"Storage Blob endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_QUEUEENDPOINT\",\"description\":\"Storage Queue endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_TABLEENDPOINT\",\"description\":\"Storage Table endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_FILEENDPOINT\",\"description\":\"Storage File endpoint\"},{\"value\":\"AZURE_STORAGEACCOUNT_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS\",\"clientType\":\"springBoot\",\"authType\":\"secret\",\"names\":[{\"value\":\"azure.storage.blob-endpoint\",\"description\":\"Storage Blob endpoint\"},{\"value\":\"azure.storage.file-endpoint\",\"description\":\"Storage File endpoint\"},{\"value\":\"azure.storage.account-name\",\"description\":\"Storage account name\"},{\"value\":\"azure.storage.account-key\",\"description\":\"access key\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS\",\"clientType\":\"springBoot\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"azure.storage.blob-endpoint\",\"description\":\"Storage Blob endpoint\"},{\"value\":\"azure.storage.file-endpoint\",\"description\":\"Storage File endpoint\"},{\"value\":\"azure.storage.account-name\",\"description\":\"Storage account name\"},{\"value\":\"azure.storage.account-key\",\"description\":\"access key\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/BLOBSERVICES\",\"clientType\":\"none\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_STORAGEBLOB_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGEBLOB_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/BLOBSERVICES\",\"clientType\":\"none\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_STORAGEBLOB_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGEBLOB_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_STORAGEBLOB_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/BLOBSERVICES\",\"clientType\":\"none\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_STORAGEBLOB_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGEBLOB_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_STORAGEBLOB_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_STORAGEBLOB_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_STORAGEBLOB_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/BLOBSERVICES\",\"clientType\":\"none\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_STORAGEBLOB_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/BLOBSERVICES\",\"clientType\":\"none\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_STORAGEBLOB_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/BLOBSERVICES\",\"clientType\":\"none\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_STORAGEBLOB_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGEBLOB_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/BLOBSERVICES\",\"clientType\":\"dotnet\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_STORAGEBLOB_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGEBLOB_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/BLOBSERVICES\",\"clientType\":\"dotnet\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_STORAGEBLOB_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGEBLOB_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_STORAGEBLOB_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/BLOBSERVICES\",\"clientType\":\"dotnet\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_STORAGEBLOB_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGEBLOB_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_STORAGEBLOB_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_STORAGEBLOB_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_STORAGEBLOB_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/BLOBSERVICES\",\"clientType\":\"dotnet\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_STORAGEBLOB_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/BLOBSERVICES\",\"clientType\":\"dotnet\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_STORAGEBLOB_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/BLOBSERVICES\",\"clientType\":\"dotnet\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_STORAGEBLOB_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGEBLOB_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/BLOBSERVICES\",\"clientType\":\"java\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_STORAGEBLOB_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGEBLOB_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/BLOBSERVICES\",\"clientType\":\"java\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_STORAGEBLOB_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGEBLOB_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_STORAGEBLOB_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/BLOBSERVICES\",\"clientType\":\"java\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_STORAGEBLOB_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGEBLOB_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_STORAGEBLOB_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_STORAGEBLOB_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_STORAGEBLOB_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/BLOBSERVICES\",\"clientType\":\"java\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_STORAGEBLOB_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/BLOBSERVICES\",\"clientType\":\"java\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_STORAGEBLOB_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/BLOBSERVICES\",\"clientType\":\"java\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_STORAGEBLOB_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGEBLOB_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/BLOBSERVICES\",\"clientType\":\"nodejs\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_STORAGEBLOB_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGEBLOB_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/BLOBSERVICES\",\"clientType\":\"nodejs\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_STORAGEBLOB_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGEBLOB_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_STORAGEBLOB_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/BLOBSERVICES\",\"clientType\":\"nodejs\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_STORAGEBLOB_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGEBLOB_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_STORAGEBLOB_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_STORAGEBLOB_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_STORAGEBLOB_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/BLOBSERVICES\",\"clientType\":\"nodejs\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_STORAGEBLOB_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/BLOBSERVICES\",\"clientType\":\"nodejs\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_STORAGEBLOB_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/BLOBSERVICES\",\"clientType\":\"nodejs\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_STORAGEBLOB_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGEBLOB_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/BLOBSERVICES\",\"clientType\":\"python\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_STORAGEBLOB_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGEBLOB_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/BLOBSERVICES\",\"clientType\":\"python\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_STORAGEBLOB_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGEBLOB_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_STORAGEBLOB_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/BLOBSERVICES\",\"clientType\":\"python\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_STORAGEBLOB_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGEBLOB_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_STORAGEBLOB_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_STORAGEBLOB_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_STORAGEBLOB_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/BLOBSERVICES\",\"clientType\":\"python\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_STORAGEBLOB_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/BLOBSERVICES\",\"clientType\":\"python\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_STORAGEBLOB_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/BLOBSERVICES\",\"clientType\":\"python\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_STORAGEBLOB_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGEBLOB_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/BLOBSERVICES\",\"clientType\":\"go\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_STORAGEBLOB_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGEBLOB_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/BLOBSERVICES\",\"clientType\":\"go\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_STORAGEBLOB_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGEBLOB_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_STORAGEBLOB_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/BLOBSERVICES\",\"clientType\":\"go\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_STORAGEBLOB_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGEBLOB_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_STORAGEBLOB_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_STORAGEBLOB_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_STORAGEBLOB_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/BLOBSERVICES\",\"clientType\":\"go\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_STORAGEBLOB_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/BLOBSERVICES\",\"clientType\":\"go\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_STORAGEBLOB_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/BLOBSERVICES\",\"clientType\":\"go\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_STORAGEBLOB_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGEBLOB_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/BLOBSERVICES\",\"clientType\":\"django\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_STORAGEBLOB_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGEBLOB_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/BLOBSERVICES\",\"clientType\":\"django\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_STORAGEBLOB_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGEBLOB_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_STORAGEBLOB_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/BLOBSERVICES\",\"clientType\":\"django\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_STORAGEBLOB_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGEBLOB_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_STORAGEBLOB_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_STORAGEBLOB_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_STORAGEBLOB_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/BLOBSERVICES\",\"clientType\":\"django\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_STORAGEBLOB_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/BLOBSERVICES\",\"clientType\":\"django\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_STORAGEBLOB_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/BLOBSERVICES\",\"clientType\":\"django\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_STORAGEBLOB_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGEBLOB_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/BLOBSERVICES\",\"clientType\":\"springBoot\",\"authType\":\"secret\",\"names\":[{\"value\":\"azure.storage.blob-endpoint\",\"description\":\"Storage Blob endpoint\"},{\"value\":\"azure.storage.file-endpoint\",\"description\":\"Storage File endpoint\"},{\"value\":\"azure.storage.account-name\",\"description\":\"Storage account name\"},{\"value\":\"azure.storage.account-key\",\"description\":\"access key\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/BLOBSERVICES\",\"clientType\":\"springBoot\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"azure.storage.blob-endpoint\",\"description\":\"Storage Blob endpoint\"},{\"value\":\"azure.storage.file-endpoint\",\"description\":\"Storage File endpoint\"},{\"value\":\"azure.storage.account-name\",\"description\":\"Storage account name\"},{\"value\":\"azure.storage.account-key\",\"description\":\"access key\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/FILESERVICES\",\"clientType\":\"none\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_STORAGEFILE_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/FILESERVICES\",\"clientType\":\"none\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_STORAGEFILE_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/FILESERVICES\",\"clientType\":\"dotnet\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_STORAGEFILE_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/FILESERVICES\",\"clientType\":\"dotnet\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_STORAGEFILE_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/FILESERVICES\",\"clientType\":\"java\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_STORAGEFILE_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/FILESERVICES\",\"clientType\":\"java\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_STORAGEFILE_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/FILESERVICES\",\"clientType\":\"nodejs\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_STORAGEFILE_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/FILESERVICES\",\"clientType\":\"nodejs\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_STORAGEFILE_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/FILESERVICES\",\"clientType\":\"python\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_STORAGEFILE_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/FILESERVICES\",\"clientType\":\"python\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_STORAGEFILE_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/FILESERVICES\",\"clientType\":\"go\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_STORAGEFILE_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/FILESERVICES\",\"clientType\":\"go\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_STORAGEFILE_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/FILESERVICES\",\"clientType\":\"php\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_STORAGEFILE_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/FILESERVICES\",\"clientType\":\"php\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_STORAGEFILE_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/FILESERVICES\",\"clientType\":\"ruby\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_STORAGEFILE_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/FILESERVICES\",\"clientType\":\"ruby\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_STORAGEFILE_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/FILESERVICES\",\"clientType\":\"springBoot\",\"authType\":\"secret\",\"names\":[{\"value\":\"azure.storage.blob-endpoint\",\"description\":\"Storage Blob endpoint\"},{\"value\":\"azure.storage.file-endpoint\",\"description\":\"Storage File endpoint\"},{\"value\":\"azure.storage.account-name\",\"description\":\"Storage account name\"},{\"value\":\"azure.storage.account-key\",\"description\":\"access key\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/FILESERVICES\",\"clientType\":\"springBoot\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"azure.storage.blob-endpoint\",\"description\":\"Storage Blob endpoint\"},{\"value\":\"azure.storage.file-endpoint\",\"description\":\"Storage File endpoint\"},{\"value\":\"azure.storage.account-name\",\"description\":\"Storage account name\"},{\"value\":\"azure.storage.account-key\",\"description\":\"access key\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/QUEUESERVICES\",\"clientType\":\"none\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_STORAGEQUEUE_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGEQUEUE_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/QUEUESERVICES\",\"clientType\":\"none\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_STORAGEQUEUE_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGEQUEUE_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_STORAGEQUEUE_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/QUEUESERVICES\",\"clientType\":\"none\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_STORAGEQUEUE_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGEQUEUE_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_STORAGEQUEUE_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_STORAGEQUEUE_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_STORAGEQUEUE_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/QUEUESERVICES\",\"clientType\":\"none\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_STORAGEQUEUE_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/QUEUESERVICES\",\"clientType\":\"none\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_STORAGEQUEUE_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/QUEUESERVICES\",\"clientType\":\"none\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_STORAGEQUEUE_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGEQUEUE_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/QUEUESERVICES\",\"clientType\":\"dotnet\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_STORAGEQUEUE_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGEQUEUE_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/QUEUESERVICES\",\"clientType\":\"dotnet\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_STORAGEQUEUE_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGEQUEUE_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_STORAGEQUEUE_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/QUEUESERVICES\",\"clientType\":\"dotnet\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_STORAGEQUEUE_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGEQUEUE_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_STORAGEQUEUE_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_STORAGEQUEUE_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_STORAGEQUEUE_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/QUEUESERVICES\",\"clientType\":\"dotnet\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_STORAGEQUEUE_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/QUEUESERVICES\",\"clientType\":\"dotnet\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_STORAGEQUEUE_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/QUEUESERVICES\",\"clientType\":\"dotnet\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_STORAGEQUEUE_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGEQUEUE_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/QUEUESERVICES\",\"clientType\":\"java\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_STORAGEQUEUE_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGEQUEUE_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/QUEUESERVICES\",\"clientType\":\"java\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_STORAGEQUEUE_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGEQUEUE_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_STORAGEQUEUE_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/QUEUESERVICES\",\"clientType\":\"java\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_STORAGEQUEUE_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGEQUEUE_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_STORAGEQUEUE_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_STORAGEQUEUE_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_STORAGEQUEUE_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/QUEUESERVICES\",\"clientType\":\"java\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_STORAGEQUEUE_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/QUEUESERVICES\",\"clientType\":\"java\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_STORAGEQUEUE_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/QUEUESERVICES\",\"clientType\":\"java\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_STORAGEQUEUE_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGEQUEUE_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/QUEUESERVICES\",\"clientType\":\"nodejs\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_STORAGEQUEUE_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGEQUEUE_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/QUEUESERVICES\",\"clientType\":\"nodejs\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_STORAGEQUEUE_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGEQUEUE_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_STORAGEQUEUE_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/QUEUESERVICES\",\"clientType\":\"nodejs\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_STORAGEQUEUE_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGEQUEUE_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_STORAGEQUEUE_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_STORAGEQUEUE_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_STORAGEQUEUE_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/QUEUESERVICES\",\"clientType\":\"nodejs\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_STORAGEQUEUE_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/QUEUESERVICES\",\"clientType\":\"nodejs\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_STORAGEQUEUE_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/QUEUESERVICES\",\"clientType\":\"nodejs\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_STORAGEQUEUE_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGEQUEUE_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/QUEUESERVICES\",\"clientType\":\"python\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_STORAGEQUEUE_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGEQUEUE_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/QUEUESERVICES\",\"clientType\":\"python\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_STORAGEQUEUE_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGEQUEUE_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_STORAGEQUEUE_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/QUEUESERVICES\",\"clientType\":\"python\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_STORAGEQUEUE_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGEQUEUE_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_STORAGEQUEUE_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_STORAGEQUEUE_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_STORAGEQUEUE_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/QUEUESERVICES\",\"clientType\":\"python\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_STORAGEQUEUE_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/QUEUESERVICES\",\"clientType\":\"python\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_STORAGEQUEUE_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/QUEUESERVICES\",\"clientType\":\"python\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_STORAGEQUEUE_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGEQUEUE_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/QUEUESERVICES\",\"clientType\":\"go\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_STORAGEQUEUE_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGEQUEUE_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/QUEUESERVICES\",\"clientType\":\"go\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_STORAGEQUEUE_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGEQUEUE_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_STORAGEQUEUE_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/QUEUESERVICES\",\"clientType\":\"go\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_STORAGEQUEUE_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGEQUEUE_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_STORAGEQUEUE_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_STORAGEQUEUE_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_STORAGEQUEUE_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/QUEUESERVICES\",\"clientType\":\"go\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_STORAGEQUEUE_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/QUEUESERVICES\",\"clientType\":\"go\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_STORAGEQUEUE_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/QUEUESERVICES\",\"clientType\":\"go\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_STORAGEQUEUE_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGEQUEUE_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/QUEUESERVICES\",\"clientType\":\"django\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_STORAGEQUEUE_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGEQUEUE_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/QUEUESERVICES\",\"clientType\":\"django\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_STORAGEQUEUE_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGEQUEUE_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_STORAGEQUEUE_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/QUEUESERVICES\",\"clientType\":\"django\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_STORAGEQUEUE_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGEQUEUE_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_STORAGEQUEUE_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_STORAGEQUEUE_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_STORAGEQUEUE_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/QUEUESERVICES\",\"clientType\":\"django\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_STORAGEQUEUE_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/QUEUESERVICES\",\"clientType\":\"django\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_STORAGEQUEUE_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/QUEUESERVICES\",\"clientType\":\"django\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_STORAGEQUEUE_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGEQUEUE_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/QUEUESERVICES\",\"clientType\":\"springBoot\",\"authType\":\"secret\",\"names\":[{\"value\":\"spring.cloud.azure.storage.account\",\"description\":\"Storage account name\"},{\"value\":\"spring.cloud.azure.storage.access-key\",\"description\":\"access key\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/QUEUESERVICES\",\"clientType\":\"springBoot\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"spring.cloud.azure.storage.account\",\"description\":\"Storage account name\"},{\"value\":\"spring.cloud.azure.storage.access-key\",\"description\":\"access key\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/TABLESERVICES\",\"clientType\":\"none\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_STORAGETABLE_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGETABLE_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/TABLESERVICES\",\"clientType\":\"none\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_STORAGETABLE_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGETABLE_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_STORAGETABLE_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/TABLESERVICES\",\"clientType\":\"none\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_STORAGETABLE_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGETABLE_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_STORAGETABLE_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_STORAGETABLE_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_STORAGETABLE_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/TABLESERVICES\",\"clientType\":\"none\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_STORAGETABLE_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/TABLESERVICES\",\"clientType\":\"none\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_STORAGETABLE_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/TABLESERVICES\",\"clientType\":\"none\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_STORAGETABLE_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGETABLE_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/TABLESERVICES\",\"clientType\":\"dotnet\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_STORAGETABLE_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGETABLE_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/TABLESERVICES\",\"clientType\":\"dotnet\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_STORAGETABLE_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGETABLE_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_STORAGETABLE_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/TABLESERVICES\",\"clientType\":\"dotnet\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_STORAGETABLE_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGETABLE_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_STORAGETABLE_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_STORAGETABLE_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_STORAGETABLE_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/TABLESERVICES\",\"clientType\":\"dotnet\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_STORAGETABLE_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/TABLESERVICES\",\"clientType\":\"dotnet\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_STORAGETABLE_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/TABLESERVICES\",\"clientType\":\"dotnet\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_STORAGETABLE_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGETABLE_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/TABLESERVICES\",\"clientType\":\"java\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_STORAGETABLE_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGETABLE_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/TABLESERVICES\",\"clientType\":\"java\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_STORAGETABLE_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGETABLE_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_STORAGETABLE_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/TABLESERVICES\",\"clientType\":\"java\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_STORAGETABLE_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGETABLE_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_STORAGETABLE_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_STORAGETABLE_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_STORAGETABLE_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/TABLESERVICES\",\"clientType\":\"java\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_STORAGETABLE_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/TABLESERVICES\",\"clientType\":\"java\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_STORAGETABLE_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/TABLESERVICES\",\"clientType\":\"java\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_STORAGETABLE_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGETABLE_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/TABLESERVICES\",\"clientType\":\"nodejs\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_STORAGETABLE_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGETABLE_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/TABLESERVICES\",\"clientType\":\"nodejs\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_STORAGETABLE_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGETABLE_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_STORAGETABLE_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/TABLESERVICES\",\"clientType\":\"nodejs\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_STORAGETABLE_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGETABLE_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_STORAGETABLE_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_STORAGETABLE_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_STORAGETABLE_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/TABLESERVICES\",\"clientType\":\"nodejs\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_STORAGETABLE_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/TABLESERVICES\",\"clientType\":\"nodejs\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_STORAGETABLE_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/TABLESERVICES\",\"clientType\":\"nodejs\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_STORAGETABLE_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGETABLE_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/TABLESERVICES\",\"clientType\":\"python\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_STORAGETABLE_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGETABLE_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/TABLESERVICES\",\"clientType\":\"python\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_STORAGETABLE_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGETABLE_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_STORAGETABLE_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/TABLESERVICES\",\"clientType\":\"python\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_STORAGETABLE_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGETABLE_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_STORAGETABLE_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_STORAGETABLE_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_STORAGETABLE_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/TABLESERVICES\",\"clientType\":\"python\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_STORAGETABLE_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/TABLESERVICES\",\"clientType\":\"python\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_STORAGETABLE_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/TABLESERVICES\",\"clientType\":\"python\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_STORAGETABLE_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGETABLE_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/TABLESERVICES\",\"clientType\":\"go\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_STORAGETABLE_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGETABLE_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/TABLESERVICES\",\"clientType\":\"go\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_STORAGETABLE_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGETABLE_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_STORAGETABLE_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/TABLESERVICES\",\"clientType\":\"go\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_STORAGETABLE_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGETABLE_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_STORAGETABLE_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_STORAGETABLE_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_STORAGETABLE_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/TABLESERVICES\",\"clientType\":\"go\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_STORAGETABLE_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/TABLESERVICES\",\"clientType\":\"go\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_STORAGETABLE_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/TABLESERVICES\",\"clientType\":\"go\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_STORAGETABLE_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGETABLE_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/TABLESERVICES\",\"clientType\":\"django\",\"authType\":\"systemAssignedIdentity\",\"names\":[{\"value\":\"AZURE_STORAGETABLE_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGETABLE_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/TABLESERVICES\",\"clientType\":\"django\",\"authType\":\"userAssignedIdentity\",\"names\":[{\"value\":\"AZURE_STORAGETABLE_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGETABLE_CLIENTID\",\"description\":\"User Identity client id\"},{\"value\":\"AZURE_STORAGETABLE_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/TABLESERVICES\",\"clientType\":\"django\",\"authType\":\"servicePrincipalSecret\",\"names\":[{\"value\":\"AZURE_STORAGETABLE_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGETABLE_CLIENTSECRET\",\"description\":\"Service Principal client secret\"},{\"value\":\"AZURE_STORAGETABLE_CLIENTID\",\"description\":\"Service Principal client id\"},{\"value\":\"AZURE_STORAGETABLE_TENANTID\",\"description\":\"Service Principal tenant id\"},{\"value\":\"AZURE_STORAGETABLE_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/TABLESERVICES\",\"clientType\":\"django\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_STORAGETABLE_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/TABLESERVICES\",\"clientType\":\"django\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_STORAGETABLE_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/TABLESERVICES\",\"clientType\":\"django\",\"authType\":\"userAccount\",\"names\":[{\"value\":\"AZURE_STORAGETABLE_RESOURCEENDPOINT\",\"description\":\"Storage endpoint\"},{\"value\":\"AZURE_STORAGETABLE_SCOPE\",\"description\":\"scope for getting token\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/TABLESERVICES\",\"clientType\":\"springBoot\",\"authType\":\"secret\",\"names\":[{\"value\":\"AZURE_STORAGETABLE_CONNECTIONSTRING\",\"description\":\"connection string\"}]}},{\"properties\":{\"targetService\":\"MICROSOFT.STORAGE/STORAGEACCOUNTS/TABLESERVICES\",\"clientType\":\"springBoot\",\"authType\":\"accessKey\",\"names\":[{\"value\":\"AZURE_STORAGETABLE_CONNECTIONSTRING\",\"description\":\"connection string\"}]}}]}" + } + } +} \ No newline at end of file diff --git a/src/ServiceLinker/test/Get-AzServiceLinkerConfigurationName.Tests.ps1 b/src/ServiceLinker/test/Get-AzServiceLinkerConfigurationName.Tests.ps1 new file mode 100644 index 000000000000..ec9bc899fef3 --- /dev/null +++ b/src/ServiceLinker/test/Get-AzServiceLinkerConfigurationName.Tests.ps1 @@ -0,0 +1,22 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Get-AzServiceLinkerConfigurationName')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzServiceLinkerConfigurationName.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Get-AzServiceLinkerConfigurationName' { + It 'List' { + $configs = Get-AzServiceLinkerConfigurationName + $configs.Count | Should -BeGreaterOrEqual 1 + } +} diff --git a/src/ServiceLinker/test/Get-AzServiceLinkerForContainerApp.Recording.json b/src/ServiceLinker/test/Get-AzServiceLinkerForContainerApp.Recording.json index 6f6d8cf77111..f22f0dc5e5e3 100644 --- a/src/ServiceLinker/test/Get-AzServiceLinkerForContainerApp.Recording.json +++ b/src/ServiceLinker/test/Get-AzServiceLinkerForContainerApp.Recording.json @@ -1,12 +1,12 @@ { - "Get-AzServiceLinkerForContainerApp+[NoContext]+List+$GET+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers?api-version=2022-05-01+1": { + "Get-AzServiceLinkerForContainerApp+[NoContext]+List+$GET+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers?api-version=2022-11-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers?api-version=2022-05-01", + "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers?api-version=2022-11-01-preview", "Content": null, "Headers": { - "x-ms-unique-id": [ "4" ], - "x-ms-client-request-id": [ "4c36a038-0a8a-4dba-835e-6ea495ca41c9" ], + "x-ms-unique-id": [ "5" ], + "x-ms-client-request-id": [ "5a77874a-5499-40a6-a64c-6ba38a54c4ee" ], "CommandName": [ "Az.ServiceLinker.internal\\Get-AzServiceLinker" ], "FullCommandName": [ "Get-AzServiceLinker_List" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -21,33 +21,32 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], "x-ms-providerhub-traffic": [ "True" ], - "mise-correlation-id": [ "823a34ca-55a8-48ae-a83d-59031f97df1a" ], + "mise-correlation-id": [ "063dd37f-a856-4926-b8a3-366a49eabd17" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "46a731c8-636c-4dcb-8acb-4fc459a617e1" ], - "x-ms-correlation-request-id": [ "0faa081e-0240-48ee-ab64-9546dae98e44" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T064319Z:0faa081e-0240-48ee-ab64-9546dae98e44" ], + "x-ms-request-id": [ "7e330103-d1cb-4542-919f-fd44ef8ae748" ], + "x-ms-correlation-request-id": [ "0aab616a-2373-4f10-a7cb-7d16b9e9cfea" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20230130T074156Z:0aab616a-2373-4f10-a7cb-7d16b9e9cfea" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:43:19 GMT" ] + "Date": [ "Mon, 30 Jan 2023 07:41:55 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1639" ], + "Content-Length": [ "14430" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/preparedLinker\",\"name\":\"preparedLinker\",\"type\":\"microsoft.servicelinker/linkers\",\"properties\":{\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/xichen-postgresql/databases/testdb\",\"resourceProperties\":{\"connectAsKubernetesCsiDriver\":false,\"type\":\"KeyVault\"},\"type\":\"AzureResource\"},\"authInfo\":{\"name\":\"xichen\",\"secretInfo\":{\"value\":null,\"secretType\":\"rawValue\"},\"authType\":\"secret\"},\"clientType\":\"dotnet\",\"scope\":\"simple-hello-world-container\",\"vNetSolution\":null,\"secretStore\":null}},{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/ps_linker\",\"name\":\"ps_linker\",\"type\":\"microsoft.servicelinker/linkers\",\"properties\":{\"provisioningState\":\"Failed\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/servicelinker-postgresql/databases/postgres\",\"resourceProperties\":null,\"type\":\"AzureResource\"},\"authInfo\":{\"name\":null,\"secretInfo\":{\"value\":null,\"secretType\":\"rawValue\"},\"authType\":\"secret\"},\"clientType\":\"none\",\"scope\":\"simple-hello-world-container\",\"vNetSolution\":null,\"secretStore\":null}}]}" + "Content": "{\"value\":[{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/storageblob_42dda\",\"name\":\"storageblob_42dda\",\"type\":\"microsoft.servicelinker/linkers\",\"systemData\":{\"createdBy\":\"qianwens@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2022-05-10T11:37:01.553663Z\",\"lastModifiedBy\":\"qianwens@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2022-05-10T11:37:01.553663Z\"},\"properties\":{\"publicNetworkSolution\":null,\"configurationInfo\":null,\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Storage/storageAccounts/xichenstorage/blobServices/default\",\"resourceProperties\":null,\"type\":\"AzureResource\"},\"authInfo\":{\"roles\":null,\"userName\":null,\"authType\":\"systemAssignedIdentity\",\"deleteOrUpdateBehavior\":null},\"clientType\":\"none\",\"scope\":\"simple-hello-world-container\",\"vNetSolution\":null,\"secretStore\":null}},{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/CT133071819614260455\",\"name\":\"CT133071819614260455\",\"type\":\"microsoft.servicelinker/linkers\",\"systemData\":{\"createdBy\":\"d0489f1b-17fd-4924-95a9-9054374b6eff\",\"createdByType\":\"Application\",\"createdAt\":\"2022-09-09T07:26:04.4305254Z\",\"lastModifiedBy\":\"d0489f1b-17fd-4924-95a9-9054374b6eff\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-09-09T07:26:04.4305254Z\"},\"properties\":{\"publicNetworkSolution\":null,\"configurationInfo\":null,\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.SignalRService/WebPubSub/servicelinker-webpubsub-canarytest\",\"resourceProperties\":null,\"type\":\"AzureResource\"},\"authInfo\":{\"subscriptionId\":\"937bc588-a144-4083-8612-5f9ffbbddb14\",\"clientId\":\"54c572a9-859e-4427-bba1-5b356c0f51da\",\"roles\":null,\"authType\":\"userAssignedIdentity\",\"deleteOrUpdateBehavior\":null},\"clientType\":\"dotnet\",\"scope\":\"simple-hello-world-container\",\"vNetSolution\":null,\"secretStore\":null}},{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/CT133071834490324847\",\"name\":\"CT133071834490324847\",\"type\":\"microsoft.servicelinker/linkers\",\"systemData\":{\"createdBy\":\"d0489f1b-17fd-4924-95a9-9054374b6eff\",\"createdByType\":\"Application\",\"createdAt\":\"2022-09-09T07:50:51.7181265Z\",\"lastModifiedBy\":\"d0489f1b-17fd-4924-95a9-9054374b6eff\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-09-09T07:50:51.7181265Z\"},\"properties\":{\"publicNetworkSolution\":null,\"configurationInfo\":null,\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.SignalRService/WebPubSub/servicelinker-webpubsub-canarytest\",\"resourceProperties\":null,\"type\":\"AzureResource\"},\"authInfo\":{\"subscriptionId\":\"937bc588-a144-4083-8612-5f9ffbbddb14\",\"clientId\":\"54c572a9-859e-4427-bba1-5b356c0f51da\",\"roles\":null,\"authType\":\"userAssignedIdentity\",\"deleteOrUpdateBehavior\":null},\"clientType\":\"dotnet\",\"scope\":\"simple-hello-world-container\",\"vNetSolution\":null,\"secretStore\":null}},{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/CT133075146297572441\",\"name\":\"CT133075146297572441\",\"type\":\"microsoft.servicelinker/linkers\",\"systemData\":{\"createdBy\":\"d0489f1b-17fd-4924-95a9-9054374b6eff\",\"createdByType\":\"Application\",\"createdAt\":\"2022-09-13T03:50:32.2444355Z\",\"lastModifiedBy\":\"d0489f1b-17fd-4924-95a9-9054374b6eff\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-09-13T03:50:32.2444355Z\"},\"properties\":{\"publicNetworkSolution\":null,\"configurationInfo\":null,\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.SignalRService/WebPubSub/servicelinker-webpubsub-canarytest\",\"resourceProperties\":null,\"type\":\"AzureResource\"},\"authInfo\":{\"subscriptionId\":\"937bc588-a144-4083-8612-5f9ffbbddb14\",\"clientId\":\"54c572a9-859e-4427-bba1-5b356c0f51da\",\"roles\":null,\"authType\":\"userAssignedIdentity\",\"deleteOrUpdateBehavior\":null},\"clientType\":\"dotnet\",\"scope\":\"simple-hello-world-container\",\"vNetSolution\":null,\"secretStore\":null}},{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/CT133075261430617046\",\"name\":\"CT133075261430617046\",\"type\":\"microsoft.servicelinker/linkers\",\"systemData\":{\"createdBy\":\"d0489f1b-17fd-4924-95a9-9054374b6eff\",\"createdByType\":\"Application\",\"createdAt\":\"2022-09-13T07:02:25.313822Z\",\"lastModifiedBy\":\"d0489f1b-17fd-4924-95a9-9054374b6eff\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-09-13T07:02:25.313822Z\"},\"properties\":{\"publicNetworkSolution\":null,\"configurationInfo\":null,\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.SignalRService/WebPubSub/servicelinker-webpubsub-canarytest\",\"resourceProperties\":null,\"type\":\"AzureResource\"},\"authInfo\":{\"subscriptionId\":\"937bc588-a144-4083-8612-5f9ffbbddb14\",\"clientId\":\"54c572a9-859e-4427-bba1-5b356c0f51da\",\"roles\":null,\"authType\":\"userAssignedIdentity\",\"deleteOrUpdateBehavior\":null},\"clientType\":\"dotnet\",\"scope\":\"simple-hello-world-container\",\"vNetSolution\":null,\"secretStore\":null}},{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/CT133075265767517502\",\"name\":\"CT133075265767517502\",\"type\":\"microsoft.servicelinker/linkers\",\"systemData\":{\"createdBy\":\"d0489f1b-17fd-4924-95a9-9054374b6eff\",\"createdByType\":\"Application\",\"createdAt\":\"2022-09-13T07:09:38.4708422Z\",\"lastModifiedBy\":\"d0489f1b-17fd-4924-95a9-9054374b6eff\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-09-13T07:09:38.4708422Z\"},\"properties\":{\"publicNetworkSolution\":null,\"configurationInfo\":null,\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.SignalRService/WebPubSub/servicelinker-webpubsub-canarytest\",\"resourceProperties\":null,\"type\":\"AzureResource\"},\"authInfo\":{\"subscriptionId\":\"937bc588-a144-4083-8612-5f9ffbbddb14\",\"clientId\":\"54c572a9-859e-4427-bba1-5b356c0f51da\",\"roles\":null,\"authType\":\"userAssignedIdentity\",\"deleteOrUpdateBehavior\":null},\"clientType\":\"dotnet\",\"scope\":\"simple-hello-world-container\",\"vNetSolution\":null,\"secretStore\":null}},{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/CT133135769978116626\",\"name\":\"CT133135769978116626\",\"type\":\"microsoft.servicelinker/linkers\",\"systemData\":{\"createdBy\":\"d0489f1b-17fd-4924-95a9-9054374b6eff\",\"createdByType\":\"Application\",\"createdAt\":\"2022-11-22T07:50:00.1469792Z\",\"lastModifiedBy\":\"d0489f1b-17fd-4924-95a9-9054374b6eff\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-11-22T07:50:00.1469792Z\"},\"properties\":{\"publicNetworkSolution\":null,\"configurationInfo\":null,\"provisioningState\":\"Failed\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.SignalRService/WebPubSub/servicelinker-webpubsub-canarytest\",\"resourceProperties\":null,\"type\":\"AzureResource\"},\"authInfo\":{\"subscriptionId\":\"937bc588-a144-4083-8612-5f9ffbbddb14\",\"clientId\":\"5e18f16a-0cc9-4eb2-9277-fe7c6700c785\",\"roles\":null,\"authType\":\"userAssignedIdentity\",\"deleteOrUpdateBehavior\":\"Default\"},\"clientType\":\"dotnet\",\"scope\":\"simple-hello-world-container\",\"vNetSolution\":null,\"secretStore\":null}},{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/CT133152984086850559\",\"name\":\"CT133152984086850559\",\"type\":\"microsoft.servicelinker/linkers\",\"systemData\":{\"createdBy\":\"d0489f1b-17fd-4924-95a9-9054374b6eff\",\"createdByType\":\"Application\",\"createdAt\":\"2022-12-12T06:00:40.9553357Z\",\"lastModifiedBy\":\"d0489f1b-17fd-4924-95a9-9054374b6eff\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-12-12T06:00:40.9553357Z\"},\"properties\":{\"publicNetworkSolution\":null,\"configurationInfo\":null,\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.SignalRService/SignalR/servicelinker-signalr\",\"resourceProperties\":null,\"type\":\"AzureResource\"},\"authInfo\":{\"clientId\":\"323f212a-568e-44b5-b296-abaad161b929\",\"principalId\":\"b2ffa9f4-02a3-4cdb-9333-4f494db9693d\",\"roles\":null,\"authType\":\"servicePrincipalSecret\",\"deleteOrUpdateBehavior\":\"Default\"},\"clientType\":\"dotnet\",\"scope\":\"simple-hello-world-container\",\"vNetSolution\":null,\"secretStore\":null}},{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/CT133153789828091558\",\"name\":\"CT133153789828091558\",\"type\":\"microsoft.servicelinker/linkers\",\"systemData\":{\"createdBy\":\"d0489f1b-17fd-4924-95a9-9054374b6eff\",\"createdByType\":\"Application\",\"createdAt\":\"2022-12-13T04:23:04.7629589Z\",\"lastModifiedBy\":\"d0489f1b-17fd-4924-95a9-9054374b6eff\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-12-13T04:23:04.7629589Z\"},\"properties\":{\"publicNetworkSolution\":null,\"configurationInfo\":null,\"provisioningState\":\"Failed\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.SignalRService/WebPubSub/servicelinker-webpubsub-canarytest\",\"resourceProperties\":null,\"type\":\"AzureResource\"},\"authInfo\":{\"subscriptionId\":\"937bc588-a144-4083-8612-5f9ffbbddb14\",\"clientId\":\"5e18f16a-0cc9-4eb2-9277-fe7c6700c785\",\"roles\":null,\"authType\":\"userAssignedIdentity\",\"deleteOrUpdateBehavior\":\"Default\"},\"clientType\":\"dotnet\",\"scope\":\"simple-hello-world-container\",\"vNetSolution\":null,\"secretStore\":null}},{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/CT133154596106083573\",\"name\":\"CT133154596106083573\",\"type\":\"microsoft.servicelinker/linkers\",\"systemData\":{\"createdBy\":\"d0489f1b-17fd-4924-95a9-9054374b6eff\",\"createdByType\":\"Application\",\"createdAt\":\"2022-12-14T02:47:22.440963Z\",\"lastModifiedBy\":\"d0489f1b-17fd-4924-95a9-9054374b6eff\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-12-14T02:47:22.440963Z\"},\"properties\":{\"publicNetworkSolution\":null,\"configurationInfo\":null,\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourcegroups/servicelinker-test-linux-group/providers/Microsoft.AppConfiguration/configurationStores/servicelinker-app-configuration\",\"resourceProperties\":null,\"type\":\"AzureResource\"},\"authInfo\":{\"roles\":null,\"userName\":null,\"authType\":\"systemAssignedIdentity\",\"deleteOrUpdateBehavior\":\"Default\"},\"clientType\":\"dotnet\",\"scope\":\"simple-hello-world-container\",\"vNetSolution\":null,\"secretStore\":null}},{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/CT133154639039154615\",\"name\":\"CT133154639039154615\",\"type\":\"microsoft.servicelinker/linkers\",\"systemData\":{\"createdBy\":\"d0489f1b-17fd-4924-95a9-9054374b6eff\",\"createdByType\":\"Application\",\"createdAt\":\"2022-12-14T03:59:05.4239822Z\",\"lastModifiedBy\":\"d0489f1b-17fd-4924-95a9-9054374b6eff\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-12-14T03:59:05.4239822Z\"},\"properties\":{\"publicNetworkSolution\":null,\"configurationInfo\":null,\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourcegroups/servicelinker-test-linux-group/providers/Microsoft.AppConfiguration/configurationStores/servicelinker-app-configuration\",\"resourceProperties\":null,\"type\":\"AzureResource\"},\"authInfo\":{\"roles\":null,\"userName\":null,\"authType\":\"systemAssignedIdentity\",\"deleteOrUpdateBehavior\":\"Default\"},\"clientType\":\"dotnet\",\"scope\":\"simple-hello-world-container\",\"vNetSolution\":null,\"secretStore\":null}},{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/preparedLinker\",\"name\":\"preparedLinker\",\"type\":\"microsoft.servicelinker/linkers\",\"systemData\":{\"createdBy\":\"xiaofanzhou@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-01-30T03:37:04.9479159Z\",\"lastModifiedBy\":\"xiaofanzhou@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-30T05:24:32.2335746Z\"},\"properties\":{\"publicNetworkSolution\":null,\"configurationInfo\":null,\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppConfiguration/configurationStores/servicelinker-app-configuration\",\"resourceProperties\":{\"connectAsKubernetesCsiDriver\":false,\"type\":\"KeyVault\"},\"type\":\"AzureResource\"},\"authInfo\":{\"roles\":[],\"userName\":null,\"authType\":\"systemAssignedIdentity\",\"deleteOrUpdateBehavior\":null},\"clientType\":\"dotnet\",\"scope\":\"simple-hello-world-container\",\"vNetSolution\":null,\"secretStore\":null}}]}" } }, - "Get-AzServiceLinkerForContainerApp+[NoContext]+Get+$GET+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/preparedLinker?api-version=2022-05-01+1": { + "Get-AzServiceLinkerForContainerApp+[NoContext]+Get+$GET+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/preparedLinker?api-version=2022-11-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/preparedLinker?api-version=2022-05-01", + "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/preparedLinker?api-version=2022-11-01-preview", "Content": null, "Headers": { - "x-ms-unique-id": [ "5" ], - "x-ms-client-request-id": [ "ee62df00-dd14-49e4-a5a1-b739eee661fe" ], + "x-ms-unique-id": [ "6" ], + "x-ms-client-request-id": [ "12d48b48-0b40-4164-9e59-37012d83e8b0" ], "CommandName": [ "Az.ServiceLinker.internal\\Get-AzServiceLinker" ], "FullCommandName": [ "Get-AzServiceLinker_Get" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -62,34 +61,33 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"3a00fc6d-0000-0100-0000-627614090000\"" ], - "Vary": [ "Accept-Encoding" ], + "ETag": [ "\"ea0077d3-0000-0100-0000-63d754a10000\"" ], "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], "x-ms-providerhub-traffic": [ "True" ], - "mise-correlation-id": [ "bc6f4c84-5fcc-4b78-aedf-63022bbff616" ], + "mise-correlation-id": [ "ff15b238-9a46-4fa2-8870-4bf3b7fbd476" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "3f456bc3-8746-4e1b-bb98-7e6509030515" ], - "x-ms-correlation-request-id": [ "7c58bdeb-06ca-47a8-ab0a-e84edce9c762" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T064320Z:7c58bdeb-06ca-47a8-ab0a-e84edce9c762" ], + "x-ms-request-id": [ "f38e2d99-2a4e-4de1-ae35-f9bd7c6c972d" ], + "x-ms-correlation-request-id": [ "85d1012e-1a91-4f44-af73-c440fbc3b921" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20230130T074157Z:85d1012e-1a91-4f44-af73-c440fbc3b921" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:43:20 GMT" ] + "Date": [ "Mon, 30 Jan 2023 07:41:56 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "844" ], + "Content-Length": [ "1155" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/preparedLinker\",\"name\":\"preparedLinker\",\"type\":\"microsoft.servicelinker/linkers\",\"properties\":{\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/xichen-postgresql/databases/testdb\",\"resourceProperties\":{\"connectAsKubernetesCsiDriver\":false,\"type\":\"KeyVault\"},\"type\":\"AzureResource\"},\"authInfo\":{\"name\":\"xichen\",\"secretInfo\":{\"value\":null,\"secretType\":\"rawValue\"},\"authType\":\"secret\"},\"clientType\":\"dotnet\",\"scope\":\"simple-hello-world-container\",\"vNetSolution\":null,\"secretStore\":null}}" + "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/preparedLinker\",\"name\":\"preparedLinker\",\"type\":\"microsoft.servicelinker/linkers\",\"systemData\":{\"createdBy\":\"xiaofanzhou@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-01-30T03:37:04.9479159Z\",\"lastModifiedBy\":\"xiaofanzhou@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-30T05:24:32.2335746Z\"},\"properties\":{\"publicNetworkSolution\":null,\"configurationInfo\":null,\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppConfiguration/configurationStores/servicelinker-app-configuration\",\"resourceProperties\":{\"connectAsKubernetesCsiDriver\":false,\"type\":\"KeyVault\"},\"type\":\"AzureResource\"},\"authInfo\":{\"roles\":[],\"userName\":null,\"authType\":\"systemAssignedIdentity\",\"deleteOrUpdateBehavior\":null},\"clientType\":\"dotnet\",\"scope\":\"simple-hello-world-container\",\"vNetSolution\":null,\"secretStore\":null}}" } }, - "Get-AzServiceLinkerForContainerApp+[NoContext]+GetViaIdentity+$GET+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/preparedLinker?api-version=2022-05-01+1": { + "Get-AzServiceLinkerForContainerApp+[NoContext]+GetViaIdentity+$GET+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/preparedLinker?api-version=2022-11-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/preparedLinker?api-version=2022-05-01", + "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/preparedLinker?api-version=2022-11-01-preview", "Content": null, "Headers": { - "x-ms-unique-id": [ "6" ], - "x-ms-client-request-id": [ "b3f85fae-05bc-41e8-9edc-20fadbeaf995" ], + "x-ms-unique-id": [ "7" ], + "x-ms-client-request-id": [ "b089d659-8b44-4a3a-aa45-369b0dc92914" ], "CommandName": [ "Az.ServiceLinker.internal\\Get-AzServiceLinker" ], "FullCommandName": [ "Get-AzServiceLinker_GetViaIdentity" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -104,24 +102,23 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"3a00fc6d-0000-0100-0000-627614090000\"" ], - "Vary": [ "Accept-Encoding" ], + "ETag": [ "\"ea0077d3-0000-0100-0000-63d754a10000\"" ], "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], "x-ms-providerhub-traffic": [ "True" ], - "mise-correlation-id": [ "a7a2e5d5-170b-4320-bc2d-c23a9beaf8f2" ], + "mise-correlation-id": [ "11eec008-fe24-4a10-a1c0-1ef1983353bd" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "9e3acb14-f428-403e-8e93-715b10440e94" ], - "x-ms-correlation-request-id": [ "39de76f2-7c83-4ed9-b7ac-a6364140f3a6" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T064321Z:39de76f2-7c83-4ed9-b7ac-a6364140f3a6" ], + "x-ms-request-id": [ "228a2997-62b0-4e0e-b0e4-525dd88c8511" ], + "x-ms-correlation-request-id": [ "70fad052-9a58-4274-9dae-aaaa3c65f4bc" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20230130T074157Z:70fad052-9a58-4274-9dae-aaaa3c65f4bc" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:43:21 GMT" ] + "Date": [ "Mon, 30 Jan 2023 07:41:56 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "844" ], + "Content-Length": [ "1155" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/preparedLinker\",\"name\":\"preparedLinker\",\"type\":\"microsoft.servicelinker/linkers\",\"properties\":{\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/xichen-postgresql/databases/testdb\",\"resourceProperties\":{\"connectAsKubernetesCsiDriver\":false,\"type\":\"KeyVault\"},\"type\":\"AzureResource\"},\"authInfo\":{\"name\":\"xichen\",\"secretInfo\":{\"value\":null,\"secretType\":\"rawValue\"},\"authType\":\"secret\"},\"clientType\":\"dotnet\",\"scope\":\"simple-hello-world-container\",\"vNetSolution\":null,\"secretStore\":null}}" + "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/preparedLinker\",\"name\":\"preparedLinker\",\"type\":\"microsoft.servicelinker/linkers\",\"systemData\":{\"createdBy\":\"xiaofanzhou@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-01-30T03:37:04.9479159Z\",\"lastModifiedBy\":\"xiaofanzhou@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-30T05:24:32.2335746Z\"},\"properties\":{\"publicNetworkSolution\":null,\"configurationInfo\":null,\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppConfiguration/configurationStores/servicelinker-app-configuration\",\"resourceProperties\":{\"connectAsKubernetesCsiDriver\":false,\"type\":\"KeyVault\"},\"type\":\"AzureResource\"},\"authInfo\":{\"roles\":[],\"userName\":null,\"authType\":\"systemAssignedIdentity\",\"deleteOrUpdateBehavior\":null},\"clientType\":\"dotnet\",\"scope\":\"simple-hello-world-container\",\"vNetSolution\":null,\"secretStore\":null}}" } } } \ No newline at end of file diff --git a/src/ServiceLinker/test/Get-AzServiceLinkerForSpringCloud.Recording.json b/src/ServiceLinker/test/Get-AzServiceLinkerForSpringCloud.Recording.json index a3e4860eda17..24deb03e5cd8 100644 --- a/src/ServiceLinker/test/Get-AzServiceLinkerForSpringCloud.Recording.json +++ b/src/ServiceLinker/test/Get-AzServiceLinkerForSpringCloud.Recording.json @@ -1,12 +1,12 @@ { - "Get-AzServiceLinkerForSpringCloud+[NoContext]+List+$GET+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers?api-version=2022-05-01+1": { + "Get-AzServiceLinkerForSpringCloud+[NoContext]+List+$GET+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers?api-version=2022-11-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers?api-version=2022-05-01", + "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers?api-version=2022-11-01-preview", "Content": null, "Headers": { - "x-ms-unique-id": [ "7" ], - "x-ms-client-request-id": [ "4d9c0757-34f6-4744-b95f-12f851972972" ], + "x-ms-unique-id": [ "8" ], + "x-ms-client-request-id": [ "d1de5be8-5189-4b0b-994f-5617db2456cc" ], "CommandName": [ "Az.ServiceLinker.internal\\Get-AzServiceLinker" ], "FullCommandName": [ "Get-AzServiceLinker_List" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -21,33 +21,32 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], "x-ms-providerhub-traffic": [ "True" ], - "mise-correlation-id": [ "a152a7a6-5093-4c5f-9ce8-e12005c24546" ], + "mise-correlation-id": [ "80709e67-ff0d-4a7b-8600-6a329767ea9e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "a0fff68d-cd10-4223-9feb-c2752a1393b8" ], - "x-ms-correlation-request-id": [ "69d25428-8a74-489c-ac8d-e49db121f852" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T064328Z:69d25428-8a74-489c-ac8d-e49db121f852" ], + "x-ms-request-id": [ "773d4f89-e1fd-4738-90a4-e8c3714e0d19" ], + "x-ms-correlation-request-id": [ "da59e4fd-e9af-4c57-ab28-4129a801ad1d" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20230130T074209Z:da59e4fd-e9af-4c57-ab28-4129a801ad1d" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:43:27 GMT" ] + "Date": [ "Mon, 30 Jan 2023 07:42:08 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "878" ], + "Content-Length": [ "1161" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers/preparedLinker\",\"name\":\"preparedLinker\",\"type\":\"microsoft.servicelinker/linkers\",\"properties\":{\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/servicelinker-postgresql/databases/pollsdb\",\"resourceProperties\":{\"connectAsKubernetesCsiDriver\":false,\"type\":\"KeyVault\"},\"type\":\"AzureResource\"},\"authInfo\":{\"name\":\"servicelinker\",\"secretInfo\":{\"value\":null,\"secretType\":\"rawValue\"},\"authType\":\"secret\"},\"clientType\":\"dotnet\",\"scope\":null,\"vNetSolution\":null,\"secretStore\":null}}]}" + "Content": "{\"value\":[{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers/preparedLinker\",\"name\":\"preparedLinker\",\"type\":\"microsoft.servicelinker/linkers\",\"systemData\":{\"createdBy\":\"xiaofanzhou@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2022-05-06T06:50:44.4314626Z\",\"lastModifiedBy\":\"xiaofanzhou@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-30T05:25:13.5779094Z\"},\"properties\":{\"publicNetworkSolution\":null,\"configurationInfo\":null,\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/servicelinker-postgresql/databases/pollsdb\",\"resourceProperties\":{\"connectAsKubernetesCsiDriver\":false,\"type\":\"KeyVault\"},\"type\":\"AzureResource\"},\"authInfo\":{\"name\":\"servicelinker\",\"secretInfo\":{\"secretType\":\"rawValue\"},\"authType\":\"secret\"},\"clientType\":\"dotnet\",\"scope\":null,\"vNetSolution\":null,\"secretStore\":null}}]}" } }, - "Get-AzServiceLinkerForSpringCloud+[NoContext]+Get+$GET+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers/preparedLinker?api-version=2022-05-01+1": { + "Get-AzServiceLinkerForSpringCloud+[NoContext]+Get+$GET+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers/preparedLinker?api-version=2022-11-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers/preparedLinker?api-version=2022-05-01", + "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers/preparedLinker?api-version=2022-11-01-preview", "Content": null, "Headers": { - "x-ms-unique-id": [ "8" ], - "x-ms-client-request-id": [ "5f88608f-4d7c-4fa6-8926-0af115a5c691" ], + "x-ms-unique-id": [ "9" ], + "x-ms-client-request-id": [ "8c1fac40-f60a-4d75-9165-24ef90ea9c34" ], "CommandName": [ "Az.ServiceLinker.internal\\Get-AzServiceLinker" ], "FullCommandName": [ "Get-AzServiceLinker_Get" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -62,34 +61,33 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"3a003b6e-0000-0100-0000-627614220000\"" ], - "Vary": [ "Accept-Encoding" ], + "ETag": [ "\"ea00bdd3-0000-0100-0000-63d754c00000\"" ], "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], "x-ms-providerhub-traffic": [ "True" ], - "mise-correlation-id": [ "72d5d4b7-ed80-48a7-9305-daeea2cfb3f5" ], + "mise-correlation-id": [ "ba3e5e02-750f-463c-9f5c-bc54baaab6a8" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "3ac1c530-c80a-4dcb-9f48-32a9c445840c" ], - "x-ms-correlation-request-id": [ "52195856-2084-4d6f-a9ff-947be8f48ea8" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T064328Z:52195856-2084-4d6f-a9ff-947be8f48ea8" ], + "x-ms-request-id": [ "8f88ca3f-92fa-4498-8338-a6959d966ed8" ], + "x-ms-correlation-request-id": [ "9b515d50-06e6-47b6-9ecd-290b90a91701" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20230130T074209Z:9b515d50-06e6-47b6-9ecd-290b90a91701" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:43:28 GMT" ] + "Date": [ "Mon, 30 Jan 2023 07:42:09 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "866" ], + "Content-Length": [ "1149" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers/preparedLinker\",\"name\":\"preparedLinker\",\"type\":\"microsoft.servicelinker/linkers\",\"properties\":{\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/servicelinker-postgresql/databases/pollsdb\",\"resourceProperties\":{\"connectAsKubernetesCsiDriver\":false,\"type\":\"KeyVault\"},\"type\":\"AzureResource\"},\"authInfo\":{\"name\":\"servicelinker\",\"secretInfo\":{\"value\":null,\"secretType\":\"rawValue\"},\"authType\":\"secret\"},\"clientType\":\"dotnet\",\"scope\":null,\"vNetSolution\":null,\"secretStore\":null}}" + "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers/preparedLinker\",\"name\":\"preparedLinker\",\"type\":\"microsoft.servicelinker/linkers\",\"systemData\":{\"createdBy\":\"xiaofanzhou@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2022-05-06T06:50:44.4314626Z\",\"lastModifiedBy\":\"xiaofanzhou@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-30T05:25:13.5779094Z\"},\"properties\":{\"publicNetworkSolution\":null,\"configurationInfo\":null,\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/servicelinker-postgresql/databases/pollsdb\",\"resourceProperties\":{\"connectAsKubernetesCsiDriver\":false,\"type\":\"KeyVault\"},\"type\":\"AzureResource\"},\"authInfo\":{\"name\":\"servicelinker\",\"secretInfo\":{\"secretType\":\"rawValue\"},\"authType\":\"secret\"},\"clientType\":\"dotnet\",\"scope\":null,\"vNetSolution\":null,\"secretStore\":null}}" } }, - "Get-AzServiceLinkerForSpringCloud+[NoContext]+GetViaIdentity+$GET+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers/preparedLinker?api-version=2022-05-01+1": { + "Get-AzServiceLinkerForSpringCloud+[NoContext]+GetViaIdentity+$GET+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers/preparedLinker?api-version=2022-11-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers/preparedLinker?api-version=2022-05-01", + "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers/preparedLinker?api-version=2022-11-01-preview", "Content": null, "Headers": { - "x-ms-unique-id": [ "9" ], - "x-ms-client-request-id": [ "946415bf-4498-439d-ab6c-36712674a92b" ], + "x-ms-unique-id": [ "10" ], + "x-ms-client-request-id": [ "8890167a-5087-4722-9763-1518515e79a1" ], "CommandName": [ "Az.ServiceLinker.internal\\Get-AzServiceLinker" ], "FullCommandName": [ "Get-AzServiceLinker_GetViaIdentity" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -104,24 +102,23 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"3a003b6e-0000-0100-0000-627614220000\"" ], - "Vary": [ "Accept-Encoding" ], + "ETag": [ "\"ea00bdd3-0000-0100-0000-63d754c00000\"" ], "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], "x-ms-providerhub-traffic": [ "True" ], - "mise-correlation-id": [ "7f8afa27-ea2f-460d-bdbe-d7d75ef6b29b" ], + "mise-correlation-id": [ "66a16523-8b21-4a5e-9dc1-0e9c7f7e427c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "5c4abde3-22f7-4908-b294-c302506f209f" ], - "x-ms-correlation-request-id": [ "2b327683-4a10-4029-8542-b112db5fa1bc" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T064329Z:2b327683-4a10-4029-8542-b112db5fa1bc" ], + "x-ms-request-id": [ "b13a67c8-8e48-4ada-96ef-35bd496ffcef" ], + "x-ms-correlation-request-id": [ "70b47497-9cf2-44f4-89f2-832ac36e6a2e" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20230130T074210Z:70b47497-9cf2-44f4-89f2-832ac36e6a2e" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:43:28 GMT" ] + "Date": [ "Mon, 30 Jan 2023 07:42:10 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "866" ], + "Content-Length": [ "1149" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers/preparedLinker\",\"name\":\"preparedLinker\",\"type\":\"microsoft.servicelinker/linkers\",\"properties\":{\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/servicelinker-postgresql/databases/pollsdb\",\"resourceProperties\":{\"connectAsKubernetesCsiDriver\":false,\"type\":\"KeyVault\"},\"type\":\"AzureResource\"},\"authInfo\":{\"name\":\"servicelinker\",\"secretInfo\":{\"value\":null,\"secretType\":\"rawValue\"},\"authType\":\"secret\"},\"clientType\":\"dotnet\",\"scope\":null,\"vNetSolution\":null,\"secretStore\":null}}" + "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers/preparedLinker\",\"name\":\"preparedLinker\",\"type\":\"microsoft.servicelinker/linkers\",\"systemData\":{\"createdBy\":\"xiaofanzhou@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2022-05-06T06:50:44.4314626Z\",\"lastModifiedBy\":\"xiaofanzhou@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-30T05:25:13.5779094Z\"},\"properties\":{\"publicNetworkSolution\":null,\"configurationInfo\":null,\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/servicelinker-postgresql/databases/pollsdb\",\"resourceProperties\":{\"connectAsKubernetesCsiDriver\":false,\"type\":\"KeyVault\"},\"type\":\"AzureResource\"},\"authInfo\":{\"name\":\"servicelinker\",\"secretInfo\":{\"secretType\":\"rawValue\"},\"authType\":\"secret\"},\"clientType\":\"dotnet\",\"scope\":null,\"vNetSolution\":null,\"secretStore\":null}}" } } } \ No newline at end of file diff --git a/src/ServiceLinker/test/Get-AzServiceLinkerForWebApp.Recording.json b/src/ServiceLinker/test/Get-AzServiceLinkerForWebApp.Recording.json index 7d4949094456..86636cbe3c03 100644 --- a/src/ServiceLinker/test/Get-AzServiceLinkerForWebApp.Recording.json +++ b/src/ServiceLinker/test/Get-AzServiceLinkerForWebApp.Recording.json @@ -1,12 +1,12 @@ { - "Get-AzServiceLinkerForWebApp+[NoContext]+List+$GET+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-test-app/providers/Microsoft.ServiceLinker/linkers?api-version=2022-05-01+1": { + "Get-AzServiceLinkerForWebApp+[NoContext]+List+$GET+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-test-app/providers/Microsoft.ServiceLinker/linkers?api-version=2022-11-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-test-app/providers/Microsoft.ServiceLinker/linkers?api-version=2022-05-01", + "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-test-app/providers/Microsoft.ServiceLinker/linkers?api-version=2022-11-01-preview", "Content": null, "Headers": { - "x-ms-unique-id": [ "10" ], - "x-ms-client-request-id": [ "07c1e995-12fa-4b76-8b67-c40abf57c2bb" ], + "x-ms-unique-id": [ "11" ], + "x-ms-client-request-id": [ "4253f0c8-9293-41bd-80b1-a5d0edb5b062" ], "CommandName": [ "Az.ServiceLinker.internal\\Get-AzServiceLinker" ], "FullCommandName": [ "Get-AzServiceLinker_List" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -21,33 +21,32 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], "x-ms-providerhub-traffic": [ "True" ], - "mise-correlation-id": [ "41ea0cea-7523-4cd9-ba46-06774e78495e" ], + "mise-correlation-id": [ "b1ca5359-9dd5-4451-8fe3-8b438a8cb858" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "c7a0981b-20af-408c-989c-791794d71dea" ], - "x-ms-correlation-request-id": [ "d9eb2333-db9b-4f32-bba9-819e9c59f70f" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T064336Z:d9eb2333-db9b-4f32-bba9-819e9c59f70f" ], + "x-ms-request-id": [ "d0175638-db1e-4b50-bedd-53d9b4a6b435" ], + "x-ms-correlation-request-id": [ "18ad5d2d-0deb-4c2f-b278-d3e3b18b86f7" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20230130T074223Z:18ad5d2d-0deb-4c2f-b278-d3e3b18b86f7" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:43:36 GMT" ] + "Date": [ "Mon, 30 Jan 2023 07:42:23 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "7363" ], + "Content-Length": [ "8714" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-test-app/providers/Microsoft.ServiceLinker/linkers/preparedLinker\",\"name\":\"preparedLinker\",\"type\":\"microsoft.servicelinker/linkers\",\"properties\":{\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/servicelinker-postgresql/databases/pollsdb\",\"resourceProperties\":{\"connectAsKubernetesCsiDriver\":false,\"type\":\"KeyVault\"},\"type\":\"AzureResource\"},\"authInfo\":{\"name\":\"xichen\",\"secretInfo\":{\"value\":null,\"secretType\":\"rawValue\"},\"authType\":\"secret\"},\"clientType\":\"dotnet\",\"scope\":null,\"vNetSolution\":null,\"secretStore\":null}},{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-test-app/providers/Microsoft.ServiceLinker/linkers/webapp_mysql_47a91\",\"name\":\"webapp_mysql_47a91\",\"type\":\"microsoft.servicelinker/linkers\",\"properties\":{\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforMySQL/servers/servicelinker-mysql/databases/demo\",\"resourceProperties\":null,\"type\":\"AzureResource\"},\"authInfo\":{\"name\":\"servicelinker\",\"secretInfo\":{\"secretType\":\"rawValue\"},\"authType\":\"secret\"},\"clientType\":\"python\",\"scope\":null,\"vNetSolution\":null,\"secretStore\":null}},{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-test-app/providers/Microsoft.ServiceLinker/linkers/ct132791830883225198\",\"name\":\"ct132791830883225198\",\"type\":\"microsoft.servicelinker/linkers\",\"properties\":{\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/servicelinker-postgresql-canary-test/databases/postgres\",\"resourceProperties\":null,\"type\":\"AzureResource\"},\"authInfo\":{\"name\":\"servicelinker\",\"secretInfo\":{\"secretType\":\"rawValue\"},\"authType\":\"secret\"},\"clientType\":\"django\",\"scope\":null,\"vNetSolution\":null,\"secretStore\":null}},{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-test-app/providers/Microsoft.ServiceLinker/linkers/ct132791833166638462\",\"name\":\"ct132791833166638462\",\"type\":\"microsoft.servicelinker/linkers\",\"properties\":{\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/servicelinker-postgresql-canary-test/databases/postgres\",\"resourceProperties\":null,\"type\":\"AzureResource\"},\"authInfo\":{\"name\":\"servicelinker\",\"secretInfo\":{\"secretType\":\"rawValue\"},\"authType\":\"secret\"},\"clientType\":\"django\",\"scope\":null,\"vNetSolution\":null,\"secretStore\":null}},{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-test-app/providers/Microsoft.ServiceLinker/linkers/ct132792584341667637\",\"name\":\"ct132792584341667637\",\"type\":\"microsoft.servicelinker/linkers\",\"properties\":{\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/servicelinker-postgresql-canary-test/databases/postgres\",\"resourceProperties\":null,\"type\":\"AzureResource\"},\"authInfo\":{\"name\":\"servicelinker\",\"secretInfo\":{\"secretType\":\"rawValue\"},\"authType\":\"secret\"},\"clientType\":\"django\",\"scope\":null,\"vNetSolution\":null,\"secretStore\":null}},{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-test-app/providers/Microsoft.ServiceLinker/linkers/confluentkafka_ac706\",\"name\":\"confluentkafka_ac706\",\"type\":\"microsoft.servicelinker/linkers\",\"properties\":{\"provisioningState\":\"Succeeded\",\"targetService\":{\"endpoint\":\"pkc-xxxx.eastus.azure.confluent.cloud:9092\",\"type\":\"ConfluentBootstrapServer\"},\"authInfo\":{\"name\":\"USERNAME\",\"secretInfo\":{\"secretType\":\"rawValue\"},\"authType\":\"secret\"},\"clientType\":\"python\",\"scope\":null,\"vNetSolution\":null,\"secretStore\":null}},{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-test-app/providers/Microsoft.ServiceLinker/linkers/confluentkafka_ac706_schema\",\"name\":\"confluentkafka_ac706_schema\",\"type\":\"microsoft.servicelinker/linkers\",\"properties\":{\"provisioningState\":\"Succeeded\",\"targetService\":{\"endpoint\":\"https://psrc-xxxx.westus2.azure.confluent.cloud\",\"type\":\"ConfluentSchemaRegistry\"},\"authInfo\":{\"name\":\"SRKEY\",\"secretInfo\":{\"secretType\":\"rawValue\"},\"authType\":\"secret\"},\"clientType\":\"python\",\"scope\":null,\"vNetSolution\":null,\"secretStore\":null}},{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-test-app/providers/Microsoft.ServiceLinker/linkers/linker2\",\"name\":\"linker2\",\"type\":\"microsoft.servicelinker/linkers\",\"properties\":{\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/servicelinker-postgresql-canary-test/databases/postgres\",\"resourceProperties\":null,\"type\":\"AzureResource\"},\"authInfo\":{\"name\":\"servicelinker\",\"secretInfo\":{\"secretType\":\"rawValue\"},\"authType\":\"secret\"},\"clientType\":\"django\",\"scope\":null,\"vNetSolution\":null,\"secretStore\":null}},{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-test-app/providers/Microsoft.ServiceLinker/linkers/linker\",\"name\":\"linker\",\"type\":\"microsoft.servicelinker/linkers\",\"properties\":{\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/servicelinker-postgresql/databases/pollsdb\",\"resourceProperties\":null,\"type\":\"AzureResource\"},\"authInfo\":{\"name\":\"xichen\",\"secretInfo\":{\"secretType\":\"rawValue\"},\"authType\":\"secret\"},\"clientType\":\"django\",\"scope\":null,\"vNetSolution\":null,\"secretStore\":null}},{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-test-app/providers/Microsoft.ServiceLinker/linkers/appconfig_ef162\",\"name\":\"appconfig_ef162\",\"type\":\"microsoft.servicelinker/linkers\",\"properties\":{\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppConfiguration/configurationStores/app-config-servicelinker\",\"resourceProperties\":null,\"type\":\"AzureResource\"},\"authInfo\":{\"authType\":\"systemAssignedIdentity\"},\"clientType\":\"python\",\"scope\":null,\"vNetSolution\":null,\"secretStore\":null}}]}" + "Content": "{\"value\":[{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-test-app/providers/Microsoft.ServiceLinker/linkers/preparedLinker\",\"name\":\"preparedLinker\",\"type\":\"microsoft.servicelinker/linkers\",\"systemData\":{\"createdBy\":\"naji@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2021-10-20T02:10:21.6542229Z\",\"lastModifiedBy\":\"xiaofanzhou@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-30T05:25:55.6334752Z\"},\"properties\":{\"publicNetworkSolution\":null,\"configurationInfo\":null,\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/servicelinker-postgresql/databases/pollsdb\",\"resourceProperties\":{\"connectAsKubernetesCsiDriver\":false,\"type\":\"KeyVault\"},\"type\":\"AzureResource\"},\"authInfo\":{\"name\":\"xichen\",\"secretInfo\":{\"secretType\":\"rawValue\"},\"authType\":\"secret\"},\"clientType\":\"dotnet\",\"scope\":null,\"vNetSolution\":null,\"secretStore\":null}},{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-test-app/providers/Microsoft.ServiceLinker/linkers/webapp_mysql_47a91\",\"name\":\"webapp_mysql_47a91\",\"type\":\"microsoft.servicelinker/linkers\",\"systemData\":{\"createdBy\":\"xiaofanzhou@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2021-10-20T02:10:44.4860581Z\",\"lastModifiedBy\":\"c4288165-6698-45ba-98a5-48ea7791fed3\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2021-10-20T02:10:47.7850193Z\"},\"properties\":{\"publicNetworkSolution\":null,\"configurationInfo\":null,\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforMySQL/servers/servicelinker-mysql/databases/demo\",\"resourceProperties\":null,\"type\":\"AzureResource\"},\"authInfo\":{\"name\":\"servicelinker\",\"secretInfo\":{\"secretType\":\"rawValue\"},\"authType\":\"secret\"},\"clientType\":\"python\",\"scope\":null,\"vNetSolution\":null,\"secretStore\":null}},{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-test-app/providers/Microsoft.ServiceLinker/linkers/ct132791830883225198\",\"name\":\"ct132791830883225198\",\"type\":\"microsoft.servicelinker/linkers\",\"systemData\":{\"createdBy\":\"d0489f1b-17fd-4924-95a9-9054374b6eff\",\"createdByType\":\"Application\",\"createdAt\":\"2021-10-20T05:58:14.1703052Z\",\"lastModifiedBy\":\"c4288165-6698-45ba-98a5-48ea7791fed3\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2021-10-20T05:58:21.9116826Z\"},\"properties\":{\"publicNetworkSolution\":null,\"configurationInfo\":null,\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/servicelinker-postgresql-canary-test/databases/postgres\",\"resourceProperties\":null,\"type\":\"AzureResource\"},\"authInfo\":{\"name\":\"servicelinker\",\"secretInfo\":{\"secretType\":\"rawValue\"},\"authType\":\"secret\"},\"clientType\":\"django\",\"scope\":null,\"vNetSolution\":null,\"secretStore\":null}},{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-test-app/providers/Microsoft.ServiceLinker/linkers/ct132791833166638462\",\"name\":\"ct132791833166638462\",\"type\":\"microsoft.servicelinker/linkers\",\"systemData\":{\"createdBy\":\"d0489f1b-17fd-4924-95a9-9054374b6eff\",\"createdByType\":\"Application\",\"createdAt\":\"2021-10-20T06:02:11.57185Z\",\"lastModifiedBy\":\"c4288165-6698-45ba-98a5-48ea7791fed3\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2021-10-20T06:02:19.9209961Z\"},\"properties\":{\"publicNetworkSolution\":null,\"configurationInfo\":null,\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/servicelinker-postgresql-canary-test/databases/postgres\",\"resourceProperties\":null,\"type\":\"AzureResource\"},\"authInfo\":{\"name\":\"servicelinker\",\"secretInfo\":{\"secretType\":\"rawValue\"},\"authType\":\"secret\"},\"clientType\":\"django\",\"scope\":null,\"vNetSolution\":null,\"secretStore\":null}},{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-test-app/providers/Microsoft.ServiceLinker/linkers/ct132792584341667637\",\"name\":\"ct132792584341667637\",\"type\":\"microsoft.servicelinker/linkers\",\"systemData\":{\"createdBy\":\"d0489f1b-17fd-4924-95a9-9054374b6eff\",\"createdByType\":\"Application\",\"createdAt\":\"2021-10-21T02:54:10.6450409Z\",\"lastModifiedBy\":\"c4288165-6698-45ba-98a5-48ea7791fed3\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2021-10-21T02:54:19.2804674Z\"},\"properties\":{\"publicNetworkSolution\":null,\"configurationInfo\":null,\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/servicelinker-postgresql-canary-test/databases/postgres\",\"resourceProperties\":null,\"type\":\"AzureResource\"},\"authInfo\":{\"name\":\"servicelinker\",\"secretInfo\":{\"secretType\":\"rawValue\"},\"authType\":\"secret\"},\"clientType\":\"django\",\"scope\":null,\"vNetSolution\":null,\"secretStore\":null}},{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-test-app/providers/Microsoft.ServiceLinker/linkers/linker2\",\"name\":\"linker2\",\"type\":\"microsoft.servicelinker/linkers\",\"systemData\":{\"createdBy\":\"d0489f1b-17fd-4924-95a9-9054374b6eff\",\"createdByType\":\"Application\",\"createdAt\":\"2022-05-07T02:22:26.974156Z\",\"lastModifiedBy\":\"c4288165-6698-45ba-98a5-48ea7791fed3\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-01-29T21:32:14.1994995Z\"},\"properties\":{\"publicNetworkSolution\":null,\"configurationInfo\":null,\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/servicelinker-postgresql-canary-test/databases/postgres\",\"resourceProperties\":null,\"type\":\"AzureResource\"},\"authInfo\":{\"name\":\"servicelinker\",\"secretInfo\":{\"secretType\":\"rawValue\"},\"authType\":\"secret\"},\"clientType\":\"django\",\"scope\":null,\"vNetSolution\":null,\"secretStore\":null}},{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-test-app/providers/Microsoft.ServiceLinker/linkers/linker\",\"name\":\"linker\",\"type\":\"microsoft.servicelinker/linkers\",\"systemData\":{\"createdBy\":\"naji@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2021-10-26T02:42:14.0108535Z\",\"lastModifiedBy\":\"c4288165-6698-45ba-98a5-48ea7791fed3\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-01-29T21:32:25.5617996Z\"},\"properties\":{\"publicNetworkSolution\":null,\"configurationInfo\":null,\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Storage/storageAccounts/servicelinkerlocktaske2e/blobServices/default\",\"resourceProperties\":null,\"type\":\"AzureResource\"},\"authInfo\":{\"name\":null,\"secretInfo\":{\"secretType\":\"rawValue\"},\"authType\":\"secret\"},\"clientType\":\"none\",\"scope\":null,\"vNetSolution\":null,\"secretStore\":null}},{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-test-app/providers/Microsoft.ServiceLinker/linkers/appconfig_ef162\",\"name\":\"appconfig_ef162\",\"type\":\"microsoft.servicelinker/linkers\",\"systemData\":{\"createdBy\":\"xiaofanzhou@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2022-02-10T02:03:40.2591718Z\",\"lastModifiedBy\":\"c4288165-6698-45ba-98a5-48ea7791fed3\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-02-10T02:03:53.6206433Z\"},\"properties\":{\"publicNetworkSolution\":null,\"configurationInfo\":null,\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppConfiguration/configurationStores/app-config-servicelinker\",\"resourceProperties\":null,\"type\":\"AzureResource\"},\"authInfo\":{\"roles\":null,\"userName\":null,\"authType\":\"systemAssignedIdentity\",\"deleteOrUpdateBehavior\":null},\"clientType\":\"python\",\"scope\":null,\"vNetSolution\":null,\"secretStore\":null}}]}" } }, - "Get-AzServiceLinkerForWebApp+[NoContext]+Get+$GET+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-test-app/providers/Microsoft.ServiceLinker/linkers/preparedLinker?api-version=2022-05-01+1": { + "Get-AzServiceLinkerForWebApp+[NoContext]+Get+$GET+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-test-app/providers/Microsoft.ServiceLinker/linkers/preparedLinker?api-version=2022-11-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-test-app/providers/Microsoft.ServiceLinker/linkers/preparedLinker?api-version=2022-05-01", + "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-test-app/providers/Microsoft.ServiceLinker/linkers/preparedLinker?api-version=2022-11-01-preview", "Content": null, "Headers": { - "x-ms-unique-id": [ "11" ], - "x-ms-client-request-id": [ "5f6665c0-2308-4d76-be4e-84f3936b8fb0" ], + "x-ms-unique-id": [ "12" ], + "x-ms-client-request-id": [ "3f23bfb6-31c2-4da3-8c1d-cd071cbb48fc" ], "CommandName": [ "Az.ServiceLinker.internal\\Get-AzServiceLinker" ], "FullCommandName": [ "Get-AzServiceLinker_Get" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -62,34 +61,33 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"3a00dd6e-0000-0100-0000-6276145e0000\"" ], - "Vary": [ "Accept-Encoding" ], + "ETag": [ "\"ea0035d4-0000-0100-0000-63d754ea0000\"" ], "x-ms-ratelimit-remaining-subscription-reads": [ "11992" ], "x-ms-providerhub-traffic": [ "True" ], - "mise-correlation-id": [ "7e8d6ad7-f138-460f-8244-49eecef0e3d1" ], + "mise-correlation-id": [ "9e45ab0c-d164-4fd2-b4e1-bed083fb2b51" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "f3618801-ea96-4d31-939e-b1ec826ac006" ], - "x-ms-correlation-request-id": [ "abd00a53-dbe6-4768-abb7-4070e515c9f5" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T064337Z:abd00a53-dbe6-4768-abb7-4070e515c9f5" ], + "x-ms-request-id": [ "a6bd207c-e07d-45db-a3c7-d2947066a440" ], + "x-ms-correlation-request-id": [ "9ebea682-6e37-491c-a47e-cea97cafe4e4" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20230130T074224Z:9ebea682-6e37-491c-a47e-cea97cafe4e4" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:43:36 GMT" ] + "Date": [ "Mon, 30 Jan 2023 07:42:24 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "814" ], + "Content-Length": [ "1090" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-test-app/providers/Microsoft.ServiceLinker/linkers/preparedLinker\",\"name\":\"preparedLinker\",\"type\":\"microsoft.servicelinker/linkers\",\"properties\":{\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/servicelinker-postgresql/databases/pollsdb\",\"resourceProperties\":{\"connectAsKubernetesCsiDriver\":false,\"type\":\"KeyVault\"},\"type\":\"AzureResource\"},\"authInfo\":{\"name\":\"xichen\",\"secretInfo\":{\"value\":null,\"secretType\":\"rawValue\"},\"authType\":\"secret\"},\"clientType\":\"dotnet\",\"scope\":null,\"vNetSolution\":null,\"secretStore\":null}}" + "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-test-app/providers/Microsoft.ServiceLinker/linkers/preparedLinker\",\"name\":\"preparedLinker\",\"type\":\"microsoft.servicelinker/linkers\",\"systemData\":{\"createdBy\":\"naji@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2021-10-20T02:10:21.6542229Z\",\"lastModifiedBy\":\"xiaofanzhou@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-30T05:25:55.6334752Z\"},\"properties\":{\"publicNetworkSolution\":null,\"configurationInfo\":null,\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/servicelinker-postgresql/databases/pollsdb\",\"resourceProperties\":{\"connectAsKubernetesCsiDriver\":false,\"type\":\"KeyVault\"},\"type\":\"AzureResource\"},\"authInfo\":{\"name\":\"xichen\",\"secretInfo\":{\"secretType\":\"rawValue\"},\"authType\":\"secret\"},\"clientType\":\"dotnet\",\"scope\":null,\"vNetSolution\":null,\"secretStore\":null}}" } }, - "Get-AzServiceLinkerForWebApp+[NoContext]+GetViaIdentity+$GET+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-test-app/providers/Microsoft.ServiceLinker/linkers/preparedLinker?api-version=2022-05-01+1": { + "Get-AzServiceLinkerForWebApp+[NoContext]+GetViaIdentity+$GET+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-test-app/providers/Microsoft.ServiceLinker/linkers/preparedLinker?api-version=2022-11-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-test-app/providers/Microsoft.ServiceLinker/linkers/preparedLinker?api-version=2022-05-01", + "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-test-app/providers/Microsoft.ServiceLinker/linkers/preparedLinker?api-version=2022-11-01-preview", "Content": null, "Headers": { - "x-ms-unique-id": [ "12" ], - "x-ms-client-request-id": [ "7690787a-8c36-4380-a058-f93bf9c7db0b" ], + "x-ms-unique-id": [ "13" ], + "x-ms-client-request-id": [ "a2e4ea01-5659-4842-b47c-f29d2876fded" ], "CommandName": [ "Az.ServiceLinker.internal\\Get-AzServiceLinker" ], "FullCommandName": [ "Get-AzServiceLinker_GetViaIdentity" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -104,24 +102,23 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"3a00dd6e-0000-0100-0000-6276145e0000\"" ], - "Vary": [ "Accept-Encoding" ], + "ETag": [ "\"ea0035d4-0000-0100-0000-63d754ea0000\"" ], "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], "x-ms-providerhub-traffic": [ "True" ], - "mise-correlation-id": [ "5a454291-96c6-458b-985b-11e1f591f352" ], + "mise-correlation-id": [ "348cee33-1dfe-4dc4-a0e3-e9f9cb2a27f7" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "cd0c4a12-fff0-4657-a3ea-421ab859182b" ], - "x-ms-correlation-request-id": [ "0528b328-4ecb-4fa4-8bf0-72a8d268eff7" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T064338Z:0528b328-4ecb-4fa4-8bf0-72a8d268eff7" ], + "x-ms-request-id": [ "c2ec160b-b970-459e-9106-80daffc3924a" ], + "x-ms-correlation-request-id": [ "178089f3-2b58-4902-85ca-91c0343a34de" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20230130T074225Z:178089f3-2b58-4902-85ca-91c0343a34de" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:43:37 GMT" ] + "Date": [ "Mon, 30 Jan 2023 07:42:24 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "814" ], + "Content-Length": [ "1090" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-test-app/providers/Microsoft.ServiceLinker/linkers/preparedLinker\",\"name\":\"preparedLinker\",\"type\":\"microsoft.servicelinker/linkers\",\"properties\":{\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/servicelinker-postgresql/databases/pollsdb\",\"resourceProperties\":{\"connectAsKubernetesCsiDriver\":false,\"type\":\"KeyVault\"},\"type\":\"AzureResource\"},\"authInfo\":{\"name\":\"xichen\",\"secretInfo\":{\"value\":null,\"secretType\":\"rawValue\"},\"authType\":\"secret\"},\"clientType\":\"dotnet\",\"scope\":null,\"vNetSolution\":null,\"secretStore\":null}}" + "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-test-app/providers/Microsoft.ServiceLinker/linkers/preparedLinker\",\"name\":\"preparedLinker\",\"type\":\"microsoft.servicelinker/linkers\",\"systemData\":{\"createdBy\":\"naji@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2021-10-20T02:10:21.6542229Z\",\"lastModifiedBy\":\"xiaofanzhou@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-30T05:25:55.6334752Z\"},\"properties\":{\"publicNetworkSolution\":null,\"configurationInfo\":null,\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/servicelinker-postgresql/databases/pollsdb\",\"resourceProperties\":{\"connectAsKubernetesCsiDriver\":false,\"type\":\"KeyVault\"},\"type\":\"AzureResource\"},\"authInfo\":{\"name\":\"xichen\",\"secretInfo\":{\"secretType\":\"rawValue\"},\"authType\":\"secret\"},\"clientType\":\"dotnet\",\"scope\":null,\"vNetSolution\":null,\"secretStore\":null}}" } } } \ No newline at end of file diff --git a/src/ServiceLinker/test/New-AzServiceLinkerForContainerApp.Recording.json b/src/ServiceLinker/test/New-AzServiceLinkerForContainerApp.Recording.json index 52b5d44d16b5..054525582027 100644 --- a/src/ServiceLinker/test/New-AzServiceLinkerForContainerApp.Recording.json +++ b/src/ServiceLinker/test/New-AzServiceLinkerForContainerApp.Recording.json @@ -1,8 +1,8 @@ { - "New-AzServiceLinkerForContainerApp+[NoContext]+New storage connection+$PUT+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/ps_linker?api-version=2022-05-01+1": { + "New-AzServiceLinkerForContainerApp+[NoContext]+New storage connection+$PUT+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/ps_linker?api-version=2022-11-01-preview+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/ps_linker?api-version=2022-05-01", + "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/ps_linker?api-version=2022-11-01-preview", "Content": "{\n \"properties\": {\n \"targetService\": {\n \"type\": \"AzureResource\",\n \"id\": \"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/servicelinker-postgresql/databases/postgres\"\n },\n \"authInfo\": {\n \"authType\": \"secret\",\n \"secretInfo\": {\n \"secretType\": \"rawValue\"\n }\n },\n \"clientType\": \"none\",\n \"scope\": \"simple-hello-world-container\"\n }\n}", "Headers": { }, @@ -16,35 +16,35 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"f50007bc-0000-0200-0000-627615330000\"" ], + "ETag": [ "\"eb007842-0000-0100-0000-63d7752e0000\"" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], "x-ms-providerhub-traffic": [ "True" ], - "mise-correlation-id": [ "a5ed8284-2458-41f3-a6e7-8a9f020ed43a" ], + "mise-correlation-id": [ "77bdcbcf-044a-4dc9-aa14-22a85d6b5654" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/73fd2bbd-0dbb-4940-a5b0-31d1133ae26e*F3A831441F9BE538449AB2D6D310A20402B5E61A46EA88958FD088AC94F01F64?api-version=2022-05-01" ], - "x-ms-request-id": [ "73fd2bbd-0dbb-4940-a5b0-31d1133ae26e" ], - "x-ms-correlation-request-id": [ "7fda5147-5bba-4b28-8e81-5152f75d972d" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T064404Z:7fda5147-5bba-4b28-8e81-5152f75d972d" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/dcce5c2b-d925-42ff-877f-cc79198812c1*F3A831441F9BE538449AB2D6D310A20402B5E61A46EA88958FD088AC94F01F64?api-version=2021-01-01-privatepreview" ], + "x-ms-request-id": [ "dcce5c2b-d925-42ff-877f-cc79198812c1" ], + "x-ms-correlation-request-id": [ "cc0b8227-7687-43e9-a856-c63772cb3ba3" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20230130T074342Z:cc0b8227-7687-43e9-a856-c63772cb3ba3" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:44:03 GMT" ] + "Date": [ "Mon, 30 Jan 2023 07:43:42 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1026" ], + "Content-Length": [ "1067" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/ps_linker\",\"name\":\"ps_linker\",\"type\":\"microsoft.servicelinker/linkers\",\"systemData\":{\"createdBy\":\"xiaofanzhou@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2022-05-07T03:22:30.2928748Z\",\"lastModifiedBy\":\"xiaofanzhou@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2022-05-07T06:44:03.2367149Z\"},\"properties\":{\"provisioningState\":\"Accepted\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/servicelinker-postgresql/databases/postgres\",\"resourceProperties\":null,\"type\":\"AzureResource\"},\"authInfo\":{\"name\":null,\"secretInfo\":{\"value\":null,\"secretType\":\"rawValue\"},\"authType\":\"secret\"},\"vNetSolution\":null,\"clientType\":\"none\",\"secretStore\":null,\"scope\":\"simple-hello-world-container\"}}" + "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/ps_linker\",\"name\":\"ps_linker\",\"type\":\"microsoft.servicelinker/linkers\",\"systemData\":{\"createdBy\":\"xiaofanzhou@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-01-30T07:43:40.9723171Z\",\"lastModifiedBy\":\"xiaofanzhou@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-30T07:43:40.9723171Z\"},\"properties\":{\"provisioningState\":\"Accepted\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/servicelinker-postgresql/databases/postgres\",\"resourceProperties\":null,\"type\":\"AzureResource\"},\"authInfo\":{\"name\":null,\"secretInfo\":{\"secretType\":\"rawValue\"},\"authType\":\"secret\"},\"vNetSolution\":null,\"clientType\":\"none\",\"secretStore\":null,\"scope\":\"simple-hello-world-container\",\"publicNetworkSolution\":null,\"configurationInfo\":null}}" } }, - "New-AzServiceLinkerForContainerApp+[NoContext]+New storage connection+$GET+https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/73fd2bbd-0dbb-4940-a5b0-31d1133ae26e*F3A831441F9BE538449AB2D6D310A20402B5E61A46EA88958FD088AC94F01F64?api-version=2022-05-01+2": { + "New-AzServiceLinkerForContainerApp+[NoContext]+New storage connection+$GET+https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/dcce5c2b-d925-42ff-877f-cc79198812c1*F3A831441F9BE538449AB2D6D310A20402B5E61A46EA88958FD088AC94F01F64?api-version=2021-01-01-privatepreview+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/73fd2bbd-0dbb-4940-a5b0-31d1133ae26e*F3A831441F9BE538449AB2D6D310A20402B5E61A46EA88958FD088AC94F01F64?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/dcce5c2b-d925-42ff-877f-cc79198812c1*F3A831441F9BE538449AB2D6D310A20402B5E61A46EA88958FD088AC94F01F64?api-version=2021-01-01-privatepreview", "Content": null, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "14" ], - "x-ms-client-request-id": [ "9fa6839c-c87b-4512-9cf1-a640242c92cd" ], + "x-ms-unique-id": [ "15" ], + "x-ms-client-request-id": [ "7d71c78e-f4a0-496d-8c94-7ab407fd607a" ], "CommandName": [ "Az.ServiceLinker.internal\\New-AzServiceLinker" ], "FullCommandName": [ "New-AzServiceLinker_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -58,32 +58,32 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"03008513-0000-0100-0000-627615420000\"" ], + "ETag": [ "\"b204c1a4-0000-0100-0000-63d775400000\"" ], "x-ms-ratelimit-remaining-subscription-reads": [ "11990" ], - "x-ms-request-id": [ "a43e34c6-b705-48b7-985a-845eebc23fc1" ], - "x-ms-correlation-request-id": [ "30233233-e46f-4cc8-98bd-a436d259348b" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T064434Z:30233233-e46f-4cc8-98bd-a436d259348b" ], + "x-ms-request-id": [ "d10f9c24-246b-4d14-b6bb-f01c97b6b028" ], + "x-ms-correlation-request-id": [ "7a615e89-e2e7-4cfd-b0af-f866627f1166" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20230130T074413Z:7a615e89-e2e7-4cfd-b0af-f866627f1166" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:44:34 GMT" ] + "Date": [ "Mon, 30 Jan 2023 07:44:13 GMT" ] }, "ContentHeaders": { "Content-Length": [ "830" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/73fd2bbd-0dbb-4940-a5b0-31d1133ae26e*F3A831441F9BE538449AB2D6D310A20402B5E61A46EA88958FD088AC94F01F64\",\"name\":\"73fd2bbd-0dbb-4940-a5b0-31d1133ae26e*F3A831441F9BE538449AB2D6D310A20402B5E61A46EA88958FD088AC94F01F64\",\"resourceId\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/ps_linker\",\"status\":\"Succeeded\",\"startTime\":\"2022-05-07T06:44:03.7329314Z\",\"endTime\":\"2022-05-07T06:44:18.2775472Z\",\"properties\":{\"message\":\"Deny public network access is set to yes. Please confirm you are using private endpoint connection to access target resource.\"}}" + "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/dcce5c2b-d925-42ff-877f-cc79198812c1*F3A831441F9BE538449AB2D6D310A20402B5E61A46EA88958FD088AC94F01F64\",\"name\":\"dcce5c2b-d925-42ff-877f-cc79198812c1*F3A831441F9BE538449AB2D6D310A20402B5E61A46EA88958FD088AC94F01F64\",\"resourceId\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/ps_linker\",\"status\":\"Succeeded\",\"startTime\":\"2023-01-30T07:43:42.1523561Z\",\"endTime\":\"2023-01-30T07:44:00.8291778Z\",\"properties\":{\"Message\":\"Deny public network access is set to yes. Please confirm you are using private endpoint connection to access target resource.\"}}" } }, - "New-AzServiceLinkerForContainerApp+[NoContext]+New storage connection+$GET+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/ps_linker?api-version=2022-05-01+3": { + "New-AzServiceLinkerForContainerApp+[NoContext]+New storage connection+$GET+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/ps_linker?api-version=2022-11-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/ps_linker?api-version=2022-05-01", + "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/ps_linker?api-version=2022-11-01-preview", "Content": null, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "15" ], - "x-ms-client-request-id": [ "9fa6839c-c87b-4512-9cf1-a640242c92cd" ], + "x-ms-unique-id": [ "16" ], + "x-ms-client-request-id": [ "7d71c78e-f4a0-496d-8c94-7ab407fd607a" ], "CommandName": [ "Az.ServiceLinker.internal\\New-AzServiceLinker" ], "FullCommandName": [ "New-AzServiceLinker_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -97,34 +97,33 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"3a00c471-0000-0100-0000-627615420000\"" ], - "Vary": [ "Accept-Encoding" ], + "ETag": [ "\"eb000b43-0000-0100-0000-63d775400000\"" ], "x-ms-ratelimit-remaining-subscription-reads": [ "11989" ], "x-ms-providerhub-traffic": [ "True" ], - "mise-correlation-id": [ "e52f3b93-3125-4497-bd63-cd1a5dedf15c" ], + "mise-correlation-id": [ "bb686ff6-6396-4780-9bce-4cd1b7f9474f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "9ddb8e20-88b1-48e0-9eec-51eedf47ab85" ], - "x-ms-correlation-request-id": [ "033c2dc0-4fd4-48f7-ab8c-46d6a7fe6017" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T064435Z:033c2dc0-4fd4-48f7-ab8c-46d6a7fe6017" ], + "x-ms-request-id": [ "0df54728-acf6-4a00-ae06-a9232a22b474" ], + "x-ms-correlation-request-id": [ "637b390a-bb44-4d95-a50d-bdab91523e1f" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20230130T074414Z:637b390a-bb44-4d95-a50d-bdab91523e1f" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:44:34 GMT" ] + "Date": [ "Mon, 30 Jan 2023 07:44:14 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "785" ], + "Content-Length": [ "1068" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/ps_linker\",\"name\":\"ps_linker\",\"type\":\"microsoft.servicelinker/linkers\",\"properties\":{\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/servicelinker-postgresql/databases/postgres\",\"resourceProperties\":null,\"type\":\"AzureResource\"},\"authInfo\":{\"name\":null,\"secretInfo\":{\"value\":null,\"secretType\":\"rawValue\"},\"authType\":\"secret\"},\"clientType\":\"none\",\"scope\":\"simple-hello-world-container\",\"vNetSolution\":null,\"secretStore\":null}}" + "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/ps_linker\",\"name\":\"ps_linker\",\"type\":\"microsoft.servicelinker/linkers\",\"systemData\":{\"createdBy\":\"xiaofanzhou@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-01-30T07:43:40.9723171Z\",\"lastModifiedBy\":\"xiaofanzhou@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-30T07:43:40.9723171Z\"},\"properties\":{\"publicNetworkSolution\":null,\"configurationInfo\":null,\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/servicelinker-postgresql/databases/postgres\",\"resourceProperties\":null,\"type\":\"AzureResource\"},\"authInfo\":{\"name\":null,\"secretInfo\":{\"secretType\":\"rawValue\"},\"authType\":\"secret\"},\"clientType\":\"none\",\"scope\":\"simple-hello-world-container\",\"vNetSolution\":null,\"secretStore\":null}}" } }, - "New-AzServiceLinkerForContainerApp+[NoContext]+New storage connection+$GET+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers?api-version=2022-05-01+4": { + "New-AzServiceLinkerForContainerApp+[NoContext]+New storage connection+$GET+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers?api-version=2022-11-01-preview+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers?api-version=2022-05-01", + "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers?api-version=2022-11-01-preview", "Content": null, "Headers": { - "x-ms-unique-id": [ "16" ], - "x-ms-client-request-id": [ "aa86b17b-5717-48f2-b0e3-412382a1e180" ], + "x-ms-unique-id": [ "17" ], + "x-ms-client-request-id": [ "a6465aa2-04a4-4060-aa06-0f8654b246b5" ], "CommandName": [ "Az.ServiceLinker.internal\\Get-AzServiceLinker" ], "FullCommandName": [ "Get-AzServiceLinker_List" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -139,23 +138,22 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], "x-ms-ratelimit-remaining-subscription-reads": [ "11988" ], "x-ms-providerhub-traffic": [ "True" ], - "mise-correlation-id": [ "96881402-6a9e-4bfe-8681-9b392da770eb" ], + "mise-correlation-id": [ "942b2cb1-f57c-48bc-a78e-747c5a31cb03" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "0af39d0c-d7c9-4edc-a0a1-af633d87bf52" ], - "x-ms-correlation-request-id": [ "4249a53f-fde3-45bf-b02f-c9da3b2010ef" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T064435Z:4249a53f-fde3-45bf-b02f-c9da3b2010ef" ], + "x-ms-request-id": [ "992ca6fe-6112-4c53-85c9-0af126398488" ], + "x-ms-correlation-request-id": [ "1cde2567-041a-46aa-8b08-a5b8129cd615" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20230130T074415Z:1cde2567-041a-46aa-8b08-a5b8129cd615" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:44:35 GMT" ] + "Date": [ "Mon, 30 Jan 2023 07:44:15 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1642" ], + "Content-Length": [ "15499" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/preparedLinker\",\"name\":\"preparedLinker\",\"type\":\"microsoft.servicelinker/linkers\",\"properties\":{\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/xichen-postgresql/databases/testdb\",\"resourceProperties\":{\"connectAsKubernetesCsiDriver\":false,\"type\":\"KeyVault\"},\"type\":\"AzureResource\"},\"authInfo\":{\"name\":\"xichen\",\"secretInfo\":{\"value\":null,\"secretType\":\"rawValue\"},\"authType\":\"secret\"},\"clientType\":\"dotnet\",\"scope\":\"simple-hello-world-container\",\"vNetSolution\":null,\"secretStore\":null}},{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/ps_linker\",\"name\":\"ps_linker\",\"type\":\"microsoft.servicelinker/linkers\",\"properties\":{\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/servicelinker-postgresql/databases/postgres\",\"resourceProperties\":null,\"type\":\"AzureResource\"},\"authInfo\":{\"name\":null,\"secretInfo\":{\"value\":null,\"secretType\":\"rawValue\"},\"authType\":\"secret\"},\"clientType\":\"none\",\"scope\":\"simple-hello-world-container\",\"vNetSolution\":null,\"secretStore\":null}}]}" + "Content": "{\"value\":[{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/storageblob_42dda\",\"name\":\"storageblob_42dda\",\"type\":\"microsoft.servicelinker/linkers\",\"systemData\":{\"createdBy\":\"qianwens@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2022-05-10T11:37:01.553663Z\",\"lastModifiedBy\":\"qianwens@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2022-05-10T11:37:01.553663Z\"},\"properties\":{\"publicNetworkSolution\":null,\"configurationInfo\":null,\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Storage/storageAccounts/xichenstorage/blobServices/default\",\"resourceProperties\":null,\"type\":\"AzureResource\"},\"authInfo\":{\"roles\":null,\"userName\":null,\"authType\":\"systemAssignedIdentity\",\"deleteOrUpdateBehavior\":null},\"clientType\":\"none\",\"scope\":\"simple-hello-world-container\",\"vNetSolution\":null,\"secretStore\":null}},{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/CT133071819614260455\",\"name\":\"CT133071819614260455\",\"type\":\"microsoft.servicelinker/linkers\",\"systemData\":{\"createdBy\":\"d0489f1b-17fd-4924-95a9-9054374b6eff\",\"createdByType\":\"Application\",\"createdAt\":\"2022-09-09T07:26:04.4305254Z\",\"lastModifiedBy\":\"d0489f1b-17fd-4924-95a9-9054374b6eff\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-09-09T07:26:04.4305254Z\"},\"properties\":{\"publicNetworkSolution\":null,\"configurationInfo\":null,\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.SignalRService/WebPubSub/servicelinker-webpubsub-canarytest\",\"resourceProperties\":null,\"type\":\"AzureResource\"},\"authInfo\":{\"subscriptionId\":\"937bc588-a144-4083-8612-5f9ffbbddb14\",\"clientId\":\"54c572a9-859e-4427-bba1-5b356c0f51da\",\"roles\":null,\"authType\":\"userAssignedIdentity\",\"deleteOrUpdateBehavior\":null},\"clientType\":\"dotnet\",\"scope\":\"simple-hello-world-container\",\"vNetSolution\":null,\"secretStore\":null}},{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/CT133071834490324847\",\"name\":\"CT133071834490324847\",\"type\":\"microsoft.servicelinker/linkers\",\"systemData\":{\"createdBy\":\"d0489f1b-17fd-4924-95a9-9054374b6eff\",\"createdByType\":\"Application\",\"createdAt\":\"2022-09-09T07:50:51.7181265Z\",\"lastModifiedBy\":\"d0489f1b-17fd-4924-95a9-9054374b6eff\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-09-09T07:50:51.7181265Z\"},\"properties\":{\"publicNetworkSolution\":null,\"configurationInfo\":null,\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.SignalRService/WebPubSub/servicelinker-webpubsub-canarytest\",\"resourceProperties\":null,\"type\":\"AzureResource\"},\"authInfo\":{\"subscriptionId\":\"937bc588-a144-4083-8612-5f9ffbbddb14\",\"clientId\":\"54c572a9-859e-4427-bba1-5b356c0f51da\",\"roles\":null,\"authType\":\"userAssignedIdentity\",\"deleteOrUpdateBehavior\":null},\"clientType\":\"dotnet\",\"scope\":\"simple-hello-world-container\",\"vNetSolution\":null,\"secretStore\":null}},{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/CT133075146297572441\",\"name\":\"CT133075146297572441\",\"type\":\"microsoft.servicelinker/linkers\",\"systemData\":{\"createdBy\":\"d0489f1b-17fd-4924-95a9-9054374b6eff\",\"createdByType\":\"Application\",\"createdAt\":\"2022-09-13T03:50:32.2444355Z\",\"lastModifiedBy\":\"d0489f1b-17fd-4924-95a9-9054374b6eff\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-09-13T03:50:32.2444355Z\"},\"properties\":{\"publicNetworkSolution\":null,\"configurationInfo\":null,\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.SignalRService/WebPubSub/servicelinker-webpubsub-canarytest\",\"resourceProperties\":null,\"type\":\"AzureResource\"},\"authInfo\":{\"subscriptionId\":\"937bc588-a144-4083-8612-5f9ffbbddb14\",\"clientId\":\"54c572a9-859e-4427-bba1-5b356c0f51da\",\"roles\":null,\"authType\":\"userAssignedIdentity\",\"deleteOrUpdateBehavior\":null},\"clientType\":\"dotnet\",\"scope\":\"simple-hello-world-container\",\"vNetSolution\":null,\"secretStore\":null}},{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/CT133075261430617046\",\"name\":\"CT133075261430617046\",\"type\":\"microsoft.servicelinker/linkers\",\"systemData\":{\"createdBy\":\"d0489f1b-17fd-4924-95a9-9054374b6eff\",\"createdByType\":\"Application\",\"createdAt\":\"2022-09-13T07:02:25.313822Z\",\"lastModifiedBy\":\"d0489f1b-17fd-4924-95a9-9054374b6eff\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-09-13T07:02:25.313822Z\"},\"properties\":{\"publicNetworkSolution\":null,\"configurationInfo\":null,\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.SignalRService/WebPubSub/servicelinker-webpubsub-canarytest\",\"resourceProperties\":null,\"type\":\"AzureResource\"},\"authInfo\":{\"subscriptionId\":\"937bc588-a144-4083-8612-5f9ffbbddb14\",\"clientId\":\"54c572a9-859e-4427-bba1-5b356c0f51da\",\"roles\":null,\"authType\":\"userAssignedIdentity\",\"deleteOrUpdateBehavior\":null},\"clientType\":\"dotnet\",\"scope\":\"simple-hello-world-container\",\"vNetSolution\":null,\"secretStore\":null}},{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/CT133075265767517502\",\"name\":\"CT133075265767517502\",\"type\":\"microsoft.servicelinker/linkers\",\"systemData\":{\"createdBy\":\"d0489f1b-17fd-4924-95a9-9054374b6eff\",\"createdByType\":\"Application\",\"createdAt\":\"2022-09-13T07:09:38.4708422Z\",\"lastModifiedBy\":\"d0489f1b-17fd-4924-95a9-9054374b6eff\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-09-13T07:09:38.4708422Z\"},\"properties\":{\"publicNetworkSolution\":null,\"configurationInfo\":null,\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.SignalRService/WebPubSub/servicelinker-webpubsub-canarytest\",\"resourceProperties\":null,\"type\":\"AzureResource\"},\"authInfo\":{\"subscriptionId\":\"937bc588-a144-4083-8612-5f9ffbbddb14\",\"clientId\":\"54c572a9-859e-4427-bba1-5b356c0f51da\",\"roles\":null,\"authType\":\"userAssignedIdentity\",\"deleteOrUpdateBehavior\":null},\"clientType\":\"dotnet\",\"scope\":\"simple-hello-world-container\",\"vNetSolution\":null,\"secretStore\":null}},{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/CT133135769978116626\",\"name\":\"CT133135769978116626\",\"type\":\"microsoft.servicelinker/linkers\",\"systemData\":{\"createdBy\":\"d0489f1b-17fd-4924-95a9-9054374b6eff\",\"createdByType\":\"Application\",\"createdAt\":\"2022-11-22T07:50:00.1469792Z\",\"lastModifiedBy\":\"d0489f1b-17fd-4924-95a9-9054374b6eff\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-11-22T07:50:00.1469792Z\"},\"properties\":{\"publicNetworkSolution\":null,\"configurationInfo\":null,\"provisioningState\":\"Failed\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.SignalRService/WebPubSub/servicelinker-webpubsub-canarytest\",\"resourceProperties\":null,\"type\":\"AzureResource\"},\"authInfo\":{\"subscriptionId\":\"937bc588-a144-4083-8612-5f9ffbbddb14\",\"clientId\":\"5e18f16a-0cc9-4eb2-9277-fe7c6700c785\",\"roles\":null,\"authType\":\"userAssignedIdentity\",\"deleteOrUpdateBehavior\":\"Default\"},\"clientType\":\"dotnet\",\"scope\":\"simple-hello-world-container\",\"vNetSolution\":null,\"secretStore\":null}},{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/CT133152984086850559\",\"name\":\"CT133152984086850559\",\"type\":\"microsoft.servicelinker/linkers\",\"systemData\":{\"createdBy\":\"d0489f1b-17fd-4924-95a9-9054374b6eff\",\"createdByType\":\"Application\",\"createdAt\":\"2022-12-12T06:00:40.9553357Z\",\"lastModifiedBy\":\"d0489f1b-17fd-4924-95a9-9054374b6eff\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-12-12T06:00:40.9553357Z\"},\"properties\":{\"publicNetworkSolution\":null,\"configurationInfo\":null,\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.SignalRService/SignalR/servicelinker-signalr\",\"resourceProperties\":null,\"type\":\"AzureResource\"},\"authInfo\":{\"clientId\":\"323f212a-568e-44b5-b296-abaad161b929\",\"principalId\":\"b2ffa9f4-02a3-4cdb-9333-4f494db9693d\",\"roles\":null,\"authType\":\"servicePrincipalSecret\",\"deleteOrUpdateBehavior\":\"Default\"},\"clientType\":\"dotnet\",\"scope\":\"simple-hello-world-container\",\"vNetSolution\":null,\"secretStore\":null}},{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/CT133153789828091558\",\"name\":\"CT133153789828091558\",\"type\":\"microsoft.servicelinker/linkers\",\"systemData\":{\"createdBy\":\"d0489f1b-17fd-4924-95a9-9054374b6eff\",\"createdByType\":\"Application\",\"createdAt\":\"2022-12-13T04:23:04.7629589Z\",\"lastModifiedBy\":\"d0489f1b-17fd-4924-95a9-9054374b6eff\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-12-13T04:23:04.7629589Z\"},\"properties\":{\"publicNetworkSolution\":null,\"configurationInfo\":null,\"provisioningState\":\"Failed\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.SignalRService/WebPubSub/servicelinker-webpubsub-canarytest\",\"resourceProperties\":null,\"type\":\"AzureResource\"},\"authInfo\":{\"subscriptionId\":\"937bc588-a144-4083-8612-5f9ffbbddb14\",\"clientId\":\"5e18f16a-0cc9-4eb2-9277-fe7c6700c785\",\"roles\":null,\"authType\":\"userAssignedIdentity\",\"deleteOrUpdateBehavior\":\"Default\"},\"clientType\":\"dotnet\",\"scope\":\"simple-hello-world-container\",\"vNetSolution\":null,\"secretStore\":null}},{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/CT133154596106083573\",\"name\":\"CT133154596106083573\",\"type\":\"microsoft.servicelinker/linkers\",\"systemData\":{\"createdBy\":\"d0489f1b-17fd-4924-95a9-9054374b6eff\",\"createdByType\":\"Application\",\"createdAt\":\"2022-12-14T02:47:22.440963Z\",\"lastModifiedBy\":\"d0489f1b-17fd-4924-95a9-9054374b6eff\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-12-14T02:47:22.440963Z\"},\"properties\":{\"publicNetworkSolution\":null,\"configurationInfo\":null,\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourcegroups/servicelinker-test-linux-group/providers/Microsoft.AppConfiguration/configurationStores/servicelinker-app-configuration\",\"resourceProperties\":null,\"type\":\"AzureResource\"},\"authInfo\":{\"roles\":null,\"userName\":null,\"authType\":\"systemAssignedIdentity\",\"deleteOrUpdateBehavior\":\"Default\"},\"clientType\":\"dotnet\",\"scope\":\"simple-hello-world-container\",\"vNetSolution\":null,\"secretStore\":null}},{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/CT133154639039154615\",\"name\":\"CT133154639039154615\",\"type\":\"microsoft.servicelinker/linkers\",\"systemData\":{\"createdBy\":\"d0489f1b-17fd-4924-95a9-9054374b6eff\",\"createdByType\":\"Application\",\"createdAt\":\"2022-12-14T03:59:05.4239822Z\",\"lastModifiedBy\":\"d0489f1b-17fd-4924-95a9-9054374b6eff\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-12-14T03:59:05.4239822Z\"},\"properties\":{\"publicNetworkSolution\":null,\"configurationInfo\":null,\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourcegroups/servicelinker-test-linux-group/providers/Microsoft.AppConfiguration/configurationStores/servicelinker-app-configuration\",\"resourceProperties\":null,\"type\":\"AzureResource\"},\"authInfo\":{\"roles\":null,\"userName\":null,\"authType\":\"systemAssignedIdentity\",\"deleteOrUpdateBehavior\":\"Default\"},\"clientType\":\"dotnet\",\"scope\":\"simple-hello-world-container\",\"vNetSolution\":null,\"secretStore\":null}},{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/preparedLinker\",\"name\":\"preparedLinker\",\"type\":\"microsoft.servicelinker/linkers\",\"systemData\":{\"createdBy\":\"xiaofanzhou@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-01-30T03:37:04.9479159Z\",\"lastModifiedBy\":\"xiaofanzhou@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-30T05:24:32.2335746Z\"},\"properties\":{\"publicNetworkSolution\":null,\"configurationInfo\":null,\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppConfiguration/configurationStores/servicelinker-app-configuration\",\"resourceProperties\":{\"connectAsKubernetesCsiDriver\":false,\"type\":\"KeyVault\"},\"type\":\"AzureResource\"},\"authInfo\":{\"roles\":[],\"userName\":null,\"authType\":\"systemAssignedIdentity\",\"deleteOrUpdateBehavior\":null},\"clientType\":\"dotnet\",\"scope\":\"simple-hello-world-container\",\"vNetSolution\":null,\"secretStore\":null}},{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/ps_linker\",\"name\":\"ps_linker\",\"type\":\"microsoft.servicelinker/linkers\",\"systemData\":{\"createdBy\":\"xiaofanzhou@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-01-30T07:43:40.9723171Z\",\"lastModifiedBy\":\"xiaofanzhou@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-30T07:43:40.9723171Z\"},\"properties\":{\"publicNetworkSolution\":null,\"configurationInfo\":null,\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/servicelinker-postgresql/databases/postgres\",\"resourceProperties\":null,\"type\":\"AzureResource\"},\"authInfo\":{\"name\":null,\"secretInfo\":{\"secretType\":\"rawValue\"},\"authType\":\"secret\"},\"clientType\":\"none\",\"scope\":\"simple-hello-world-container\",\"vNetSolution\":null,\"secretStore\":null}}]}" } } } \ No newline at end of file diff --git a/src/ServiceLinker/test/New-AzServiceLinkerForSpringCloud.Recording.json b/src/ServiceLinker/test/New-AzServiceLinkerForSpringCloud.Recording.json deleted file mode 100644 index 32b62b49d677..000000000000 --- a/src/ServiceLinker/test/New-AzServiceLinkerForSpringCloud.Recording.json +++ /dev/null @@ -1,164 +0,0 @@ -{ - "New-AzServiceLinkerForSpringCloud+[NoContext]+CreateExpanded+$PUT+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers/ps_linker?api-version=2022-05-01+1": { - "Request": { - "Method": "PUT", - "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers/ps_linker?api-version=2022-05-01", - "Content": "{\n \"properties\": {\n \"targetService\": {\n \"type\": \"AzureResource\",\n \"id\": \"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.KeyVault/vaults/servicelinker-test-kv\"\n },\n \"authInfo\": {\n \"authType\": \"systemAssignedIdentity\"\n },\n \"clientType\": \"none\"\n }\n}", - "Headers": { - "x-ms-serviceconnector-user-token": [ "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6ImpTMVhvMU9XRGpfNTJ2YndHTmd2UU8yVnpNYyIsImtpZCI6ImpTMVhvMU9XRGpfNTJ2YndHTmd2UU8yVnpNYyJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuY29yZS53aW5kb3dzLm5ldC8iLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLm5ldC83MmY5ODhiZi04NmYxLTQxYWYtOTFhYi0yZDdjZDAxMWRiNDcvIiwiaWF0IjoxNjUxOTAyNDY5LCJuYmYiOjE2NTE5MDI0NjksImV4cCI6MTY1MTkwNzYyMSwiX2NsYWltX25hbWVzIjp7Imdyb3VwcyI6InNyYzEifSwiX2NsYWltX3NvdXJjZXMiOnsic3JjMSI6eyJlbmRwb2ludCI6Imh0dHBzOi8vZ3JhcGgud2luZG93cy5uZXQvNzJmOTg4YmYtODZmMS00MWFmLTkxYWItMmQ3Y2QwMTFkYjQ3L3VzZXJzL2IwYTlkM2M2LTMzODctNDA2Ny05ZjAzLTM5ODA4ZTcyOTFmZi9nZXRNZW1iZXJPYmplY3RzIn19LCJhY3IiOiIxIiwiYWlvIjoiQVZRQXEvOFRBQUFBY3dtVlJNQlJ2ektLbEdQR2hDWFJOc3ptUCthYzRCNHlGSnVjRE9RWmZFQ3YwWXovRXNNS3BGRzRmakUwU3NLSEsyZXA5WmxFNXAvYktUdmJHaWRtTEg3alkzRzN4a3JQcGphTm5kYTY3Rjg9IiwiYW1yIjpbInB3ZCIsInJzYSIsIm1mYSJdLCJhcHBpZCI6IjE5NTBhMjU4LTIyN2ItNGUzMS1hOWNmLTcxNzQ5NTk0NWZjMiIsImFwcGlkYWNyIjoiMCIsImZhbWlseV9uYW1lIjoiWmhvdSIsImdpdmVuX25hbWUiOiJYaWFvZmFuIiwiaXBhZGRyIjoiMTY3LjIyMC4yNTUuNzkiLCJuYW1lIjoiWGlhb2ZhbiBaaG91Iiwib2lkIjoiYjBhOWQzYzYtMzM4Ny00MDY3LTlmMDMtMzk4MDhlNzI5MWZmIiwib25wcmVtX3NpZCI6IlMtMS01LTIxLTIxNDY3NzMwODUtOTAzMzYzMjg1LTcxOTM0NDcwNy0yNzEyMTMzIiwicHVpZCI6IjEwMDMyMDAxMjZBMzAwMkIiLCJyaCI6IjAuQVFFQXY0ajVjdkdHcjBHUnF5MTgwQkhiUjBaSWYza0F1dGRQdWtQYXdmajJNQk1hQUhRLiIsInNjcCI6InVzZXJfaW1wZXJzb25hdGlvbiIsInN1YiI6ImladElGXzE1MWZNTHowUVQ5dHhrSk9LR2ZLZENpcWtuaWNQdlh6M202MmciLCJ0aWQiOiI3MmY5ODhiZi04NmYxLTQxYWYtOTFhYi0yZDdjZDAxMWRiNDciLCJ1bmlxdWVfbmFtZSI6InhpYW9mYW56aG91QG1pY3Jvc29mdC5jb20iLCJ1cG4iOiJ4aWFvZmFuemhvdUBtaWNyb3NvZnQuY29tIiwidXRpIjoiY1ZaQ1NNeHlqRWV1MTZ4U0I3Z0VBQSIsInZlciI6IjEuMCIsIndpZHMiOlsiYjc5ZmJmNGQtM2VmOS00Njg5LTgxNDMtNzZiMTk0ZTg1NTA5Il0sInhtc190Y2R0IjoxMjg5MjQxNTQ3fQ.jpMZv8CkO1jf6a9MHZTW94Uynz7Uuhiudrv0ozgQtAnI7Q_gDv_NaiFMpNiqveez2QPQQ7R-T6ldxoycFxkZUCcOu73OTTKsigXEe79osCdcMVqaKPFpHKgmVRtL6e-cBOOhACUDw0MxNcd9hg1DV1mEWQhZHlhEVB5DZo7kMesKsOgUyobIVSB07rz6pRBLj3MYo7sqB7qjnaM6ys732UyuuPhQzez2N96EW6f9vEc-2nsihklEDEhj2BhKWZy5DbXIOeXM7QM2-oaXHKpDxTViI3eEESN7VKFfdUgKbYyLyt6Fqvjbv5PEi7whkt1JXUcDxfb00ve4PNNzM2Vd8g" ] - }, - "ContentHeaders": { - "Content-Type": [ "application/json" ], - "Content-Length": [ "349" ] - } - }, - "Response": { - "StatusCode": 201, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "ETag": [ "\"f500fdbd-0000-0200-0000-6276155b0000\"" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], - "x-ms-providerhub-traffic": [ "True" ], - "mise-correlation-id": [ "1d5579d0-1cf2-4159-bb4e-f01503136b77" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/afcafe99-5ef9-4709-951d-940c07bcaed6*FF9853222A32BCC2A8434BCA00837B5104E7175F34B3F417895F59A43CD06D0C?api-version=2022-05-01" ], - "x-ms-request-id": [ "afcafe99-5ef9-4709-951d-940c07bcaed6" ], - "x-ms-correlation-request-id": [ "1f4772e3-080a-4dfd-b19e-fd9198236023" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T064443Z:1f4772e3-080a-4dfd-b19e-fd9198236023" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:44:43 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "955" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers/ps_linker\",\"name\":\"ps_linker\",\"type\":\"microsoft.servicelinker/linkers\",\"systemData\":{\"createdBy\":\"xiaofanzhou@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2022-05-07T06:44:43.1586943Z\",\"lastModifiedBy\":\"xiaofanzhou@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2022-05-07T06:44:43.1586943Z\"},\"properties\":{\"provisioningState\":\"Accepted\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.KeyVault/vaults/servicelinker-test-kv\",\"resourceProperties\":null,\"type\":\"AzureResource\"},\"authInfo\":{\"authType\":\"systemAssignedIdentity\"},\"vNetSolution\":null,\"clientType\":\"none\",\"secretStore\":null,\"scope\":null}}" - } - }, - "New-AzServiceLinkerForSpringCloud+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/afcafe99-5ef9-4709-951d-940c07bcaed6*FF9853222A32BCC2A8434BCA00837B5104E7175F34B3F417895F59A43CD06D0C?api-version=2022-05-01+2": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/afcafe99-5ef9-4709-951d-940c07bcaed6*FF9853222A32BCC2A8434BCA00837B5104E7175F34B3F417895F59A43CD06D0C?api-version=2022-05-01", - "Content": null, - "Headers": { - "x-ms-serviceconnector-user-token": [ "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6ImpTMVhvMU9XRGpfNTJ2YndHTmd2UU8yVnpNYyIsImtpZCI6ImpTMVhvMU9XRGpfNTJ2YndHTmd2UU8yVnpNYyJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuY29yZS53aW5kb3dzLm5ldC8iLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLm5ldC83MmY5ODhiZi04NmYxLTQxYWYtOTFhYi0yZDdjZDAxMWRiNDcvIiwiaWF0IjoxNjUxOTAyNDY5LCJuYmYiOjE2NTE5MDI0NjksImV4cCI6MTY1MTkwNzYyMSwiX2NsYWltX25hbWVzIjp7Imdyb3VwcyI6InNyYzEifSwiX2NsYWltX3NvdXJjZXMiOnsic3JjMSI6eyJlbmRwb2ludCI6Imh0dHBzOi8vZ3JhcGgud2luZG93cy5uZXQvNzJmOTg4YmYtODZmMS00MWFmLTkxYWItMmQ3Y2QwMTFkYjQ3L3VzZXJzL2IwYTlkM2M2LTMzODctNDA2Ny05ZjAzLTM5ODA4ZTcyOTFmZi9nZXRNZW1iZXJPYmplY3RzIn19LCJhY3IiOiIxIiwiYWlvIjoiQVZRQXEvOFRBQUFBY3dtVlJNQlJ2ektLbEdQR2hDWFJOc3ptUCthYzRCNHlGSnVjRE9RWmZFQ3YwWXovRXNNS3BGRzRmakUwU3NLSEsyZXA5WmxFNXAvYktUdmJHaWRtTEg3alkzRzN4a3JQcGphTm5kYTY3Rjg9IiwiYW1yIjpbInB3ZCIsInJzYSIsIm1mYSJdLCJhcHBpZCI6IjE5NTBhMjU4LTIyN2ItNGUzMS1hOWNmLTcxNzQ5NTk0NWZjMiIsImFwcGlkYWNyIjoiMCIsImZhbWlseV9uYW1lIjoiWmhvdSIsImdpdmVuX25hbWUiOiJYaWFvZmFuIiwiaXBhZGRyIjoiMTY3LjIyMC4yNTUuNzkiLCJuYW1lIjoiWGlhb2ZhbiBaaG91Iiwib2lkIjoiYjBhOWQzYzYtMzM4Ny00MDY3LTlmMDMtMzk4MDhlNzI5MWZmIiwib25wcmVtX3NpZCI6IlMtMS01LTIxLTIxNDY3NzMwODUtOTAzMzYzMjg1LTcxOTM0NDcwNy0yNzEyMTMzIiwicHVpZCI6IjEwMDMyMDAxMjZBMzAwMkIiLCJyaCI6IjAuQVFFQXY0ajVjdkdHcjBHUnF5MTgwQkhiUjBaSWYza0F1dGRQdWtQYXdmajJNQk1hQUhRLiIsInNjcCI6InVzZXJfaW1wZXJzb25hdGlvbiIsInN1YiI6ImladElGXzE1MWZNTHowUVQ5dHhrSk9LR2ZLZENpcWtuaWNQdlh6M202MmciLCJ0aWQiOiI3MmY5ODhiZi04NmYxLTQxYWYtOTFhYi0yZDdjZDAxMWRiNDciLCJ1bmlxdWVfbmFtZSI6InhpYW9mYW56aG91QG1pY3Jvc29mdC5jb20iLCJ1cG4iOiJ4aWFvZmFuemhvdUBtaWNyb3NvZnQuY29tIiwidXRpIjoiY1ZaQ1NNeHlqRWV1MTZ4U0I3Z0VBQSIsInZlciI6IjEuMCIsIndpZHMiOlsiYjc5ZmJmNGQtM2VmOS00Njg5LTgxNDMtNzZiMTk0ZTg1NTA5Il0sInhtc190Y2R0IjoxMjg5MjQxNTQ3fQ.jpMZv8CkO1jf6a9MHZTW94Uynz7Uuhiudrv0ozgQtAnI7Q_gDv_NaiFMpNiqveez2QPQQ7R-T6ldxoycFxkZUCcOu73OTTKsigXEe79osCdcMVqaKPFpHKgmVRtL6e-cBOOhACUDw0MxNcd9hg1DV1mEWQhZHlhEVB5DZo7kMesKsOgUyobIVSB07rz6pRBLj3MYo7sqB7qjnaM6ys732UyuuPhQzez2N96EW6f9vEc-2nsihklEDEhj2BhKWZy5DbXIOeXM7QM2-oaXHKpDxTViI3eEESN7VKFfdUgKbYyLyt6Fqvjbv5PEi7whkt1JXUcDxfb00ve4PNNzM2Vd8g" ], - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "18" ], - "x-ms-client-request-id": [ "708a6e0d-1d0f-4143-8c48-c8d9a4a71288" ], - "CommandName": [ "Az.ServiceLinker.internal\\New-AzServiceLinker" ], - "FullCommandName": [ "New-AzServiceLinker_CreateExpanded" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "ETag": [ "\"03008b13-0000-0100-0000-627615630000\"" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11987" ], - "x-ms-request-id": [ "0efd4b1b-caa2-4140-8d24-9f4b6c0224c3" ], - "x-ms-correlation-request-id": [ "ecabfeaa-a1bb-4d7e-b3ab-7987cd91ee15" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T064514Z:ecabfeaa-a1bb-4d7e-b3ab-7987cd91ee15" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:45:13 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "726" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/afcafe99-5ef9-4709-951d-940c07bcaed6*FF9853222A32BCC2A8434BCA00837B5104E7175F34B3F417895F59A43CD06D0C\",\"name\":\"afcafe99-5ef9-4709-951d-940c07bcaed6*FF9853222A32BCC2A8434BCA00837B5104E7175F34B3F417895F59A43CD06D0C\",\"resourceId\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers/ps_linker\",\"status\":\"Succeeded\",\"startTime\":\"2022-05-07T06:44:43.5535107Z\",\"endTime\":\"2022-05-07T06:44:51.2635751Z\",\"properties\":{}}" - } - }, - "New-AzServiceLinkerForSpringCloud+[NoContext]+CreateExpanded+$GET+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers/ps_linker?api-version=2022-05-01+3": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers/ps_linker?api-version=2022-05-01", - "Content": null, - "Headers": { - "x-ms-serviceconnector-user-token": [ "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6ImpTMVhvMU9XRGpfNTJ2YndHTmd2UU8yVnpNYyIsImtpZCI6ImpTMVhvMU9XRGpfNTJ2YndHTmd2UU8yVnpNYyJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuY29yZS53aW5kb3dzLm5ldC8iLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLm5ldC83MmY5ODhiZi04NmYxLTQxYWYtOTFhYi0yZDdjZDAxMWRiNDcvIiwiaWF0IjoxNjUxOTAyNDY5LCJuYmYiOjE2NTE5MDI0NjksImV4cCI6MTY1MTkwNzYyMSwiX2NsYWltX25hbWVzIjp7Imdyb3VwcyI6InNyYzEifSwiX2NsYWltX3NvdXJjZXMiOnsic3JjMSI6eyJlbmRwb2ludCI6Imh0dHBzOi8vZ3JhcGgud2luZG93cy5uZXQvNzJmOTg4YmYtODZmMS00MWFmLTkxYWItMmQ3Y2QwMTFkYjQ3L3VzZXJzL2IwYTlkM2M2LTMzODctNDA2Ny05ZjAzLTM5ODA4ZTcyOTFmZi9nZXRNZW1iZXJPYmplY3RzIn19LCJhY3IiOiIxIiwiYWlvIjoiQVZRQXEvOFRBQUFBY3dtVlJNQlJ2ektLbEdQR2hDWFJOc3ptUCthYzRCNHlGSnVjRE9RWmZFQ3YwWXovRXNNS3BGRzRmakUwU3NLSEsyZXA5WmxFNXAvYktUdmJHaWRtTEg3alkzRzN4a3JQcGphTm5kYTY3Rjg9IiwiYW1yIjpbInB3ZCIsInJzYSIsIm1mYSJdLCJhcHBpZCI6IjE5NTBhMjU4LTIyN2ItNGUzMS1hOWNmLTcxNzQ5NTk0NWZjMiIsImFwcGlkYWNyIjoiMCIsImZhbWlseV9uYW1lIjoiWmhvdSIsImdpdmVuX25hbWUiOiJYaWFvZmFuIiwiaXBhZGRyIjoiMTY3LjIyMC4yNTUuNzkiLCJuYW1lIjoiWGlhb2ZhbiBaaG91Iiwib2lkIjoiYjBhOWQzYzYtMzM4Ny00MDY3LTlmMDMtMzk4MDhlNzI5MWZmIiwib25wcmVtX3NpZCI6IlMtMS01LTIxLTIxNDY3NzMwODUtOTAzMzYzMjg1LTcxOTM0NDcwNy0yNzEyMTMzIiwicHVpZCI6IjEwMDMyMDAxMjZBMzAwMkIiLCJyaCI6IjAuQVFFQXY0ajVjdkdHcjBHUnF5MTgwQkhiUjBaSWYza0F1dGRQdWtQYXdmajJNQk1hQUhRLiIsInNjcCI6InVzZXJfaW1wZXJzb25hdGlvbiIsInN1YiI6ImladElGXzE1MWZNTHowUVQ5dHhrSk9LR2ZLZENpcWtuaWNQdlh6M202MmciLCJ0aWQiOiI3MmY5ODhiZi04NmYxLTQxYWYtOTFhYi0yZDdjZDAxMWRiNDciLCJ1bmlxdWVfbmFtZSI6InhpYW9mYW56aG91QG1pY3Jvc29mdC5jb20iLCJ1cG4iOiJ4aWFvZmFuemhvdUBtaWNyb3NvZnQuY29tIiwidXRpIjoiY1ZaQ1NNeHlqRWV1MTZ4U0I3Z0VBQSIsInZlciI6IjEuMCIsIndpZHMiOlsiYjc5ZmJmNGQtM2VmOS00Njg5LTgxNDMtNzZiMTk0ZTg1NTA5Il0sInhtc190Y2R0IjoxMjg5MjQxNTQ3fQ.jpMZv8CkO1jf6a9MHZTW94Uynz7Uuhiudrv0ozgQtAnI7Q_gDv_NaiFMpNiqveez2QPQQ7R-T6ldxoycFxkZUCcOu73OTTKsigXEe79osCdcMVqaKPFpHKgmVRtL6e-cBOOhACUDw0MxNcd9hg1DV1mEWQhZHlhEVB5DZo7kMesKsOgUyobIVSB07rz6pRBLj3MYo7sqB7qjnaM6ys732UyuuPhQzez2N96EW6f9vEc-2nsihklEDEhj2BhKWZy5DbXIOeXM7QM2-oaXHKpDxTViI3eEESN7VKFfdUgKbYyLyt6Fqvjbv5PEi7whkt1JXUcDxfb00ve4PNNzM2Vd8g" ], - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "19" ], - "x-ms-client-request-id": [ "708a6e0d-1d0f-4143-8c48-c8d9a4a71288" ], - "CommandName": [ "Az.ServiceLinker.internal\\New-AzServiceLinker" ], - "FullCommandName": [ "New-AzServiceLinker_CreateExpanded" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "ETag": [ "\"3a003b72-0000-0100-0000-627615630000\"" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11986" ], - "x-ms-providerhub-traffic": [ "True" ], - "mise-correlation-id": [ "acb91e5e-c2cc-417d-8ec3-7ff1d210a3f3" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "2c7bae3f-d33c-4e20-a30e-c2de9b6966c3" ], - "x-ms-correlation-request-id": [ "37aafcdc-46b6-4adc-ae7f-0758a2ab5eb0" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T064514Z:37aafcdc-46b6-4adc-ae7f-0758a2ab5eb0" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:45:14 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "714" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers/ps_linker\",\"name\":\"ps_linker\",\"type\":\"microsoft.servicelinker/linkers\",\"properties\":{\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.KeyVault/vaults/servicelinker-test-kv\",\"resourceProperties\":null,\"type\":\"AzureResource\"},\"authInfo\":{\"authType\":\"systemAssignedIdentity\"},\"clientType\":\"none\",\"scope\":null,\"vNetSolution\":null,\"secretStore\":null}}" - } - }, - "New-AzServiceLinkerForSpringCloud+[NoContext]+CreateExpanded+$GET+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers?api-version=2022-05-01+4": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers?api-version=2022-05-01", - "Content": null, - "Headers": { - "x-ms-unique-id": [ "20" ], - "x-ms-client-request-id": [ "041c6203-a7af-4c3d-bbec-a68b985f5100" ], - "CommandName": [ "Az.ServiceLinker.internal\\Get-AzServiceLinker" ], - "FullCommandName": [ "Get-AzServiceLinker_List" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11985" ], - "x-ms-providerhub-traffic": [ "True" ], - "mise-correlation-id": [ "735440f9-ecd7-4f5a-a1b4-479a378894f2" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "5ff81433-5a55-418f-b863-fe35a3bf447f" ], - "x-ms-correlation-request-id": [ "52300af9-d35d-4857-b608-fdadd95e782d" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T064515Z:52300af9-d35d-4857-b608-fdadd95e782d" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:45:15 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "1593" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"value\":[{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers/preparedLinker\",\"name\":\"preparedLinker\",\"type\":\"microsoft.servicelinker/linkers\",\"properties\":{\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/servicelinker-postgresql/databases/pollsdb\",\"resourceProperties\":{\"connectAsKubernetesCsiDriver\":false,\"type\":\"KeyVault\"},\"type\":\"AzureResource\"},\"authInfo\":{\"name\":\"servicelinker\",\"secretInfo\":{\"value\":null,\"secretType\":\"rawValue\"},\"authType\":\"secret\"},\"clientType\":\"dotnet\",\"scope\":null,\"vNetSolution\":null,\"secretStore\":null}},{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers/ps_linker\",\"name\":\"ps_linker\",\"type\":\"microsoft.servicelinker/linkers\",\"properties\":{\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.KeyVault/vaults/servicelinker-test-kv\",\"resourceProperties\":null,\"type\":\"AzureResource\"},\"authInfo\":{\"authType\":\"systemAssignedIdentity\"},\"clientType\":\"none\",\"scope\":null,\"vNetSolution\":null,\"secretStore\":null}}]}" - } - } -} \ No newline at end of file diff --git a/src/ServiceLinker/test/New-AzServiceLinkerForWebApp.Recording.json b/src/ServiceLinker/test/New-AzServiceLinkerForWebApp.Recording.json index a67a9e3a327e..97fe7a39e34a 100644 --- a/src/ServiceLinker/test/New-AzServiceLinkerForWebApp.Recording.json +++ b/src/ServiceLinker/test/New-AzServiceLinkerForWebApp.Recording.json @@ -1,15 +1,15 @@ { - "New-AzServiceLinkerForWebApp+[NoContext]+New Key Vault connection+$PUT+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker?api-version=2022-05-01+1": { + "New-AzServiceLinkerForWebApp+[NoContext]+New postgresql connection+$PUT+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker?api-version=2022-11-01-preview+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker?api-version=2022-05-01", - "Content": "{\n \"properties\": {\n \"targetService\": {\n \"type\": \"AzureResource\",\n \"id\": \"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.KeyVault/vaults/servicelinker-test-kv\"\n },\n \"authInfo\": {\n \"authType\": \"systemAssignedIdentity\"\n },\n \"clientType\": \"none\"\n }\n}", + "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker?api-version=2022-11-01-preview", + "Content": "{\r\n \"properties\": {\r\n \"targetService\": {\r\n \"type\": \"AzureResource\",\r\n \"id\": \"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/servicelinker-postgresql/databases/postgres\"\r\n },\r\n \"authInfo\": {\r\n \"authType\": \"secret\",\r\n \"name\": \"servicelinker\",\r\n \"secretInfo\": {\r\n \"secretType\": \"keyVaultSecretUri\",\r\n \"value\": \"https://servicelinker-kv-ref.vault.azure.net/secrets/azure-mysql-host-28449/cc5d8095a54f4755b342f4e7884b5c84\"\r\n }\r\n },\r\n \"clientType\": \"none\"\r\n }\r\n}", + "isContentBase64": false, "Headers": { - "x-ms-serviceconnector-user-token": [ "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6ImpTMVhvMU9XRGpfNTJ2YndHTmd2UU8yVnpNYyIsImtpZCI6ImpTMVhvMU9XRGpfNTJ2YndHTmd2UU8yVnpNYyJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuY29yZS53aW5kb3dzLm5ldC8iLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLm5ldC83MmY5ODhiZi04NmYxLTQxYWYtOTFhYi0yZDdjZDAxMWRiNDcvIiwiaWF0IjoxNjUxOTAyNDY5LCJuYmYiOjE2NTE5MDI0NjksImV4cCI6MTY1MTkwNzYyMSwiX2NsYWltX25hbWVzIjp7Imdyb3VwcyI6InNyYzEifSwiX2NsYWltX3NvdXJjZXMiOnsic3JjMSI6eyJlbmRwb2ludCI6Imh0dHBzOi8vZ3JhcGgud2luZG93cy5uZXQvNzJmOTg4YmYtODZmMS00MWFmLTkxYWItMmQ3Y2QwMTFkYjQ3L3VzZXJzL2IwYTlkM2M2LTMzODctNDA2Ny05ZjAzLTM5ODA4ZTcyOTFmZi9nZXRNZW1iZXJPYmplY3RzIn19LCJhY3IiOiIxIiwiYWlvIjoiQVZRQXEvOFRBQUFBY3dtVlJNQlJ2ektLbEdQR2hDWFJOc3ptUCthYzRCNHlGSnVjRE9RWmZFQ3YwWXovRXNNS3BGRzRmakUwU3NLSEsyZXA5WmxFNXAvYktUdmJHaWRtTEg3alkzRzN4a3JQcGphTm5kYTY3Rjg9IiwiYW1yIjpbInB3ZCIsInJzYSIsIm1mYSJdLCJhcHBpZCI6IjE5NTBhMjU4LTIyN2ItNGUzMS1hOWNmLTcxNzQ5NTk0NWZjMiIsImFwcGlkYWNyIjoiMCIsImZhbWlseV9uYW1lIjoiWmhvdSIsImdpdmVuX25hbWUiOiJYaWFvZmFuIiwiaXBhZGRyIjoiMTY3LjIyMC4yNTUuNzkiLCJuYW1lIjoiWGlhb2ZhbiBaaG91Iiwib2lkIjoiYjBhOWQzYzYtMzM4Ny00MDY3LTlmMDMtMzk4MDhlNzI5MWZmIiwib25wcmVtX3NpZCI6IlMtMS01LTIxLTIxNDY3NzMwODUtOTAzMzYzMjg1LTcxOTM0NDcwNy0yNzEyMTMzIiwicHVpZCI6IjEwMDMyMDAxMjZBMzAwMkIiLCJyaCI6IjAuQVFFQXY0ajVjdkdHcjBHUnF5MTgwQkhiUjBaSWYza0F1dGRQdWtQYXdmajJNQk1hQUhRLiIsInNjcCI6InVzZXJfaW1wZXJzb25hdGlvbiIsInN1YiI6ImladElGXzE1MWZNTHowUVQ5dHhrSk9LR2ZLZENpcWtuaWNQdlh6M202MmciLCJ0aWQiOiI3MmY5ODhiZi04NmYxLTQxYWYtOTFhYi0yZDdjZDAxMWRiNDciLCJ1bmlxdWVfbmFtZSI6InhpYW9mYW56aG91QG1pY3Jvc29mdC5jb20iLCJ1cG4iOiJ4aWFvZmFuemhvdUBtaWNyb3NvZnQuY29tIiwidXRpIjoiY1ZaQ1NNeHlqRWV1MTZ4U0I3Z0VBQSIsInZlciI6IjEuMCIsIndpZHMiOlsiYjc5ZmJmNGQtM2VmOS00Njg5LTgxNDMtNzZiMTk0ZTg1NTA5Il0sInhtc190Y2R0IjoxMjg5MjQxNTQ3fQ.jpMZv8CkO1jf6a9MHZTW94Uynz7Uuhiudrv0ozgQtAnI7Q_gDv_NaiFMpNiqveez2QPQQ7R-T6ldxoycFxkZUCcOu73OTTKsigXEe79osCdcMVqaKPFpHKgmVRtL6e-cBOOhACUDw0MxNcd9hg1DV1mEWQhZHlhEVB5DZo7kMesKsOgUyobIVSB07rz6pRBLj3MYo7sqB7qjnaM6ys732UyuuPhQzez2N96EW6f9vEc-2nsihklEDEhj2BhKWZy5DbXIOeXM7QM2-oaXHKpDxTViI3eEESN7VKFfdUgKbYyLyt6Fqvjbv5PEi7whkt1JXUcDxfb00ve4PNNzM2Vd8g" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], - "Content-Length": [ "349" ] + "Content-Length": [ "612" ] } }, "Response": { @@ -17,40 +17,41 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"f500afc1-0000-0200-0000-627615830000\"" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1197" ], + "ETag": [ "\"ec007412-0000-0100-0000-63d794e40000\"" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], "x-ms-providerhub-traffic": [ "True" ], - "mise-correlation-id": [ "cf95142b-c56c-4115-8b97-f919e1c41a4b" ], + "mise-correlation-id": [ "380aab3b-7d30-4488-a783-7774891a54f5" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/81328b9d-3ca8-476d-946d-95873dc6f45f*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38?api-version=2022-05-01" ], - "x-ms-request-id": [ "81328b9d-3ca8-476d-946d-95873dc6f45f" ], - "x-ms-correlation-request-id": [ "6282532b-a052-497e-9a8c-0a98cb265158" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T064523Z:6282532b-a052-497e-9a8c-0a98cb265158" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/9c1a2078-45be-49e6-97a2-c98d669e1211*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38?api-version=2021-01-01-privatepreview" ], + "x-ms-request-id": [ "9c1a2078-45be-49e6-97a2-c98d669e1211" ], + "x-ms-correlation-request-id": [ "908fcb45-549b-4214-820c-7c3f69e486cc" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20230130T095900Z:908fcb45-549b-4214-820c-7c3f69e486cc" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:45:23 GMT" ] + "Date": [ "Mon, 30 Jan 2023 09:59:00 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "910" ], + "Content-Length": [ "1170" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker\",\"name\":\"ps_linker\",\"type\":\"microsoft.servicelinker/linkers\",\"systemData\":{\"createdBy\":\"xiaofanzhou@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2022-05-07T06:45:22.893172Z\",\"lastModifiedBy\":\"xiaofanzhou@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2022-05-07T06:45:22.893172Z\"},\"properties\":{\"provisioningState\":\"Accepted\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.KeyVault/vaults/servicelinker-test-kv\",\"resourceProperties\":null,\"type\":\"AzureResource\"},\"authInfo\":{\"authType\":\"systemAssignedIdentity\"},\"vNetSolution\":null,\"clientType\":\"none\",\"secretStore\":null,\"scope\":null}}" + "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker\",\"name\":\"ps_linker\",\"type\":\"microsoft.servicelinker/linkers\",\"systemData\":{\"createdBy\":\"xiaofanzhou@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-01-30T09:58:55.9421158Z\",\"lastModifiedBy\":\"xiaofanzhou@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-30T09:58:55.9421158Z\"},\"properties\":{\"provisioningState\":\"Accepted\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/servicelinker-postgresql/databases/postgres\",\"resourceProperties\":null,\"type\":\"AzureResource\"},\"authInfo\":{\"name\":\"servicelinker\",\"secretInfo\":{\"value\":\"https://servicelinker-kv-ref.vault.azure.net/secrets/azure-mysql-host-28449/cc5d8095a54f4755b342f4e7884b5c84\",\"secretType\":\"keyVaultSecretUri\"},\"authType\":\"secret\"},\"vNetSolution\":null,\"clientType\":\"none\",\"secretStore\":null,\"scope\":null,\"publicNetworkSolution\":null,\"configurationInfo\":null}}", + "isContentBase64": false } }, - "New-AzServiceLinkerForWebApp+[NoContext]+New Key Vault connection+$GET+https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/81328b9d-3ca8-476d-946d-95873dc6f45f*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38?api-version=2022-05-01+2": { + "New-AzServiceLinkerForWebApp+[NoContext]+New postgresql connection+$GET+https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/9c1a2078-45be-49e6-97a2-c98d669e1211*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38?api-version=2021-01-01-privatepreview+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/81328b9d-3ca8-476d-946d-95873dc6f45f*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/9c1a2078-45be-49e6-97a2-c98d669e1211*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38?api-version=2021-01-01-privatepreview", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-serviceconnector-user-token": [ "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6ImpTMVhvMU9XRGpfNTJ2YndHTmd2UU8yVnpNYyIsImtpZCI6ImpTMVhvMU9XRGpfNTJ2YndHTmd2UU8yVnpNYyJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuY29yZS53aW5kb3dzLm5ldC8iLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLm5ldC83MmY5ODhiZi04NmYxLTQxYWYtOTFhYi0yZDdjZDAxMWRiNDcvIiwiaWF0IjoxNjUxOTAyNDY5LCJuYmYiOjE2NTE5MDI0NjksImV4cCI6MTY1MTkwNzYyMSwiX2NsYWltX25hbWVzIjp7Imdyb3VwcyI6InNyYzEifSwiX2NsYWltX3NvdXJjZXMiOnsic3JjMSI6eyJlbmRwb2ludCI6Imh0dHBzOi8vZ3JhcGgud2luZG93cy5uZXQvNzJmOTg4YmYtODZmMS00MWFmLTkxYWItMmQ3Y2QwMTFkYjQ3L3VzZXJzL2IwYTlkM2M2LTMzODctNDA2Ny05ZjAzLTM5ODA4ZTcyOTFmZi9nZXRNZW1iZXJPYmplY3RzIn19LCJhY3IiOiIxIiwiYWlvIjoiQVZRQXEvOFRBQUFBY3dtVlJNQlJ2ektLbEdQR2hDWFJOc3ptUCthYzRCNHlGSnVjRE9RWmZFQ3YwWXovRXNNS3BGRzRmakUwU3NLSEsyZXA5WmxFNXAvYktUdmJHaWRtTEg3alkzRzN4a3JQcGphTm5kYTY3Rjg9IiwiYW1yIjpbInB3ZCIsInJzYSIsIm1mYSJdLCJhcHBpZCI6IjE5NTBhMjU4LTIyN2ItNGUzMS1hOWNmLTcxNzQ5NTk0NWZjMiIsImFwcGlkYWNyIjoiMCIsImZhbWlseV9uYW1lIjoiWmhvdSIsImdpdmVuX25hbWUiOiJYaWFvZmFuIiwiaXBhZGRyIjoiMTY3LjIyMC4yNTUuNzkiLCJuYW1lIjoiWGlhb2ZhbiBaaG91Iiwib2lkIjoiYjBhOWQzYzYtMzM4Ny00MDY3LTlmMDMtMzk4MDhlNzI5MWZmIiwib25wcmVtX3NpZCI6IlMtMS01LTIxLTIxNDY3NzMwODUtOTAzMzYzMjg1LTcxOTM0NDcwNy0yNzEyMTMzIiwicHVpZCI6IjEwMDMyMDAxMjZBMzAwMkIiLCJyaCI6IjAuQVFFQXY0ajVjdkdHcjBHUnF5MTgwQkhiUjBaSWYza0F1dGRQdWtQYXdmajJNQk1hQUhRLiIsInNjcCI6InVzZXJfaW1wZXJzb25hdGlvbiIsInN1YiI6ImladElGXzE1MWZNTHowUVQ5dHhrSk9LR2ZLZENpcWtuaWNQdlh6M202MmciLCJ0aWQiOiI3MmY5ODhiZi04NmYxLTQxYWYtOTFhYi0yZDdjZDAxMWRiNDciLCJ1bmlxdWVfbmFtZSI6InhpYW9mYW56aG91QG1pY3Jvc29mdC5jb20iLCJ1cG4iOiJ4aWFvZmFuemhvdUBtaWNyb3NvZnQuY29tIiwidXRpIjoiY1ZaQ1NNeHlqRWV1MTZ4U0I3Z0VBQSIsInZlciI6IjEuMCIsIndpZHMiOlsiYjc5ZmJmNGQtM2VmOS00Njg5LTgxNDMtNzZiMTk0ZTg1NTA5Il0sInhtc190Y2R0IjoxMjg5MjQxNTQ3fQ.jpMZv8CkO1jf6a9MHZTW94Uynz7Uuhiudrv0ozgQtAnI7Q_gDv_NaiFMpNiqveez2QPQQ7R-T6ldxoycFxkZUCcOu73OTTKsigXEe79osCdcMVqaKPFpHKgmVRtL6e-cBOOhACUDw0MxNcd9hg1DV1mEWQhZHlhEVB5DZo7kMesKsOgUyobIVSB07rz6pRBLj3MYo7sqB7qjnaM6ys732UyuuPhQzez2N96EW6f9vEc-2nsihklEDEhj2BhKWZy5DbXIOeXM7QM2-oaXHKpDxTViI3eEESN7VKFfdUgKbYyLyt6Fqvjbv5PEi7whkt1JXUcDxfb00ve4PNNzM2Vd8g" ], "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "22" ], - "x-ms-client-request-id": [ "fd89e3db-48fb-477d-be30-27e549e06876" ], + "x-ms-unique-id": [ "2" ], + "x-ms-client-request-id": [ "e48d7ba5-c872-4fc2-850a-805a894b0a81" ], "CommandName": [ "Az.ServiceLinker.internal\\New-AzServiceLinker" ], "FullCommandName": [ "New-AzServiceLinker_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.0.3", "Az.ServiceLinker/0.1.1" ] }, "ContentHeaders": { } @@ -60,37 +61,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"03009713-0000-0100-0000-6276158c0000\"" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11984" ], - "x-ms-request-id": [ "4bcfa1a4-a873-4dd0-81d0-5e496efbd2ba" ], - "x-ms-correlation-request-id": [ "257287a1-c6bb-46b1-a377-46a6901ab101" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T064553Z:257287a1-c6bb-46b1-a377-46a6901ab101" ], + "ETag": [ "\"b20484b0-0000-0100-0000-63d794e90000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], + "x-ms-request-id": [ "908dfbaf-1f80-43ac-8240-0a88ccbc006d" ], + "x-ms-correlation-request-id": [ "1a078f5b-3f8a-4006-81db-39862777103e" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20230130T095931Z:1a078f5b-3f8a-4006-81db-39862777103e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:45:53 GMT" ] + "Date": [ "Mon, 30 Jan 2023 09:59:31 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "683" ], + "Content-Length": [ "820" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/81328b9d-3ca8-476d-946d-95873dc6f45f*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38\",\"name\":\"81328b9d-3ca8-476d-946d-95873dc6f45f*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38\",\"resourceId\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker\",\"status\":\"Succeeded\",\"startTime\":\"2022-05-07T06:45:23.3284369Z\",\"endTime\":\"2022-05-07T06:45:32.7375162Z\",\"properties\":{}}" + "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/9c1a2078-45be-49e6-97a2-c98d669e1211*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38\",\"name\":\"9c1a2078-45be-49e6-97a2-c98d669e1211*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38\",\"resourceId\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker\",\"status\":\"Succeeded\",\"startTime\":\"2023-01-30T09:59:00.5449962Z\",\"endTime\":\"2023-01-30T09:59:05.9321125Z\",\"properties\":{\"Message\":\"Deny public network access is set to yes. Please confirm you are using private endpoint connection to access target resource.\"}}", + "isContentBase64": false } }, - "New-AzServiceLinkerForWebApp+[NoContext]+New Key Vault connection+$GET+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker?api-version=2022-05-01+3": { + "New-AzServiceLinkerForWebApp+[NoContext]+New postgresql connection+$GET+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker?api-version=2022-11-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker?api-version=2022-05-01", + "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker?api-version=2022-11-01-preview", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-serviceconnector-user-token": [ "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6ImpTMVhvMU9XRGpfNTJ2YndHTmd2UU8yVnpNYyIsImtpZCI6ImpTMVhvMU9XRGpfNTJ2YndHTmd2UU8yVnpNYyJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuY29yZS53aW5kb3dzLm5ldC8iLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLm5ldC83MmY5ODhiZi04NmYxLTQxYWYtOTFhYi0yZDdjZDAxMWRiNDcvIiwiaWF0IjoxNjUxOTAyNDY5LCJuYmYiOjE2NTE5MDI0NjksImV4cCI6MTY1MTkwNzYyMSwiX2NsYWltX25hbWVzIjp7Imdyb3VwcyI6InNyYzEifSwiX2NsYWltX3NvdXJjZXMiOnsic3JjMSI6eyJlbmRwb2ludCI6Imh0dHBzOi8vZ3JhcGgud2luZG93cy5uZXQvNzJmOTg4YmYtODZmMS00MWFmLTkxYWItMmQ3Y2QwMTFkYjQ3L3VzZXJzL2IwYTlkM2M2LTMzODctNDA2Ny05ZjAzLTM5ODA4ZTcyOTFmZi9nZXRNZW1iZXJPYmplY3RzIn19LCJhY3IiOiIxIiwiYWlvIjoiQVZRQXEvOFRBQUFBY3dtVlJNQlJ2ektLbEdQR2hDWFJOc3ptUCthYzRCNHlGSnVjRE9RWmZFQ3YwWXovRXNNS3BGRzRmakUwU3NLSEsyZXA5WmxFNXAvYktUdmJHaWRtTEg3alkzRzN4a3JQcGphTm5kYTY3Rjg9IiwiYW1yIjpbInB3ZCIsInJzYSIsIm1mYSJdLCJhcHBpZCI6IjE5NTBhMjU4LTIyN2ItNGUzMS1hOWNmLTcxNzQ5NTk0NWZjMiIsImFwcGlkYWNyIjoiMCIsImZhbWlseV9uYW1lIjoiWmhvdSIsImdpdmVuX25hbWUiOiJYaWFvZmFuIiwiaXBhZGRyIjoiMTY3LjIyMC4yNTUuNzkiLCJuYW1lIjoiWGlhb2ZhbiBaaG91Iiwib2lkIjoiYjBhOWQzYzYtMzM4Ny00MDY3LTlmMDMtMzk4MDhlNzI5MWZmIiwib25wcmVtX3NpZCI6IlMtMS01LTIxLTIxNDY3NzMwODUtOTAzMzYzMjg1LTcxOTM0NDcwNy0yNzEyMTMzIiwicHVpZCI6IjEwMDMyMDAxMjZBMzAwMkIiLCJyaCI6IjAuQVFFQXY0ajVjdkdHcjBHUnF5MTgwQkhiUjBaSWYza0F1dGRQdWtQYXdmajJNQk1hQUhRLiIsInNjcCI6InVzZXJfaW1wZXJzb25hdGlvbiIsInN1YiI6ImladElGXzE1MWZNTHowUVQ5dHhrSk9LR2ZLZENpcWtuaWNQdlh6M202MmciLCJ0aWQiOiI3MmY5ODhiZi04NmYxLTQxYWYtOTFhYi0yZDdjZDAxMWRiNDciLCJ1bmlxdWVfbmFtZSI6InhpYW9mYW56aG91QG1pY3Jvc29mdC5jb20iLCJ1cG4iOiJ4aWFvZmFuemhvdUBtaWNyb3NvZnQuY29tIiwidXRpIjoiY1ZaQ1NNeHlqRWV1MTZ4U0I3Z0VBQSIsInZlciI6IjEuMCIsIndpZHMiOlsiYjc5ZmJmNGQtM2VmOS00Njg5LTgxNDMtNzZiMTk0ZTg1NTA5Il0sInhtc190Y2R0IjoxMjg5MjQxNTQ3fQ.jpMZv8CkO1jf6a9MHZTW94Uynz7Uuhiudrv0ozgQtAnI7Q_gDv_NaiFMpNiqveez2QPQQ7R-T6ldxoycFxkZUCcOu73OTTKsigXEe79osCdcMVqaKPFpHKgmVRtL6e-cBOOhACUDw0MxNcd9hg1DV1mEWQhZHlhEVB5DZo7kMesKsOgUyobIVSB07rz6pRBLj3MYo7sqB7qjnaM6ys732UyuuPhQzez2N96EW6f9vEc-2nsihklEDEhj2BhKWZy5DbXIOeXM7QM2-oaXHKpDxTViI3eEESN7VKFfdUgKbYyLyt6Fqvjbv5PEi7whkt1JXUcDxfb00ve4PNNzM2Vd8g" ], "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "23" ], - "x-ms-client-request-id": [ "fd89e3db-48fb-477d-be30-27e549e06876" ], + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "e48d7ba5-c872-4fc2-850a-805a894b0a81" ], "CommandName": [ "Az.ServiceLinker.internal\\New-AzServiceLinker" ], "FullCommandName": [ "New-AzServiceLinker_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.0.3", "Az.ServiceLinker/0.1.1" ] }, "ContentHeaders": { } @@ -100,38 +102,39 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"3a00c072-0000-0100-0000-6276158c0000\"" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11983" ], + "ETag": [ "\"ec008012-0000-0100-0000-63d794e90000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], "x-ms-providerhub-traffic": [ "True" ], - "mise-correlation-id": [ "053abf74-cfb6-4ffb-b083-15343fc05b6b" ], + "mise-correlation-id": [ "d60c81d2-83e3-4efe-8a57-b9f829c3d1d1" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "fc3c2a17-4644-49ff-8771-c164b13f55e7" ], - "x-ms-correlation-request-id": [ "75cabe30-73a2-4bb9-8793-225a27908a05" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T064554Z:75cabe30-73a2-4bb9-8793-225a27908a05" ], + "x-ms-request-id": [ "8322061d-e0e5-48b4-9ae7-5db32645606e" ], + "x-ms-correlation-request-id": [ "93c29d94-b870-4d2a-a339-b9425ad5be15" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20230130T095932Z:93c29d94-b870-4d2a-a339-b9425ad5be15" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:45:54 GMT" ] + "Date": [ "Mon, 30 Jan 2023 09:59:32 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "671" ], + "Content-Length": [ "1171" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker\",\"name\":\"ps_linker\",\"type\":\"microsoft.servicelinker/linkers\",\"properties\":{\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.KeyVault/vaults/servicelinker-test-kv\",\"resourceProperties\":null,\"type\":\"AzureResource\"},\"authInfo\":{\"authType\":\"systemAssignedIdentity\"},\"clientType\":\"none\",\"scope\":null,\"vNetSolution\":null,\"secretStore\":null}}" + "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker\",\"name\":\"ps_linker\",\"type\":\"microsoft.servicelinker/linkers\",\"systemData\":{\"createdBy\":\"xiaofanzhou@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-01-30T09:58:55.9421158Z\",\"lastModifiedBy\":\"xiaofanzhou@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-30T09:58:55.9421158Z\"},\"properties\":{\"publicNetworkSolution\":null,\"configurationInfo\":null,\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/servicelinker-postgresql/databases/postgres\",\"resourceProperties\":null,\"type\":\"AzureResource\"},\"authInfo\":{\"name\":\"servicelinker\",\"secretInfo\":{\"value\":\"https://servicelinker-kv-ref.vault.azure.net/secrets/azure-mysql-host-28449/cc5d8095a54f4755b342f4e7884b5c84\",\"secretType\":\"keyVaultSecretUri\"},\"authType\":\"secret\"},\"clientType\":\"none\",\"scope\":null,\"vNetSolution\":null,\"secretStore\":null}}", + "isContentBase64": false } }, - "New-AzServiceLinkerForWebApp+[NoContext]+New Key Vault connection+$GET+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers?api-version=2022-05-01+4": { + "New-AzServiceLinkerForWebApp+[NoContext]+New postgresql connection+$GET+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers?api-version=2022-11-01-preview+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers?api-version=2022-05-01", + "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers?api-version=2022-11-01-preview", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "24" ], - "x-ms-client-request-id": [ "a55a862e-2ebd-43dc-8f46-5b752dd0be19" ], + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "8d3daecf-d691-41b9-ad10-a6174feb87dc" ], "CommandName": [ "Az.ServiceLinker.internal\\Get-AzServiceLinker" ], "FullCommandName": [ "Get-AzServiceLinker_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.0.3", "Az.ServiceLinker/0.1.1" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -142,36 +145,36 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11982" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], "x-ms-providerhub-traffic": [ "True" ], - "mise-correlation-id": [ "15d9d6c2-6803-451c-980a-62803e84a87b" ], + "mise-correlation-id": [ "e385a60e-e28b-46ea-9b64-dd82d1a771e1" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "13cf07f4-cf1d-417e-a0b8-6c3d088f9e12" ], - "x-ms-correlation-request-id": [ "b0fa101c-11dc-412d-a1e9-6bcd5d5312b0" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T064555Z:b0fa101c-11dc-412d-a1e9-6bcd5d5312b0" ], + "x-ms-request-id": [ "5ff464df-878d-450c-bd90-4886f6e1b23c" ], + "x-ms-correlation-request-id": [ "e8b7e467-3736-49a2-8ca2-e8c525f242e7" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20230130T095933Z:e8b7e467-3736-49a2-8ca2-e8c525f242e7" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:45:55 GMT" ] + "Date": [ "Mon, 30 Jan 2023 09:59:33 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "683" ], + "Content-Length": [ "1183" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker\",\"name\":\"ps_linker\",\"type\":\"microsoft.servicelinker/linkers\",\"properties\":{\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.KeyVault/vaults/servicelinker-test-kv\",\"resourceProperties\":null,\"type\":\"AzureResource\"},\"authInfo\":{\"authType\":\"systemAssignedIdentity\"},\"clientType\":\"none\",\"scope\":null,\"vNetSolution\":null,\"secretStore\":null}}]}" + "Content": "{\"value\":[{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker\",\"name\":\"ps_linker\",\"type\":\"microsoft.servicelinker/linkers\",\"systemData\":{\"createdBy\":\"xiaofanzhou@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-01-30T09:58:55.9421158Z\",\"lastModifiedBy\":\"xiaofanzhou@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-30T09:58:55.9421158Z\"},\"properties\":{\"publicNetworkSolution\":null,\"configurationInfo\":null,\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/servicelinker-postgresql/databases/postgres\",\"resourceProperties\":null,\"type\":\"AzureResource\"},\"authInfo\":{\"name\":\"servicelinker\",\"secretInfo\":{\"value\":\"https://servicelinker-kv-ref.vault.azure.net/secrets/azure-mysql-host-28449/cc5d8095a54f4755b342f4e7884b5c84\",\"secretType\":\"keyVaultSecretUri\"},\"authType\":\"secret\"},\"clientType\":\"none\",\"scope\":null,\"vNetSolution\":null,\"secretStore\":null}}]}", + "isContentBase64": false } }, - "New-AzServiceLinkerForWebApp+[NoContext]+New Key Vault connection+$PUT+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker?api-version=2022-05-01+5": { + "New-AzServiceLinkerForWebApp+[NoContext]+New postgresql connection+$PUT+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker?api-version=2022-11-01-preview+5": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker?api-version=2022-05-01", - "Content": "{\n \"properties\": {\n \"targetService\": {\n \"type\": \"AzureResource\",\n \"id\": \"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.KeyVault/vaults/servicelinker-test-kv\"\n },\n \"authInfo\": {\n \"authType\": \"systemAssignedIdentity\"\n },\n \"clientType\": \"dotnet\"\n }\n}", + "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker?api-version=2022-11-01-preview", + "Content": "{\r\n \"properties\": {\r\n \"targetService\": {\r\n \"type\": \"AzureResource\",\r\n \"id\": \"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/servicelinker-postgresql/databases/postgres\"\r\n },\r\n \"authInfo\": {\r\n \"authType\": \"secret\",\r\n \"name\": \"servicelinker\",\r\n \"secretInfo\": {\r\n \"secretType\": \"keyVaultSecretUri\",\r\n \"value\": \"https://servicelinker-kv-ref.vault.azure.net/secrets/azure-mysql-host-28449/cc5d8095a54f4755b342f4e7884b5c84\"\r\n }\r\n },\r\n \"clientType\": \"dotnet\"\r\n }\r\n}", + "isContentBase64": false, "Headers": { - "x-ms-serviceconnector-user-token": [ "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6ImpTMVhvMU9XRGpfNTJ2YndHTmd2UU8yVnpNYyIsImtpZCI6ImpTMVhvMU9XRGpfNTJ2YndHTmd2UU8yVnpNYyJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuY29yZS53aW5kb3dzLm5ldC8iLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLm5ldC83MmY5ODhiZi04NmYxLTQxYWYtOTFhYi0yZDdjZDAxMWRiNDcvIiwiaWF0IjoxNjUxOTAyNDY5LCJuYmYiOjE2NTE5MDI0NjksImV4cCI6MTY1MTkwNzYyMSwiX2NsYWltX25hbWVzIjp7Imdyb3VwcyI6InNyYzEifSwiX2NsYWltX3NvdXJjZXMiOnsic3JjMSI6eyJlbmRwb2ludCI6Imh0dHBzOi8vZ3JhcGgud2luZG93cy5uZXQvNzJmOTg4YmYtODZmMS00MWFmLTkxYWItMmQ3Y2QwMTFkYjQ3L3VzZXJzL2IwYTlkM2M2LTMzODctNDA2Ny05ZjAzLTM5ODA4ZTcyOTFmZi9nZXRNZW1iZXJPYmplY3RzIn19LCJhY3IiOiIxIiwiYWlvIjoiQVZRQXEvOFRBQUFBY3dtVlJNQlJ2ektLbEdQR2hDWFJOc3ptUCthYzRCNHlGSnVjRE9RWmZFQ3YwWXovRXNNS3BGRzRmakUwU3NLSEsyZXA5WmxFNXAvYktUdmJHaWRtTEg3alkzRzN4a3JQcGphTm5kYTY3Rjg9IiwiYW1yIjpbInB3ZCIsInJzYSIsIm1mYSJdLCJhcHBpZCI6IjE5NTBhMjU4LTIyN2ItNGUzMS1hOWNmLTcxNzQ5NTk0NWZjMiIsImFwcGlkYWNyIjoiMCIsImZhbWlseV9uYW1lIjoiWmhvdSIsImdpdmVuX25hbWUiOiJYaWFvZmFuIiwiaXBhZGRyIjoiMTY3LjIyMC4yNTUuNzkiLCJuYW1lIjoiWGlhb2ZhbiBaaG91Iiwib2lkIjoiYjBhOWQzYzYtMzM4Ny00MDY3LTlmMDMtMzk4MDhlNzI5MWZmIiwib25wcmVtX3NpZCI6IlMtMS01LTIxLTIxNDY3NzMwODUtOTAzMzYzMjg1LTcxOTM0NDcwNy0yNzEyMTMzIiwicHVpZCI6IjEwMDMyMDAxMjZBMzAwMkIiLCJyaCI6IjAuQVFFQXY0ajVjdkdHcjBHUnF5MTgwQkhiUjBaSWYza0F1dGRQdWtQYXdmajJNQk1hQUhRLiIsInNjcCI6InVzZXJfaW1wZXJzb25hdGlvbiIsInN1YiI6ImladElGXzE1MWZNTHowUVQ5dHhrSk9LR2ZLZENpcWtuaWNQdlh6M202MmciLCJ0aWQiOiI3MmY5ODhiZi04NmYxLTQxYWYtOTFhYi0yZDdjZDAxMWRiNDciLCJ1bmlxdWVfbmFtZSI6InhpYW9mYW56aG91QG1pY3Jvc29mdC5jb20iLCJ1cG4iOiJ4aWFvZmFuemhvdUBtaWNyb3NvZnQuY29tIiwidXRpIjoiY1ZaQ1NNeHlqRWV1MTZ4U0I3Z0VBQSIsInZlciI6IjEuMCIsIndpZHMiOlsiYjc5ZmJmNGQtM2VmOS00Njg5LTgxNDMtNzZiMTk0ZTg1NTA5Il0sInhtc190Y2R0IjoxMjg5MjQxNTQ3fQ.jpMZv8CkO1jf6a9MHZTW94Uynz7Uuhiudrv0ozgQtAnI7Q_gDv_NaiFMpNiqveez2QPQQ7R-T6ldxoycFxkZUCcOu73OTTKsigXEe79osCdcMVqaKPFpHKgmVRtL6e-cBOOhACUDw0MxNcd9hg1DV1mEWQhZHlhEVB5DZo7kMesKsOgUyobIVSB07rz6pRBLj3MYo7sqB7qjnaM6ys732UyuuPhQzez2N96EW6f9vEc-2nsihklEDEhj2BhKWZy5DbXIOeXM7QM2-oaXHKpDxTViI3eEESN7VKFfdUgKbYyLyt6Fqvjbv5PEi7whkt1JXUcDxfb00ve4PNNzM2Vd8g" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], - "Content-Length": [ "351" ] + "Content-Length": [ "614" ] } }, "Response": { @@ -179,40 +182,41 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"f500b0c3-0000-0200-0000-627615a40000\"" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1196" ], + "ETag": [ "\"ec00cb12-0000-0100-0000-63d795060000\"" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], "x-ms-providerhub-traffic": [ "True" ], - "mise-correlation-id": [ "ecb4f79a-ab07-4744-b085-44bf0610900d" ], + "mise-correlation-id": [ "b0071482-ce6f-4150-96d2-f59f081d1d96" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/d1b3c809-9d97-4637-91a5-fd536605ec8b*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38?api-version=2022-05-01" ], - "x-ms-request-id": [ "d1b3c809-9d97-4637-91a5-fd536605ec8b" ], - "x-ms-correlation-request-id": [ "19e578cd-2762-4356-8d04-d3ebcbb53023" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T064557Z:19e578cd-2762-4356-8d04-d3ebcbb53023" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/92301ed4-b88f-4c1e-ae82-57fedb60e50f*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38?api-version=2021-01-01-privatepreview" ], + "x-ms-request-id": [ "92301ed4-b88f-4c1e-ae82-57fedb60e50f" ], + "x-ms-correlation-request-id": [ "febbdb90-6fca-418e-b312-3b0d5da58663" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20230130T095934Z:febbdb90-6fca-418e-b312-3b0d5da58663" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:45:56 GMT" ] + "Date": [ "Mon, 30 Jan 2023 09:59:34 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "913" ], + "Content-Length": [ "1172" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker\",\"name\":\"ps_linker\",\"type\":\"microsoft.servicelinker/linkers\",\"systemData\":{\"createdBy\":\"xiaofanzhou@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2022-05-07T06:45:22.893172Z\",\"lastModifiedBy\":\"xiaofanzhou@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2022-05-07T06:45:56.3151656Z\"},\"properties\":{\"provisioningState\":\"Accepted\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.KeyVault/vaults/servicelinker-test-kv\",\"resourceProperties\":null,\"type\":\"AzureResource\"},\"authInfo\":{\"authType\":\"systemAssignedIdentity\"},\"vNetSolution\":null,\"clientType\":\"dotnet\",\"secretStore\":null,\"scope\":null}}" + "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker\",\"name\":\"ps_linker\",\"type\":\"microsoft.servicelinker/linkers\",\"systemData\":{\"createdBy\":\"xiaofanzhou@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-01-30T09:58:55.9421158Z\",\"lastModifiedBy\":\"xiaofanzhou@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-30T09:59:33.9442647Z\"},\"properties\":{\"provisioningState\":\"Accepted\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/servicelinker-postgresql/databases/postgres\",\"resourceProperties\":null,\"type\":\"AzureResource\"},\"authInfo\":{\"name\":\"servicelinker\",\"secretInfo\":{\"value\":\"https://servicelinker-kv-ref.vault.azure.net/secrets/azure-mysql-host-28449/cc5d8095a54f4755b342f4e7884b5c84\",\"secretType\":\"keyVaultSecretUri\"},\"authType\":\"secret\"},\"vNetSolution\":null,\"clientType\":\"dotnet\",\"secretStore\":null,\"scope\":null,\"publicNetworkSolution\":null,\"configurationInfo\":null}}", + "isContentBase64": false } }, - "New-AzServiceLinkerForWebApp+[NoContext]+New Key Vault connection+$GET+https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/d1b3c809-9d97-4637-91a5-fd536605ec8b*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38?api-version=2022-05-01+6": { + "New-AzServiceLinkerForWebApp+[NoContext]+New postgresql connection+$GET+https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/92301ed4-b88f-4c1e-ae82-57fedb60e50f*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38?api-version=2021-01-01-privatepreview+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/d1b3c809-9d97-4637-91a5-fd536605ec8b*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/92301ed4-b88f-4c1e-ae82-57fedb60e50f*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38?api-version=2021-01-01-privatepreview", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-serviceconnector-user-token": [ "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6ImpTMVhvMU9XRGpfNTJ2YndHTmd2UU8yVnpNYyIsImtpZCI6ImpTMVhvMU9XRGpfNTJ2YndHTmd2UU8yVnpNYyJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuY29yZS53aW5kb3dzLm5ldC8iLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLm5ldC83MmY5ODhiZi04NmYxLTQxYWYtOTFhYi0yZDdjZDAxMWRiNDcvIiwiaWF0IjoxNjUxOTAyNDY5LCJuYmYiOjE2NTE5MDI0NjksImV4cCI6MTY1MTkwNzYyMSwiX2NsYWltX25hbWVzIjp7Imdyb3VwcyI6InNyYzEifSwiX2NsYWltX3NvdXJjZXMiOnsic3JjMSI6eyJlbmRwb2ludCI6Imh0dHBzOi8vZ3JhcGgud2luZG93cy5uZXQvNzJmOTg4YmYtODZmMS00MWFmLTkxYWItMmQ3Y2QwMTFkYjQ3L3VzZXJzL2IwYTlkM2M2LTMzODctNDA2Ny05ZjAzLTM5ODA4ZTcyOTFmZi9nZXRNZW1iZXJPYmplY3RzIn19LCJhY3IiOiIxIiwiYWlvIjoiQVZRQXEvOFRBQUFBY3dtVlJNQlJ2ektLbEdQR2hDWFJOc3ptUCthYzRCNHlGSnVjRE9RWmZFQ3YwWXovRXNNS3BGRzRmakUwU3NLSEsyZXA5WmxFNXAvYktUdmJHaWRtTEg3alkzRzN4a3JQcGphTm5kYTY3Rjg9IiwiYW1yIjpbInB3ZCIsInJzYSIsIm1mYSJdLCJhcHBpZCI6IjE5NTBhMjU4LTIyN2ItNGUzMS1hOWNmLTcxNzQ5NTk0NWZjMiIsImFwcGlkYWNyIjoiMCIsImZhbWlseV9uYW1lIjoiWmhvdSIsImdpdmVuX25hbWUiOiJYaWFvZmFuIiwiaXBhZGRyIjoiMTY3LjIyMC4yNTUuNzkiLCJuYW1lIjoiWGlhb2ZhbiBaaG91Iiwib2lkIjoiYjBhOWQzYzYtMzM4Ny00MDY3LTlmMDMtMzk4MDhlNzI5MWZmIiwib25wcmVtX3NpZCI6IlMtMS01LTIxLTIxNDY3NzMwODUtOTAzMzYzMjg1LTcxOTM0NDcwNy0yNzEyMTMzIiwicHVpZCI6IjEwMDMyMDAxMjZBMzAwMkIiLCJyaCI6IjAuQVFFQXY0ajVjdkdHcjBHUnF5MTgwQkhiUjBaSWYza0F1dGRQdWtQYXdmajJNQk1hQUhRLiIsInNjcCI6InVzZXJfaW1wZXJzb25hdGlvbiIsInN1YiI6ImladElGXzE1MWZNTHowUVQ5dHhrSk9LR2ZLZENpcWtuaWNQdlh6M202MmciLCJ0aWQiOiI3MmY5ODhiZi04NmYxLTQxYWYtOTFhYi0yZDdjZDAxMWRiNDciLCJ1bmlxdWVfbmFtZSI6InhpYW9mYW56aG91QG1pY3Jvc29mdC5jb20iLCJ1cG4iOiJ4aWFvZmFuemhvdUBtaWNyb3NvZnQuY29tIiwidXRpIjoiY1ZaQ1NNeHlqRWV1MTZ4U0I3Z0VBQSIsInZlciI6IjEuMCIsIndpZHMiOlsiYjc5ZmJmNGQtM2VmOS00Njg5LTgxNDMtNzZiMTk0ZTg1NTA5Il0sInhtc190Y2R0IjoxMjg5MjQxNTQ3fQ.jpMZv8CkO1jf6a9MHZTW94Uynz7Uuhiudrv0ozgQtAnI7Q_gDv_NaiFMpNiqveez2QPQQ7R-T6ldxoycFxkZUCcOu73OTTKsigXEe79osCdcMVqaKPFpHKgmVRtL6e-cBOOhACUDw0MxNcd9hg1DV1mEWQhZHlhEVB5DZo7kMesKsOgUyobIVSB07rz6pRBLj3MYo7sqB7qjnaM6ys732UyuuPhQzez2N96EW6f9vEc-2nsihklEDEhj2BhKWZy5DbXIOeXM7QM2-oaXHKpDxTViI3eEESN7VKFfdUgKbYyLyt6Fqvjbv5PEi7whkt1JXUcDxfb00ve4PNNzM2Vd8g" ], "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "26" ], - "x-ms-client-request-id": [ "d0e756d1-4801-4b37-8b29-7dea6371fa69" ], + "x-ms-unique-id": [ "6" ], + "x-ms-client-request-id": [ "dd45d1bc-5af4-4dba-8ae0-6e818a42156d" ], "CommandName": [ "Az.ServiceLinker.internal\\New-AzServiceLinker" ], "FullCommandName": [ "New-AzServiceLinker_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.0.3", "Az.ServiceLinker/0.1.1" ] }, "ContentHeaders": { } @@ -222,37 +226,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"0300a513-0000-0100-0000-627615ac0000\"" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11981" ], - "x-ms-request-id": [ "c0a48fc1-3871-4c1b-b78b-3cf7027d8132" ], - "x-ms-correlation-request-id": [ "e7072a47-63d5-4a56-b6c4-ed770e2ec265" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T064627Z:e7072a47-63d5-4a56-b6c4-ed770e2ec265" ], + "ETag": [ "\"b2048cb0-0000-0100-0000-63d7950c0000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], + "x-ms-request-id": [ "a8a035cf-b97d-4bea-9461-7264c1377dab" ], + "x-ms-correlation-request-id": [ "642ec49d-00c4-44d7-b86c-15ebcd205fbf" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20230130T100005Z:642ec49d-00c4-44d7-b86c-15ebcd205fbf" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:46:26 GMT" ] + "Date": [ "Mon, 30 Jan 2023 10:00:05 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "681" ], + "Content-Length": [ "820" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/d1b3c809-9d97-4637-91a5-fd536605ec8b*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38\",\"name\":\"d1b3c809-9d97-4637-91a5-fd536605ec8b*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38\",\"resourceId\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker\",\"status\":\"Succeeded\",\"startTime\":\"2022-05-07T06:45:56.7339874Z\",\"endTime\":\"2022-05-07T06:46:04.32181Z\",\"properties\":{}}" + "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/92301ed4-b88f-4c1e-ae82-57fedb60e50f*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38\",\"name\":\"92301ed4-b88f-4c1e-ae82-57fedb60e50f*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38\",\"resourceId\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker\",\"status\":\"Succeeded\",\"startTime\":\"2023-01-30T09:59:34.3482094Z\",\"endTime\":\"2023-01-30T09:59:40.2617379Z\",\"properties\":{\"Message\":\"Deny public network access is set to yes. Please confirm you are using private endpoint connection to access target resource.\"}}", + "isContentBase64": false } }, - "New-AzServiceLinkerForWebApp+[NoContext]+New Key Vault connection+$GET+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker?api-version=2022-05-01+7": { + "New-AzServiceLinkerForWebApp+[NoContext]+New postgresql connection+$GET+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker?api-version=2022-11-01-preview+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker?api-version=2022-05-01", + "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker?api-version=2022-11-01-preview", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-serviceconnector-user-token": [ "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6ImpTMVhvMU9XRGpfNTJ2YndHTmd2UU8yVnpNYyIsImtpZCI6ImpTMVhvMU9XRGpfNTJ2YndHTmd2UU8yVnpNYyJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuY29yZS53aW5kb3dzLm5ldC8iLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLm5ldC83MmY5ODhiZi04NmYxLTQxYWYtOTFhYi0yZDdjZDAxMWRiNDcvIiwiaWF0IjoxNjUxOTAyNDY5LCJuYmYiOjE2NTE5MDI0NjksImV4cCI6MTY1MTkwNzYyMSwiX2NsYWltX25hbWVzIjp7Imdyb3VwcyI6InNyYzEifSwiX2NsYWltX3NvdXJjZXMiOnsic3JjMSI6eyJlbmRwb2ludCI6Imh0dHBzOi8vZ3JhcGgud2luZG93cy5uZXQvNzJmOTg4YmYtODZmMS00MWFmLTkxYWItMmQ3Y2QwMTFkYjQ3L3VzZXJzL2IwYTlkM2M2LTMzODctNDA2Ny05ZjAzLTM5ODA4ZTcyOTFmZi9nZXRNZW1iZXJPYmplY3RzIn19LCJhY3IiOiIxIiwiYWlvIjoiQVZRQXEvOFRBQUFBY3dtVlJNQlJ2ektLbEdQR2hDWFJOc3ptUCthYzRCNHlGSnVjRE9RWmZFQ3YwWXovRXNNS3BGRzRmakUwU3NLSEsyZXA5WmxFNXAvYktUdmJHaWRtTEg3alkzRzN4a3JQcGphTm5kYTY3Rjg9IiwiYW1yIjpbInB3ZCIsInJzYSIsIm1mYSJdLCJhcHBpZCI6IjE5NTBhMjU4LTIyN2ItNGUzMS1hOWNmLTcxNzQ5NTk0NWZjMiIsImFwcGlkYWNyIjoiMCIsImZhbWlseV9uYW1lIjoiWmhvdSIsImdpdmVuX25hbWUiOiJYaWFvZmFuIiwiaXBhZGRyIjoiMTY3LjIyMC4yNTUuNzkiLCJuYW1lIjoiWGlhb2ZhbiBaaG91Iiwib2lkIjoiYjBhOWQzYzYtMzM4Ny00MDY3LTlmMDMtMzk4MDhlNzI5MWZmIiwib25wcmVtX3NpZCI6IlMtMS01LTIxLTIxNDY3NzMwODUtOTAzMzYzMjg1LTcxOTM0NDcwNy0yNzEyMTMzIiwicHVpZCI6IjEwMDMyMDAxMjZBMzAwMkIiLCJyaCI6IjAuQVFFQXY0ajVjdkdHcjBHUnF5MTgwQkhiUjBaSWYza0F1dGRQdWtQYXdmajJNQk1hQUhRLiIsInNjcCI6InVzZXJfaW1wZXJzb25hdGlvbiIsInN1YiI6ImladElGXzE1MWZNTHowUVQ5dHhrSk9LR2ZLZENpcWtuaWNQdlh6M202MmciLCJ0aWQiOiI3MmY5ODhiZi04NmYxLTQxYWYtOTFhYi0yZDdjZDAxMWRiNDciLCJ1bmlxdWVfbmFtZSI6InhpYW9mYW56aG91QG1pY3Jvc29mdC5jb20iLCJ1cG4iOiJ4aWFvZmFuemhvdUBtaWNyb3NvZnQuY29tIiwidXRpIjoiY1ZaQ1NNeHlqRWV1MTZ4U0I3Z0VBQSIsInZlciI6IjEuMCIsIndpZHMiOlsiYjc5ZmJmNGQtM2VmOS00Njg5LTgxNDMtNzZiMTk0ZTg1NTA5Il0sInhtc190Y2R0IjoxMjg5MjQxNTQ3fQ.jpMZv8CkO1jf6a9MHZTW94Uynz7Uuhiudrv0ozgQtAnI7Q_gDv_NaiFMpNiqveez2QPQQ7R-T6ldxoycFxkZUCcOu73OTTKsigXEe79osCdcMVqaKPFpHKgmVRtL6e-cBOOhACUDw0MxNcd9hg1DV1mEWQhZHlhEVB5DZo7kMesKsOgUyobIVSB07rz6pRBLj3MYo7sqB7qjnaM6ys732UyuuPhQzez2N96EW6f9vEc-2nsihklEDEhj2BhKWZy5DbXIOeXM7QM2-oaXHKpDxTViI3eEESN7VKFfdUgKbYyLyt6Fqvjbv5PEi7whkt1JXUcDxfb00ve4PNNzM2Vd8g" ], "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "27" ], - "x-ms-client-request-id": [ "d0e756d1-4801-4b37-8b29-7dea6371fa69" ], + "x-ms-unique-id": [ "7" ], + "x-ms-client-request-id": [ "dd45d1bc-5af4-4dba-8ae0-6e818a42156d" ], "CommandName": [ "Az.ServiceLinker.internal\\New-AzServiceLinker" ], "FullCommandName": [ "New-AzServiceLinker_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.0.3", "Az.ServiceLinker/0.1.1" ] }, "ContentHeaders": { } @@ -262,38 +267,39 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"3a001573-0000-0100-0000-627615ac0000\"" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11980" ], + "ETag": [ "\"ec00d912-0000-0100-0000-63d7950c0000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], "x-ms-providerhub-traffic": [ "True" ], - "mise-correlation-id": [ "6fc15686-95bf-4e95-9979-96df127ac884" ], + "mise-correlation-id": [ "c3b2dd1b-bf99-40a6-9aa0-f4b8f8786150" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "d5051dc8-8919-41da-9fcc-225cece07605" ], - "x-ms-correlation-request-id": [ "8c0eb776-d94a-4f3d-b692-37c1e24c2cfc" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T064628Z:8c0eb776-d94a-4f3d-b692-37c1e24c2cfc" ], + "x-ms-request-id": [ "8b5bed95-9f75-47a8-930a-9346f6117a71" ], + "x-ms-correlation-request-id": [ "d67d9333-9c2d-4cde-bb6a-1a9c3c22fa47" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20230130T100005Z:d67d9333-9c2d-4cde-bb6a-1a9c3c22fa47" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:46:27 GMT" ] + "Date": [ "Mon, 30 Jan 2023 10:00:05 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "673" ], + "Content-Length": [ "1173" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker\",\"name\":\"ps_linker\",\"type\":\"microsoft.servicelinker/linkers\",\"properties\":{\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.KeyVault/vaults/servicelinker-test-kv\",\"resourceProperties\":null,\"type\":\"AzureResource\"},\"authInfo\":{\"authType\":\"systemAssignedIdentity\"},\"clientType\":\"dotnet\",\"scope\":null,\"vNetSolution\":null,\"secretStore\":null}}" + "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker\",\"name\":\"ps_linker\",\"type\":\"microsoft.servicelinker/linkers\",\"systemData\":{\"createdBy\":\"xiaofanzhou@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-01-30T09:58:55.9421158Z\",\"lastModifiedBy\":\"xiaofanzhou@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-30T09:59:33.9442647Z\"},\"properties\":{\"publicNetworkSolution\":null,\"configurationInfo\":null,\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/servicelinker-postgresql/databases/postgres\",\"resourceProperties\":null,\"type\":\"AzureResource\"},\"authInfo\":{\"name\":\"servicelinker\",\"secretInfo\":{\"value\":\"https://servicelinker-kv-ref.vault.azure.net/secrets/azure-mysql-host-28449/cc5d8095a54f4755b342f4e7884b5c84\",\"secretType\":\"keyVaultSecretUri\"},\"authType\":\"secret\"},\"clientType\":\"dotnet\",\"scope\":null,\"vNetSolution\":null,\"secretStore\":null}}", + "isContentBase64": false } }, - "New-AzServiceLinkerForWebApp+[NoContext]+New Key Vault connection+$DELETE+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker?api-version=2022-05-01+8": { + "New-AzServiceLinkerForWebApp+[NoContext]+New postgresql connection+$DELETE+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker?api-version=2022-11-01-preview+8": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker?api-version=2022-05-01", + "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker?api-version=2022-11-01-preview", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "28" ], - "x-ms-client-request-id": [ "e2771f23-6e53-426b-b7e8-046f64c9d34f" ], + "x-ms-unique-id": [ "8" ], + "x-ms-client-request-id": [ "ad9d0fd7-3782-434e-91e0-000dfa3ee2dc" ], "CommandName": [ "Az.ServiceLinker.internal\\Remove-AzServiceLinker" ], "FullCommandName": [ "Remove-AzServiceLinker_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.0.3", "Az.ServiceLinker/0.1.1" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -304,436 +310,42 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"f5003dc6-0000-0200-0000-627615c50000\"" ], - "Location": [ "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/55221d15-d4ea-4d36-9854-81d2a5666416*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38?api-version=2022-05-01" ], + "ETag": [ "\"ec001713-0000-0100-0000-63d795260000\"" ], + "Location": [ "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/761fb192-b2db-4ac9-8ba1-a6d6c81b0259*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38?api-version=2021-01-01-privatepreview" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], "x-ms-providerhub-traffic": [ "True" ], - "mise-correlation-id": [ "577dff70-e806-4db0-bba0-2c1c5139c580" ], + "mise-correlation-id": [ "84436bac-70e6-4519-b8c2-395e76fb903e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/55221d15-d4ea-4d36-9854-81d2a5666416*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38?api-version=2022-05-01" ], - "x-ms-request-id": [ "55221d15-d4ea-4d36-9854-81d2a5666416" ], - "x-ms-correlation-request-id": [ "21c09214-dea4-432f-83e1-65683aaa829e" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T064629Z:21c09214-dea4-432f-83e1-65683aaa829e" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/761fb192-b2db-4ac9-8ba1-a6d6c81b0259*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38?api-version=2021-01-01-privatepreview" ], + "x-ms-request-id": [ "761fb192-b2db-4ac9-8ba1-a6d6c81b0259" ], + "x-ms-correlation-request-id": [ "2cc71b90-5ffb-4ea7-8f2d-9f6f0fa035d2" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20230130T100007Z:2cc71b90-5ffb-4ea7-8f2d-9f6f0fa035d2" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:46:28 GMT" ] + "Date": [ "Mon, 30 Jan 2023 10:00:07 GMT" ] }, "ContentHeaders": { "Content-Length": [ "4" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "bnVsbA==" + "Content": "bnVsbA==", + "isContentBase64": false } }, - "New-AzServiceLinkerForWebApp+[NoContext]+New Key Vault connection+$GET+https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/55221d15-d4ea-4d36-9854-81d2a5666416*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38?api-version=2022-05-01+9": { + "New-AzServiceLinkerForWebApp+[NoContext]+New postgresql connection+$GET+https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/761fb192-b2db-4ac9-8ba1-a6d6c81b0259*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38?api-version=2021-01-01-privatepreview+9": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/55221d15-d4ea-4d36-9854-81d2a5666416*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/761fb192-b2db-4ac9-8ba1-a6d6c81b0259*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38?api-version=2021-01-01-privatepreview", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "29" ], - "x-ms-client-request-id": [ "e2771f23-6e53-426b-b7e8-046f64c9d34f" ], + "x-ms-unique-id": [ "9" ], + "x-ms-client-request-id": [ "ad9d0fd7-3782-434e-91e0-000dfa3ee2dc" ], "CommandName": [ "Az.ServiceLinker.internal\\Remove-AzServiceLinker" ], "FullCommandName": [ "Remove-AzServiceLinker_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "ETag": [ "\"0300ab13-0000-0100-0000-627615c80000\"" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11979" ], - "x-ms-request-id": [ "58934df7-e6c5-4572-90e5-65a1cc879375" ], - "x-ms-correlation-request-id": [ "a6ac2c4d-97e6-49e7-8510-9f8d69163e18" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T064659Z:a6ac2c4d-97e6-49e7-8510-9f8d69163e18" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:46:58 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "685" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/55221d15-d4ea-4d36-9854-81d2a5666416*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38\",\"name\":\"55221d15-d4ea-4d36-9854-81d2a5666416*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38\",\"resourceId\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker\",\"status\":\"Succeeded\",\"startTime\":\"2022-05-07T06:46:28.9779827Z\",\"endTime\":\"2022-05-07T06:46:32.3053213Z\",\"properties\":null}" - } - }, - "New-AzServiceLinkerForWebApp+[NoContext]+New Key Vault connection+$GET+https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/55221d15-d4ea-4d36-9854-81d2a5666416*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38?api-version=2022-05-01+10": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/55221d15-d4ea-4d36-9854-81d2a5666416*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38?api-version=2022-05-01", - "Content": null, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "30" ], - "x-ms-client-request-id": [ "e2771f23-6e53-426b-b7e8-046f64c9d34f" ], - "CommandName": [ "Az.ServiceLinker.internal\\Remove-AzServiceLinker" ], - "FullCommandName": [ "Remove-AzServiceLinker_Delete" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "ETag": [ "\"0300ab13-0000-0100-0000-627615c80000\"" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11978" ], - "x-ms-request-id": [ "431ca249-5322-4ef8-a2ba-50675c9819c3" ], - "x-ms-correlation-request-id": [ "2ce0aa6d-625b-4320-99cb-d0fd62eaa9bc" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T064659Z:2ce0aa6d-625b-4320-99cb-d0fd62eaa9bc" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:46:59 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "685" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/55221d15-d4ea-4d36-9854-81d2a5666416*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38\",\"name\":\"55221d15-d4ea-4d36-9854-81d2a5666416*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38\",\"resourceId\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker\",\"status\":\"Succeeded\",\"startTime\":\"2022-05-07T06:46:28.9779827Z\",\"endTime\":\"2022-05-07T06:46:32.3053213Z\",\"properties\":null}" - } - }, - "New-AzServiceLinkerForWebApp+[NoContext]+New Key Vault connection+$GET+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers?api-version=2022-05-01+11": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers?api-version=2022-05-01", - "Content": null, - "Headers": { - "x-ms-unique-id": [ "31" ], - "x-ms-client-request-id": [ "b0566190-6adf-4dc1-934e-85745520ae9a" ], - "CommandName": [ "Az.ServiceLinker.internal\\Get-AzServiceLinker" ], - "FullCommandName": [ "Get-AzServiceLinker_List" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11977" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T064700Z:97b62fbe-36ad-4704-8ac7-8b7e477ec6fa" ], - "x-ms-providerhub-traffic": [ "True" ], - "mise-correlation-id": [ "f89f5e56-7b45-4e81-9155-79bc968efaab" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "e2541152-23ef-4449-9e2a-c6bffda3b63e" ], - "x-ms-correlation-request-id": [ "97b62fbe-36ad-4704-8ac7-8b7e477ec6fa" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:46:59 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "12" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"value\":[]}" - } - }, - "New-AzServiceLinkerForWebApp+[NoContext]+New postgresql connection+$PUT+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker?api-version=2022-05-01+1": { - "Request": { - "Method": "PUT", - "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker?api-version=2022-05-01", - "Content": "{\n \"properties\": {\n \"targetService\": {\n \"type\": \"AzureResource\",\n \"id\": \"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/servicelinker-postgresql/databases/postgres\"\n },\n \"authInfo\": {\n \"authType\": \"secret\",\n \"name\": \"servicelinker\",\n \"secretInfo\": {\n \"secretType\": \"keyVaultSecretUri\",\n \"value\": \"https://servicelinker-kv-ref.vault.azure.net/secrets/azure-mysql-host-28449/cc5d8095a54f4755b342f4e7884b5c84\"\n }\n },\n \"clientType\": \"none\"\n }\n}", - "Headers": { - }, - "ContentHeaders": { - "Content-Type": [ "application/json" ], - "Content-Length": [ "596" ] - } - }, - "Response": { - "StatusCode": 201, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "ETag": [ "\"f50081c8-0000-0200-0000-627615e60000\"" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1195" ], - "x-ms-providerhub-traffic": [ "True" ], - "mise-correlation-id": [ "d6b2a538-9d7d-4eca-a664-052f2f73d521" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/c13c2a86-4378-4ae5-8b16-e41a0577bd07*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38?api-version=2022-05-01" ], - "x-ms-request-id": [ "c13c2a86-4378-4ae5-8b16-e41a0577bd07" ], - "x-ms-correlation-request-id": [ "2898422a-81e3-4b69-9fee-d0f98c505f06" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T064702Z:2898422a-81e3-4b69-9fee-d0f98c505f06" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:47:01 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "1116" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker\",\"name\":\"ps_linker\",\"type\":\"microsoft.servicelinker/linkers\",\"systemData\":{\"createdBy\":\"xiaofanzhou@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2022-05-07T06:47:00.8777739Z\",\"lastModifiedBy\":\"xiaofanzhou@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2022-05-07T06:47:00.8777739Z\"},\"properties\":{\"provisioningState\":\"Accepted\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/servicelinker-postgresql/databases/postgres\",\"resourceProperties\":null,\"type\":\"AzureResource\"},\"authInfo\":{\"name\":\"servicelinker\",\"secretInfo\":{\"value\":\"https://servicelinker-kv-ref.vault.azure.net/secrets/azure-mysql-host-28449/cc5d8095a54f4755b342f4e7884b5c84\",\"secretType\":\"keyVaultSecretUri\"},\"authType\":\"secret\"},\"vNetSolution\":null,\"clientType\":\"none\",\"secretStore\":null,\"scope\":null}}" - } - }, - "New-AzServiceLinkerForWebApp+[NoContext]+New postgresql connection+$GET+https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/c13c2a86-4378-4ae5-8b16-e41a0577bd07*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38?api-version=2022-05-01+2": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/c13c2a86-4378-4ae5-8b16-e41a0577bd07*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38?api-version=2022-05-01", - "Content": null, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "33" ], - "x-ms-client-request-id": [ "dc8fb32d-9a20-4ba2-951e-b4114ca0c93d" ], - "CommandName": [ "Az.ServiceLinker.internal\\New-AzServiceLinker" ], - "FullCommandName": [ "New-AzServiceLinker_CreateExpanded" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "ETag": [ "\"0300bd13-0000-0100-0000-627615e90000\"" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11976" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T064732Z:272d17ae-7db0-4496-aec2-9cd3e42942ea" ], - "x-ms-request-id": [ "247ad34f-eec3-4ca3-b1fd-1bf95183f046" ], - "x-ms-correlation-request-id": [ "272d17ae-7db0-4496-aec2-9cd3e42942ea" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:47:32 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "820" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/c13c2a86-4378-4ae5-8b16-e41a0577bd07*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38\",\"name\":\"c13c2a86-4378-4ae5-8b16-e41a0577bd07*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38\",\"resourceId\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker\",\"status\":\"Succeeded\",\"startTime\":\"2022-05-07T06:47:02.0769524Z\",\"endTime\":\"2022-05-07T06:47:05.2483279Z\",\"properties\":{\"message\":\"Deny public network access is set to yes. Please confirm you are using private endpoint connection to access target resource.\"}}" - } - }, - "New-AzServiceLinkerForWebApp+[NoContext]+New postgresql connection+$GET+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker?api-version=2022-05-01+3": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker?api-version=2022-05-01", - "Content": null, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "34" ], - "x-ms-client-request-id": [ "dc8fb32d-9a20-4ba2-951e-b4114ca0c93d" ], - "CommandName": [ "Az.ServiceLinker.internal\\New-AzServiceLinker" ], - "FullCommandName": [ "New-AzServiceLinker_CreateExpanded" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "ETag": [ "\"3a00c473-0000-0100-0000-627615e90000\"" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11975" ], - "x-ms-providerhub-traffic": [ "True" ], - "mise-correlation-id": [ "d715979b-e3c9-4e89-a029-a86bb53859c5" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "1f9e6074-aa22-43dc-b855-cd5751a9410a" ], - "x-ms-correlation-request-id": [ "76a39316-dc77-4c62-8be2-cbd338d84562" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T064733Z:76a39316-dc77-4c62-8be2-cbd338d84562" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:47:33 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "875" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker\",\"name\":\"ps_linker\",\"type\":\"microsoft.servicelinker/linkers\",\"properties\":{\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/servicelinker-postgresql/databases/postgres\",\"resourceProperties\":null,\"type\":\"AzureResource\"},\"authInfo\":{\"name\":\"servicelinker\",\"secretInfo\":{\"value\":\"https://servicelinker-kv-ref.vault.azure.net/secrets/azure-mysql-host-28449/cc5d8095a54f4755b342f4e7884b5c84\",\"secretType\":\"keyVaultSecretUri\"},\"authType\":\"secret\"},\"clientType\":\"none\",\"scope\":null,\"vNetSolution\":null,\"secretStore\":null}}" - } - }, - "New-AzServiceLinkerForWebApp+[NoContext]+New postgresql connection+$GET+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers?api-version=2022-05-01+4": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers?api-version=2022-05-01", - "Content": null, - "Headers": { - "x-ms-unique-id": [ "35" ], - "x-ms-client-request-id": [ "7922edbf-fd11-4ab5-b919-7ecabf08958b" ], - "CommandName": [ "Az.ServiceLinker.internal\\Get-AzServiceLinker" ], - "FullCommandName": [ "Get-AzServiceLinker_List" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11974" ], - "x-ms-providerhub-traffic": [ "True" ], - "mise-correlation-id": [ "f908b852-e6bd-4b2d-9b92-61956aa2c84a" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "9afa9c6b-b089-4577-80b1-9ce362ea8177" ], - "x-ms-correlation-request-id": [ "9b4f2eba-2713-4e6d-8949-d9122da909f3" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T064734Z:9b4f2eba-2713-4e6d-8949-d9122da909f3" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:47:33 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "887" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"value\":[{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker\",\"name\":\"ps_linker\",\"type\":\"microsoft.servicelinker/linkers\",\"properties\":{\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/servicelinker-postgresql/databases/postgres\",\"resourceProperties\":null,\"type\":\"AzureResource\"},\"authInfo\":{\"name\":\"servicelinker\",\"secretInfo\":{\"value\":\"https://servicelinker-kv-ref.vault.azure.net/secrets/azure-mysql-host-28449/cc5d8095a54f4755b342f4e7884b5c84\",\"secretType\":\"keyVaultSecretUri\"},\"authType\":\"secret\"},\"clientType\":\"none\",\"scope\":null,\"vNetSolution\":null,\"secretStore\":null}}]}" - } - }, - "New-AzServiceLinkerForWebApp+[NoContext]+New postgresql connection+$PUT+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker?api-version=2022-05-01+5": { - "Request": { - "Method": "PUT", - "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker?api-version=2022-05-01", - "Content": "{\n \"properties\": {\n \"targetService\": {\n \"type\": \"AzureResource\",\n \"id\": \"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/servicelinker-postgresql/databases/postgres\"\n },\n \"authInfo\": {\n \"authType\": \"secret\",\n \"name\": \"servicelinker\",\n \"secretInfo\": {\n \"secretType\": \"keyVaultSecretUri\",\n \"value\": \"https://servicelinker-kv-ref.vault.azure.net/secrets/azure-mysql-host-28449/cc5d8095a54f4755b342f4e7884b5c84\"\n }\n },\n \"clientType\": \"dotnet\"\n }\n}", - "Headers": { - }, - "ContentHeaders": { - "Content-Type": [ "application/json" ], - "Content-Length": [ "598" ] - } - }, - "Response": { - "StatusCode": 201, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "ETag": [ "\"f500beca-0000-0200-0000-627616070000\"" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1194" ], - "x-ms-providerhub-traffic": [ "True" ], - "mise-correlation-id": [ "46e3c797-ab5c-411c-b61c-3f6876b62676" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/e41cf216-1ff2-4dde-9c58-95f99b986b75*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38?api-version=2022-05-01" ], - "x-ms-request-id": [ "e41cf216-1ff2-4dde-9c58-95f99b986b75" ], - "x-ms-correlation-request-id": [ "f89b4590-696f-4c65-a16a-950cd6c2a9d8" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T064735Z:f89b4590-696f-4c65-a16a-950cd6c2a9d8" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:47:34 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "1118" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker\",\"name\":\"ps_linker\",\"type\":\"microsoft.servicelinker/linkers\",\"systemData\":{\"createdBy\":\"xiaofanzhou@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2022-05-07T06:47:00.8777739Z\",\"lastModifiedBy\":\"xiaofanzhou@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2022-05-07T06:47:34.4559856Z\"},\"properties\":{\"provisioningState\":\"Accepted\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/servicelinker-postgresql/databases/postgres\",\"resourceProperties\":null,\"type\":\"AzureResource\"},\"authInfo\":{\"name\":\"servicelinker\",\"secretInfo\":{\"value\":\"https://servicelinker-kv-ref.vault.azure.net/secrets/azure-mysql-host-28449/cc5d8095a54f4755b342f4e7884b5c84\",\"secretType\":\"keyVaultSecretUri\"},\"authType\":\"secret\"},\"vNetSolution\":null,\"clientType\":\"dotnet\",\"secretStore\":null,\"scope\":null}}" - } - }, - "New-AzServiceLinkerForWebApp+[NoContext]+New postgresql connection+$GET+https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/e41cf216-1ff2-4dde-9c58-95f99b986b75*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38?api-version=2022-05-01+6": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/e41cf216-1ff2-4dde-9c58-95f99b986b75*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38?api-version=2022-05-01", - "Content": null, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "37" ], - "x-ms-client-request-id": [ "6369ba27-3e2f-4332-9490-9dcd91b7163f" ], - "CommandName": [ "Az.ServiceLinker.internal\\New-AzServiceLinker" ], - "FullCommandName": [ "New-AzServiceLinker_CreateExpanded" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "ETag": [ "\"0300ce13-0000-0100-0000-6276160a0000\"" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11973" ], - "x-ms-request-id": [ "301d6c3c-2b7a-470f-bd97-792280721b5c" ], - "x-ms-correlation-request-id": [ "06b6d618-97fb-4f84-b708-b296c73bc1f6" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T064805Z:06b6d618-97fb-4f84-b708-b296c73bc1f6" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:48:04 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "820" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/e41cf216-1ff2-4dde-9c58-95f99b986b75*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38\",\"name\":\"e41cf216-1ff2-4dde-9c58-95f99b986b75*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38\",\"resourceId\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker\",\"status\":\"Succeeded\",\"startTime\":\"2022-05-07T06:47:34.8806247Z\",\"endTime\":\"2022-05-07T06:47:38.2948597Z\",\"properties\":{\"message\":\"Deny public network access is set to yes. Please confirm you are using private endpoint connection to access target resource.\"}}" - } - }, - "New-AzServiceLinkerForWebApp+[NoContext]+New postgresql connection+$GET+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker?api-version=2022-05-01+7": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker?api-version=2022-05-01", - "Content": null, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "38" ], - "x-ms-client-request-id": [ "6369ba27-3e2f-4332-9490-9dcd91b7163f" ], - "CommandName": [ "Az.ServiceLinker.internal\\New-AzServiceLinker" ], - "FullCommandName": [ "New-AzServiceLinker_CreateExpanded" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "ETag": [ "\"3a002a74-0000-0100-0000-6276160a0000\"" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11972" ], - "x-ms-providerhub-traffic": [ "True" ], - "mise-correlation-id": [ "30bc6a4e-2bc0-471c-a650-2a89f4144901" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "16e26f94-74d8-4c67-ac9b-8afc7c693f06" ], - "x-ms-correlation-request-id": [ "8f7ab0c1-c341-4463-9b9e-4eb4607a3888" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T064806Z:8f7ab0c1-c341-4463-9b9e-4eb4607a3888" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:48:05 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "877" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker\",\"name\":\"ps_linker\",\"type\":\"microsoft.servicelinker/linkers\",\"properties\":{\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/servicelinker-postgresql/databases/postgres\",\"resourceProperties\":null,\"type\":\"AzureResource\"},\"authInfo\":{\"name\":\"servicelinker\",\"secretInfo\":{\"value\":\"https://servicelinker-kv-ref.vault.azure.net/secrets/azure-mysql-host-28449/cc5d8095a54f4755b342f4e7884b5c84\",\"secretType\":\"keyVaultSecretUri\"},\"authType\":\"secret\"},\"clientType\":\"dotnet\",\"scope\":null,\"vNetSolution\":null,\"secretStore\":null}}" - } - }, - "New-AzServiceLinkerForWebApp+[NoContext]+New postgresql connection+$DELETE+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker?api-version=2022-05-01+8": { - "Request": { - "Method": "DELETE", - "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker?api-version=2022-05-01", - "Content": null, - "Headers": { - "x-ms-unique-id": [ "39" ], - "x-ms-client-request-id": [ "53d86d31-d699-4efb-b0f4-6fb20ca1a1e2" ], - "CommandName": [ "Az.ServiceLinker.internal\\Remove-AzServiceLinker" ], - "FullCommandName": [ "Remove-AzServiceLinker_Delete" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], - "Authorization": [ "[Filtered]" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.0.3", "Az.ServiceLinker/0.1.1" ] }, "ContentHeaders": { } @@ -743,40 +355,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"f50027cd-0000-0200-0000-627616260000\"" ], - "Location": [ "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/9c4846a9-a395-47a5-b53f-c712eee8c0f2*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38?api-version=2022-05-01" ], - "x-ms-ratelimit-remaining-subscription-deletes": [ "14998" ], - "x-ms-providerhub-traffic": [ "True" ], - "mise-correlation-id": [ "e9276827-c9c7-4e8d-8c23-7922d86566af" ], + "ETag": [ "\"b20497b0-0000-0100-0000-63d795260000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], + "x-ms-request-id": [ "920dd332-10ec-46e7-9f5c-e8b7a57c3632" ], + "x-ms-correlation-request-id": [ "51eedb8a-f6aa-4f1c-8402-e19a4a2ee9f2" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20230130T100037Z:51eedb8a-f6aa-4f1c-8402-e19a4a2ee9f2" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/9c4846a9-a395-47a5-b53f-c712eee8c0f2*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38?api-version=2022-05-01" ], - "x-ms-request-id": [ "9c4846a9-a395-47a5-b53f-c712eee8c0f2" ], - "x-ms-correlation-request-id": [ "4c9b3bb7-f438-4076-bddf-e8246b9b50c3" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T064807Z:4c9b3bb7-f438-4076-bddf-e8246b9b50c3" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:48:06 GMT" ] + "Date": [ "Mon, 30 Jan 2023 10:00:37 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "4" ], + "Content-Length": [ "625" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "bnVsbA==" + "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/761fb192-b2db-4ac9-8ba1-a6d6c81b0259*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38\",\"name\":\"761fb192-b2db-4ac9-8ba1-a6d6c81b0259*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38\",\"resourceId\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker\",\"status\":\"Deleting\",\"startTime\":\"2023-01-30T10:00:06.7150179Z\"}", + "isContentBase64": false } }, - "New-AzServiceLinkerForWebApp+[NoContext]+New postgresql connection+$GET+https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/9c4846a9-a395-47a5-b53f-c712eee8c0f2*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38?api-version=2022-05-01+9": { + "New-AzServiceLinkerForWebApp+[NoContext]+New postgresql connection+$GET+https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/761fb192-b2db-4ac9-8ba1-a6d6c81b0259*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38?api-version=2021-01-01-privatepreview+10": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/9c4846a9-a395-47a5-b53f-c712eee8c0f2*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/761fb192-b2db-4ac9-8ba1-a6d6c81b0259*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38?api-version=2021-01-01-privatepreview", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "40" ], - "x-ms-client-request-id": [ "53d86d31-d699-4efb-b0f4-6fb20ca1a1e2" ], + "x-ms-unique-id": [ "10" ], + "x-ms-client-request-id": [ "ad9d0fd7-3782-434e-91e0-000dfa3ee2dc" ], "CommandName": [ "Az.ServiceLinker.internal\\Remove-AzServiceLinker" ], "FullCommandName": [ "Remove-AzServiceLinker_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.0.3", "Az.ServiceLinker/0.1.1" ] }, "ContentHeaders": { } @@ -786,36 +396,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"0605f34d-0000-0200-0000-627616290000\"" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11971" ], - "x-ms-request-id": [ "18a023f6-c982-4312-b326-0208c4cdf7a8" ], - "x-ms-correlation-request-id": [ "6162f543-d7e4-4b6e-b3a9-c941dc363dd6" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T064837Z:6162f543-d7e4-4b6e-b3a9-c941dc363dd6" ], + "ETag": [ "\"b204a7b0-0000-0100-0000-63d795460000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], + "x-ms-request-id": [ "ad63ec45-4b75-49a4-b8ae-4ad386604d92" ], + "x-ms-correlation-request-id": [ "1bfa994a-c31d-4e34-a84c-a1599cc6667a" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20230130T100107Z:1bfa994a-c31d-4e34-a84c-a1599cc6667a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:48:37 GMT" ] + "Date": [ "Mon, 30 Jan 2023 10:01:07 GMT" ] }, "ContentHeaders": { "Content-Length": [ "685" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/9c4846a9-a395-47a5-b53f-c712eee8c0f2*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38\",\"name\":\"9c4846a9-a395-47a5-b53f-c712eee8c0f2*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38\",\"resourceId\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker\",\"status\":\"Succeeded\",\"startTime\":\"2022-05-07T06:48:06.8524053Z\",\"endTime\":\"2022-05-07T06:48:09.9042823Z\",\"properties\":null}" + "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/761fb192-b2db-4ac9-8ba1-a6d6c81b0259*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38\",\"name\":\"761fb192-b2db-4ac9-8ba1-a6d6c81b0259*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38\",\"resourceId\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker\",\"status\":\"Succeeded\",\"startTime\":\"2023-01-30T10:00:06.7150179Z\",\"endTime\":\"2023-01-30T10:00:38.0211534Z\",\"properties\":null}", + "isContentBase64": false } }, - "New-AzServiceLinkerForWebApp+[NoContext]+New postgresql connection+$GET+https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/9c4846a9-a395-47a5-b53f-c712eee8c0f2*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38?api-version=2022-05-01+10": { + "New-AzServiceLinkerForWebApp+[NoContext]+New postgresql connection+$GET+https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/761fb192-b2db-4ac9-8ba1-a6d6c81b0259*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38?api-version=2021-01-01-privatepreview+11": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/9c4846a9-a395-47a5-b53f-c712eee8c0f2*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/761fb192-b2db-4ac9-8ba1-a6d6c81b0259*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38?api-version=2021-01-01-privatepreview", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "41" ], - "x-ms-client-request-id": [ "53d86d31-d699-4efb-b0f4-6fb20ca1a1e2" ], + "x-ms-unique-id": [ "11" ], + "x-ms-client-request-id": [ "ad9d0fd7-3782-434e-91e0-000dfa3ee2dc" ], "CommandName": [ "Az.ServiceLinker.internal\\Remove-AzServiceLinker" ], "FullCommandName": [ "Remove-AzServiceLinker_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.0.3", "Az.ServiceLinker/0.1.1" ] }, "ContentHeaders": { } @@ -825,35 +437,37 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"0605f34d-0000-0200-0000-627616290000\"" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11970" ], - "x-ms-request-id": [ "201eeb40-798d-4775-9b2e-e807da182b7a" ], - "x-ms-correlation-request-id": [ "8114cba7-b022-410f-83f3-dd5b023d7984" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T064838Z:8114cba7-b022-410f-83f3-dd5b023d7984" ], + "ETag": [ "\"b204a7b0-0000-0100-0000-63d795460000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11992" ], + "x-ms-request-id": [ "34a14c94-a9bc-4f3d-949c-b8e9a28e380a" ], + "x-ms-correlation-request-id": [ "5accc321-b68a-43eb-8d39-6aec5489bece" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20230130T100108Z:5accc321-b68a-43eb-8d39-6aec5489bece" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:48:37 GMT" ] + "Date": [ "Mon, 30 Jan 2023 10:01:07 GMT" ] }, "ContentHeaders": { "Content-Length": [ "685" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/9c4846a9-a395-47a5-b53f-c712eee8c0f2*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38\",\"name\":\"9c4846a9-a395-47a5-b53f-c712eee8c0f2*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38\",\"resourceId\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker\",\"status\":\"Succeeded\",\"startTime\":\"2022-05-07T06:48:06.8524053Z\",\"endTime\":\"2022-05-07T06:48:09.9042823Z\",\"properties\":null}" + "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/761fb192-b2db-4ac9-8ba1-a6d6c81b0259*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38\",\"name\":\"761fb192-b2db-4ac9-8ba1-a6d6c81b0259*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38\",\"resourceId\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker\",\"status\":\"Succeeded\",\"startTime\":\"2023-01-30T10:00:06.7150179Z\",\"endTime\":\"2023-01-30T10:00:38.0211534Z\",\"properties\":null}", + "isContentBase64": false } }, - "New-AzServiceLinkerForWebApp+[NoContext]+New postgresql connection+$GET+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers?api-version=2022-05-01+11": { + "New-AzServiceLinkerForWebApp+[NoContext]+New postgresql connection+$GET+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers?api-version=2022-11-01-preview+12": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers?api-version=2022-05-01", + "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers?api-version=2022-11-01-preview", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "42" ], - "x-ms-client-request-id": [ "2f767ff8-11bf-4562-a7d0-7bec7b325890" ], + "x-ms-unique-id": [ "12" ], + "x-ms-client-request-id": [ "f13cfbb1-fffd-4a1e-b63d-9482bbcbd36a" ], "CommandName": [ "Az.ServiceLinker.internal\\Get-AzServiceLinker" ], "FullCommandName": [ "Get-AzServiceLinker_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.0.3", "Az.ServiceLinker/0.1.1" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -864,35 +478,36 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11969" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], "x-ms-providerhub-traffic": [ "True" ], - "mise-correlation-id": [ "447abcca-b511-4e0d-9cdf-98c6448fc8e7" ], + "mise-correlation-id": [ "73f5c0d7-158f-4a83-b5a8-4e90fea38195" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "7d959197-5128-4bad-b62f-1de5b22dcc63" ], - "x-ms-correlation-request-id": [ "1675a05c-8922-49c9-bacb-7daeaa6246d9" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T064838Z:1675a05c-8922-49c9-bacb-7daeaa6246d9" ], + "x-ms-request-id": [ "06aba49b-98c3-4d2b-ba4d-db9e0bfd58ff" ], + "x-ms-correlation-request-id": [ "93fcf8aa-1442-4223-a1ee-86fc03a75b44" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20230130T100110Z:93fcf8aa-1442-4223-a1ee-86fc03a75b44" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:48:38 GMT" ] + "Date": [ "Mon, 30 Jan 2023 10:01:09 GMT" ] }, "ContentHeaders": { "Content-Length": [ "12" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[]}" + "Content": "{\"value\":[]}", + "isContentBase64": false } }, - "New-AzServiceLinkerForWebApp+[NoContext]+New storage connection+$PUT+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker?api-version=2022-05-01+1": { + "New-AzServiceLinkerForWebApp+[NoContext]+New storage connection+$PUT+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker?api-version=2022-11-01-preview+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker?api-version=2022-05-01", - "Content": "{\n \"properties\": {\n \"targetService\": {\n \"type\": \"AzureResource\",\n \"id\": \"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Storage/storageAccounts/servicelinkerteststorage/blobServices/default\"\n },\n \"authInfo\": {\n \"authType\": \"secret\",\n \"secretInfo\": {\n \"secretType\": \"rawValue\"\n }\n },\n \"clientType\": \"none\"\n }\n}", + "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker?api-version=2022-11-01-preview", + "Content": "{\r\n \"properties\": {\r\n \"targetService\": {\r\n \"type\": \"AzureResource\",\r\n \"id\": \"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Storage/storageAccounts/servicelinkerteststorage/blobServices/default\"\r\n },\r\n \"authInfo\": {\r\n \"authType\": \"secret\",\r\n \"secretInfo\": {\r\n \"secretType\": \"rawValue\"\r\n }\r\n },\r\n \"clientType\": \"none\"\r\n }\r\n}", + "isContentBase64": false, "Headers": { }, "ContentHeaders": { "Content-Type": [ "application/json" ], - "Content-Length": [ "429" ] + "Content-Length": [ "443" ] } }, "Response": { @@ -900,39 +515,41 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"f50061cf-0000-0200-0000-627616470000\"" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1193" ], + "ETag": [ "\"ec00b213-0000-0100-0000-63d795670000\"" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1197" ], "x-ms-providerhub-traffic": [ "True" ], - "mise-correlation-id": [ "54e2c8e2-ada0-491f-9ca1-b47159f22f5f" ], + "mise-correlation-id": [ "47364f49-4f49-4521-b2de-60efbcb0a0b8" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/86088970-d255-44bc-9f86-d28870f9df1d*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38?api-version=2022-05-01" ], - "x-ms-request-id": [ "86088970-d255-44bc-9f86-d28870f9df1d" ], - "x-ms-correlation-request-id": [ "26717051-9e0d-4771-9634-6c0a953cfd31" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T064839Z:26717051-9e0d-4771-9634-6c0a953cfd31" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/66b349c7-7060-45c1-ab48-ecb866ec4db2*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38?api-version=2021-01-01-privatepreview" ], + "x-ms-request-id": [ "66b349c7-7060-45c1-ab48-ecb866ec4db2" ], + "x-ms-correlation-request-id": [ "a52e187c-938a-4902-a8b9-08456b36e2d5" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20230130T100111Z:a52e187c-938a-4902-a8b9-08456b36e2d5" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:48:39 GMT" ] + "Date": [ "Mon, 30 Jan 2023 10:01:11 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "990" ], + "Content-Length": [ "1033" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker\",\"name\":\"ps_linker\",\"type\":\"microsoft.servicelinker/linkers\",\"systemData\":{\"createdBy\":\"xiaofanzhou@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2022-05-07T06:48:38.909081Z\",\"lastModifiedBy\":\"xiaofanzhou@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2022-05-07T06:48:38.909081Z\"},\"properties\":{\"provisioningState\":\"Accepted\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Storage/storageAccounts/servicelinkerteststorage/blobServices/default\",\"resourceProperties\":null,\"type\":\"AzureResource\"},\"authInfo\":{\"name\":null,\"secretInfo\":{\"value\":null,\"secretType\":\"rawValue\"},\"authType\":\"secret\"},\"vNetSolution\":null,\"clientType\":\"none\",\"secretStore\":null,\"scope\":null}}" + "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker\",\"name\":\"ps_linker\",\"type\":\"microsoft.servicelinker/linkers\",\"systemData\":{\"createdBy\":\"xiaofanzhou@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-01-30T10:01:11.2193137Z\",\"lastModifiedBy\":\"xiaofanzhou@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-30T10:01:11.2193137Z\"},\"properties\":{\"provisioningState\":\"Accepted\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Storage/storageAccounts/servicelinkerteststorage/blobServices/default\",\"resourceProperties\":null,\"type\":\"AzureResource\"},\"authInfo\":{\"name\":null,\"secretInfo\":{\"secretType\":\"rawValue\"},\"authType\":\"secret\"},\"vNetSolution\":null,\"clientType\":\"none\",\"secretStore\":null,\"scope\":null,\"publicNetworkSolution\":null,\"configurationInfo\":null}}", + "isContentBase64": false } }, - "New-AzServiceLinkerForWebApp+[NoContext]+New storage connection+$GET+https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/86088970-d255-44bc-9f86-d28870f9df1d*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38?api-version=2022-05-01+2": { + "New-AzServiceLinkerForWebApp+[NoContext]+New storage connection+$GET+https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/66b349c7-7060-45c1-ab48-ecb866ec4db2*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38?api-version=2021-01-01-privatepreview+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/86088970-d255-44bc-9f86-d28870f9df1d*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/66b349c7-7060-45c1-ab48-ecb866ec4db2*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38?api-version=2021-01-01-privatepreview", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "44" ], - "x-ms-client-request-id": [ "85c0e897-263e-4229-9588-c513de53b609" ], + "x-ms-unique-id": [ "14" ], + "x-ms-client-request-id": [ "92096782-031d-4f84-9825-2667d6c456dd" ], "CommandName": [ "Az.ServiceLinker.internal\\New-AzServiceLinker" ], "FullCommandName": [ "New-AzServiceLinker_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.0.3", "Az.ServiceLinker/0.1.1" ] }, "ContentHeaders": { } @@ -942,36 +559,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"0605fb4e-0000-0200-0000-6276164c0000\"" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11968" ], - "x-ms-request-id": [ "5a1f7362-c0c7-48bd-8cce-061392cf2309" ], - "x-ms-correlation-request-id": [ "d6e6d940-0fd0-4b04-8e91-0834022547b9" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T064909Z:d6e6d940-0fd0-4b04-8e91-0834022547b9" ], + "ETag": [ "\"b204b9b0-0000-0100-0000-63d7956e0000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11990" ], + "x-ms-request-id": [ "ecd8d2e9-93b1-4cd1-a0fe-40d5228478e5" ], + "x-ms-correlation-request-id": [ "7a899f41-26ce-4d88-8be6-2dba5335f48f" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20230130T100142Z:7a899f41-26ce-4d88-8be6-2dba5335f48f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:49:09 GMT" ] + "Date": [ "Mon, 30 Jan 2023 10:01:42 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "683" ], + "Content-Length": [ "697" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/86088970-d255-44bc-9f86-d28870f9df1d*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38\",\"name\":\"86088970-d255-44bc-9f86-d28870f9df1d*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38\",\"resourceId\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker\",\"status\":\"Succeeded\",\"startTime\":\"2022-05-07T06:48:39.3264986Z\",\"endTime\":\"2022-05-07T06:48:44.3362365Z\",\"properties\":{}}" + "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/66b349c7-7060-45c1-ab48-ecb866ec4db2*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38\",\"name\":\"66b349c7-7060-45c1-ab48-ecb866ec4db2*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38\",\"resourceId\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker\",\"status\":\"Succeeded\",\"startTime\":\"2023-01-30T10:01:11.6121743Z\",\"endTime\":\"2023-01-30T10:01:18.3135945Z\",\"properties\":{\"Message\":null}}", + "isContentBase64": false } }, - "New-AzServiceLinkerForWebApp+[NoContext]+New storage connection+$GET+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker?api-version=2022-05-01+3": { + "New-AzServiceLinkerForWebApp+[NoContext]+New storage connection+$GET+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker?api-version=2022-11-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker?api-version=2022-05-01", + "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker?api-version=2022-11-01-preview", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "45" ], - "x-ms-client-request-id": [ "85c0e897-263e-4229-9588-c513de53b609" ], + "x-ms-unique-id": [ "15" ], + "x-ms-client-request-id": [ "92096782-031d-4f84-9825-2667d6c456dd" ], "CommandName": [ "Az.ServiceLinker.internal\\New-AzServiceLinker" ], "FullCommandName": [ "New-AzServiceLinker_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.0.3", "Az.ServiceLinker/0.1.1" ] }, "ContentHeaders": { } @@ -981,38 +600,39 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"f500b6cf-0000-0200-0000-6276164c0000\"" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11967" ], + "ETag": [ "\"ec00c613-0000-0100-0000-63d7956e0000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11989" ], "x-ms-providerhub-traffic": [ "True" ], - "mise-correlation-id": [ "8a92c71b-a0dd-430a-bdef-eaa5f55c51d2" ], + "mise-correlation-id": [ "19a1a7b8-4620-44b0-8bc8-3009da83448a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "48f71e0c-42c5-49b9-aa50-3d2ddafff0b1" ], - "x-ms-correlation-request-id": [ "1f76ff48-f69a-42ec-a33a-3297e4b7ec25" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T064910Z:1f76ff48-f69a-42ec-a33a-3297e4b7ec25" ], + "x-ms-request-id": [ "a5dac0c0-0a04-4084-8502-66b986760552" ], + "x-ms-correlation-request-id": [ "272c7129-5594-4084-9150-9cf7131bef43" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20230130T100143Z:272c7129-5594-4084-9150-9cf7131bef43" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:49:10 GMT" ] + "Date": [ "Mon, 30 Jan 2023 10:01:42 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "751" ], + "Content-Length": [ "1034" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker\",\"name\":\"ps_linker\",\"type\":\"microsoft.servicelinker/linkers\",\"properties\":{\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Storage/storageAccounts/servicelinkerteststorage/blobServices/default\",\"resourceProperties\":null,\"type\":\"AzureResource\"},\"authInfo\":{\"name\":null,\"secretInfo\":{\"value\":null,\"secretType\":\"rawValue\"},\"authType\":\"secret\"},\"clientType\":\"none\",\"scope\":null,\"vNetSolution\":null,\"secretStore\":null}}" + "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker\",\"name\":\"ps_linker\",\"type\":\"microsoft.servicelinker/linkers\",\"systemData\":{\"createdBy\":\"xiaofanzhou@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-01-30T10:01:11.2193137Z\",\"lastModifiedBy\":\"xiaofanzhou@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-30T10:01:11.2193137Z\"},\"properties\":{\"publicNetworkSolution\":null,\"configurationInfo\":null,\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Storage/storageAccounts/servicelinkerteststorage/blobServices/default\",\"resourceProperties\":null,\"type\":\"AzureResource\"},\"authInfo\":{\"name\":null,\"secretInfo\":{\"secretType\":\"rawValue\"},\"authType\":\"secret\"},\"clientType\":\"none\",\"scope\":null,\"vNetSolution\":null,\"secretStore\":null}}", + "isContentBase64": false } }, - "New-AzServiceLinkerForWebApp+[NoContext]+New storage connection+$GET+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers?api-version=2022-05-01+4": { + "New-AzServiceLinkerForWebApp+[NoContext]+New storage connection+$GET+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers?api-version=2022-11-01-preview+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers?api-version=2022-05-01", + "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers?api-version=2022-11-01-preview", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "46" ], - "x-ms-client-request-id": [ "1f0cc32a-bc40-4278-b1bf-f5ed6a6f15e1" ], + "x-ms-unique-id": [ "16" ], + "x-ms-client-request-id": [ "b33aca51-9229-42ce-8361-bc823e35857a" ], "CommandName": [ "Az.ServiceLinker.internal\\Get-AzServiceLinker" ], "FullCommandName": [ "Get-AzServiceLinker_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.0.3", "Az.ServiceLinker/0.1.1" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1023,37 +643,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11966" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11988" ], "x-ms-providerhub-traffic": [ "True" ], - "mise-correlation-id": [ "c9d0ea97-8042-4355-98e0-1e498651bddd" ], + "mise-correlation-id": [ "597af7ef-4c32-4465-ad4d-2ec8f93604c6" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "1fa0c429-e6f5-47e4-b235-33a331e7cc50" ], - "x-ms-correlation-request-id": [ "3c7f88ad-0835-45b7-b56d-1410f8323cd1" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T064911Z:3c7f88ad-0835-45b7-b56d-1410f8323cd1" ], + "x-ms-request-id": [ "b18b6004-f4b8-4c80-8dee-0874008252c1" ], + "x-ms-correlation-request-id": [ "75273ccd-8c84-4dd7-a0bb-0abe772d1615" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20230130T100144Z:75273ccd-8c84-4dd7-a0bb-0abe772d1615" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:49:10 GMT" ] + "Date": [ "Mon, 30 Jan 2023 10:01:43 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "763" ], + "Content-Length": [ "1046" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker\",\"name\":\"ps_linker\",\"type\":\"microsoft.servicelinker/linkers\",\"properties\":{\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Storage/storageAccounts/servicelinkerteststorage/blobServices/default\",\"resourceProperties\":null,\"type\":\"AzureResource\"},\"authInfo\":{\"name\":null,\"secretInfo\":{\"value\":null,\"secretType\":\"rawValue\"},\"authType\":\"secret\"},\"clientType\":\"none\",\"scope\":null,\"vNetSolution\":null,\"secretStore\":null}}]}" + "Content": "{\"value\":[{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker\",\"name\":\"ps_linker\",\"type\":\"microsoft.servicelinker/linkers\",\"systemData\":{\"createdBy\":\"xiaofanzhou@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-01-30T10:01:11.2193137Z\",\"lastModifiedBy\":\"xiaofanzhou@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-30T10:01:11.2193137Z\"},\"properties\":{\"publicNetworkSolution\":null,\"configurationInfo\":null,\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Storage/storageAccounts/servicelinkerteststorage/blobServices/default\",\"resourceProperties\":null,\"type\":\"AzureResource\"},\"authInfo\":{\"name\":null,\"secretInfo\":{\"secretType\":\"rawValue\"},\"authType\":\"secret\"},\"clientType\":\"none\",\"scope\":null,\"vNetSolution\":null,\"secretStore\":null}}]}", + "isContentBase64": false } }, - "New-AzServiceLinkerForWebApp+[NoContext]+New storage connection+$DELETE+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker?api-version=2022-05-01+5": { + "New-AzServiceLinkerForWebApp+[NoContext]+New storage connection+$DELETE+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker?api-version=2022-11-01-preview+5": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker?api-version=2022-05-01", + "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker?api-version=2022-11-01-preview", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "47" ], - "x-ms-client-request-id": [ "ab8f385f-4f8c-4f64-a84a-9372f4ea7a3f" ], + "x-ms-unique-id": [ "17" ], + "x-ms-client-request-id": [ "d5878ed0-c828-4fb5-a71b-c6bfd365f957" ], "CommandName": [ "Az.ServiceLinker.internal\\Remove-AzServiceLinker" ], "FullCommandName": [ "Remove-AzServiceLinker_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.0.3", "Az.ServiceLinker/0.1.1" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1064,40 +685,42 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"f50055d2-0000-0200-0000-627616680000\"" ], - "Location": [ "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/d1b6eb60-e28f-41f8-9c40-31d54e768f59*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38?api-version=2022-05-01" ], - "x-ms-ratelimit-remaining-subscription-deletes": [ "14997" ], + "ETag": [ "\"ec00f813-0000-0100-0000-63d795890000\"" ], + "Location": [ "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/9b214d31-4983-4367-80e1-2f4e37461ae8*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38?api-version=2021-01-01-privatepreview" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14998" ], "x-ms-providerhub-traffic": [ "True" ], - "mise-correlation-id": [ "a7b5ac36-774c-44f9-b80c-7143301429ab" ], + "mise-correlation-id": [ "4729066f-ca25-453a-ac5d-a4b71228a838" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/d1b6eb60-e28f-41f8-9c40-31d54e768f59*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38?api-version=2022-05-01" ], - "x-ms-request-id": [ "d1b6eb60-e28f-41f8-9c40-31d54e768f59" ], - "x-ms-correlation-request-id": [ "84103be0-39b5-4ef3-ad45-0dbfc14f24d0" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T064912Z:84103be0-39b5-4ef3-ad45-0dbfc14f24d0" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/9b214d31-4983-4367-80e1-2f4e37461ae8*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38?api-version=2021-01-01-privatepreview" ], + "x-ms-request-id": [ "9b214d31-4983-4367-80e1-2f4e37461ae8" ], + "x-ms-correlation-request-id": [ "5e69cc4e-65ff-4c11-824b-a9051d4b16a0" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20230130T100145Z:5e69cc4e-65ff-4c11-824b-a9051d4b16a0" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:49:11 GMT" ] + "Date": [ "Mon, 30 Jan 2023 10:01:44 GMT" ] }, "ContentHeaders": { "Content-Length": [ "4" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "bnVsbA==" + "Content": "bnVsbA==", + "isContentBase64": false } }, - "New-AzServiceLinkerForWebApp+[NoContext]+New storage connection+$GET+https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/d1b6eb60-e28f-41f8-9c40-31d54e768f59*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38?api-version=2022-05-01+6": { + "New-AzServiceLinkerForWebApp+[NoContext]+New storage connection+$GET+https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/9b214d31-4983-4367-80e1-2f4e37461ae8*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38?api-version=2021-01-01-privatepreview+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/d1b6eb60-e28f-41f8-9c40-31d54e768f59*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/9b214d31-4983-4367-80e1-2f4e37461ae8*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38?api-version=2021-01-01-privatepreview", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "48" ], - "x-ms-client-request-id": [ "ab8f385f-4f8c-4f64-a84a-9372f4ea7a3f" ], + "x-ms-unique-id": [ "18" ], + "x-ms-client-request-id": [ "d5878ed0-c828-4fb5-a71b-c6bfd365f957" ], "CommandName": [ "Az.ServiceLinker.internal\\Remove-AzServiceLinker" ], "FullCommandName": [ "Remove-AzServiceLinker_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.0.3", "Az.ServiceLinker/0.1.1" ] }, "ContentHeaders": { } @@ -1107,36 +730,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"0300df13-0000-0100-0000-6276166b0000\"" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11965" ], - "x-ms-request-id": [ "e8e86d5e-26f5-46c7-9e1e-8c323967983a" ], - "x-ms-correlation-request-id": [ "88bef90e-6c26-465d-88e9-a070076b2aa8" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T064942Z:88bef90e-6c26-465d-88e9-a070076b2aa8" ], + "ETag": [ "\"b204bfb0-0000-0100-0000-63d7958d0000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11987" ], + "x-ms-request-id": [ "6be7f65e-4b94-42b1-a703-1ce37ac1832d" ], + "x-ms-correlation-request-id": [ "0098570e-ce81-4a0e-9719-0b5c855e2571" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20230130T100216Z:0098570e-ce81-4a0e-9719-0b5c855e2571" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:49:42 GMT" ] + "Date": [ "Mon, 30 Jan 2023 10:02:15 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "684" ], + "Content-Length": [ "685" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/d1b6eb60-e28f-41f8-9c40-31d54e768f59*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38\",\"name\":\"d1b6eb60-e28f-41f8-9c40-31d54e768f59*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38\",\"resourceId\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker\",\"status\":\"Succeeded\",\"startTime\":\"2022-05-07T06:49:12.1876463Z\",\"endTime\":\"2022-05-07T06:49:15.940549Z\",\"properties\":null}" + "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/9b214d31-4983-4367-80e1-2f4e37461ae8*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38\",\"name\":\"9b214d31-4983-4367-80e1-2f4e37461ae8*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38\",\"resourceId\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker\",\"status\":\"Succeeded\",\"startTime\":\"2023-01-30T10:01:45.1647405Z\",\"endTime\":\"2023-01-30T10:01:49.8982901Z\",\"properties\":null}", + "isContentBase64": false } }, - "New-AzServiceLinkerForWebApp+[NoContext]+New storage connection+$GET+https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/d1b6eb60-e28f-41f8-9c40-31d54e768f59*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38?api-version=2022-05-01+7": { + "New-AzServiceLinkerForWebApp+[NoContext]+New storage connection+$GET+https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/9b214d31-4983-4367-80e1-2f4e37461ae8*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38?api-version=2021-01-01-privatepreview+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/d1b6eb60-e28f-41f8-9c40-31d54e768f59*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/9b214d31-4983-4367-80e1-2f4e37461ae8*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38?api-version=2021-01-01-privatepreview", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "49" ], - "x-ms-client-request-id": [ "ab8f385f-4f8c-4f64-a84a-9372f4ea7a3f" ], + "x-ms-unique-id": [ "19" ], + "x-ms-client-request-id": [ "d5878ed0-c828-4fb5-a71b-c6bfd365f957" ], "CommandName": [ "Az.ServiceLinker.internal\\Remove-AzServiceLinker" ], "FullCommandName": [ "Remove-AzServiceLinker_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.0.3", "Az.ServiceLinker/0.1.1" ] }, "ContentHeaders": { } @@ -1146,35 +771,37 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"0300df13-0000-0100-0000-6276166b0000\"" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11964" ], - "x-ms-request-id": [ "78606c6c-aa15-422f-a59e-a2f9486dcb55" ], - "x-ms-correlation-request-id": [ "a56e4160-aa51-403d-881f-1fde1a925ffd" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T064943Z:a56e4160-aa51-403d-881f-1fde1a925ffd" ], + "ETag": [ "\"b204bfb0-0000-0100-0000-63d7958d0000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11986" ], + "x-ms-request-id": [ "86dcb750-861d-4cd4-8cdf-29d0aa8b3e93" ], + "x-ms-correlation-request-id": [ "6e1b0811-c881-468c-8214-9c025134b2ac" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20230130T100216Z:6e1b0811-c881-468c-8214-9c025134b2ac" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:49:43 GMT" ] + "Date": [ "Mon, 30 Jan 2023 10:02:16 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "684" ], + "Content-Length": [ "685" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/d1b6eb60-e28f-41f8-9c40-31d54e768f59*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38\",\"name\":\"d1b6eb60-e28f-41f8-9c40-31d54e768f59*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38\",\"resourceId\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker\",\"status\":\"Succeeded\",\"startTime\":\"2022-05-07T06:49:12.1876463Z\",\"endTime\":\"2022-05-07T06:49:15.940549Z\",\"properties\":null}" + "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/9b214d31-4983-4367-80e1-2f4e37461ae8*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38\",\"name\":\"9b214d31-4983-4367-80e1-2f4e37461ae8*1DBA0E39B422ED3F2F61DD3B4A9FF51C1FA136EBEE12A84D4CBF1569EFDA5F38\",\"resourceId\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker\",\"status\":\"Succeeded\",\"startTime\":\"2023-01-30T10:01:45.1647405Z\",\"endTime\":\"2023-01-30T10:01:49.8982901Z\",\"properties\":null}", + "isContentBase64": false } }, - "New-AzServiceLinkerForWebApp+[NoContext]+New storage connection+$GET+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers?api-version=2022-05-01+8": { + "New-AzServiceLinkerForWebApp+[NoContext]+New storage connection+$GET+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers?api-version=2022-11-01-preview+8": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers?api-version=2022-05-01", + "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers?api-version=2022-11-01-preview", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "50" ], - "x-ms-client-request-id": [ "fe2541ed-b0f6-4405-9a5e-08810db75ca3" ], + "x-ms-unique-id": [ "20" ], + "x-ms-client-request-id": [ "8bdbf8ee-c23a-4557-b904-c151839bff0b" ], "CommandName": [ "Az.ServiceLinker.internal\\Get-AzServiceLinker" ], "FullCommandName": [ "Get-AzServiceLinker_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.0.3", "Az.ServiceLinker/0.1.1" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1185,23 +812,23 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11963" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11985" ], "x-ms-providerhub-traffic": [ "True" ], - "mise-correlation-id": [ "6bd723f1-27f8-45ee-9d3c-229db39644cf" ], + "mise-correlation-id": [ "581c3012-2da1-4c03-8111-81e0cb336951" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "d61ad838-754b-47e7-b865-4b80d2ed442e" ], - "x-ms-correlation-request-id": [ "e62c7c23-eca4-420a-a0d8-452881c5552c" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T064944Z:e62c7c23-eca4-420a-a0d8-452881c5552c" ], + "x-ms-request-id": [ "5af0d8ae-2e30-4cf9-aacb-9878c944b59c" ], + "x-ms-correlation-request-id": [ "e4e3dd93-c2e1-4091-a75d-18ccfd7ae25e" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20230130T100217Z:e4e3dd93-c2e1-4091-a75d-18ccfd7ae25e" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:49:44 GMT" ] + "Date": [ "Mon, 30 Jan 2023 10:02:16 GMT" ] }, "ContentHeaders": { "Content-Length": [ "12" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[]}" + "Content": "{\"value\":[]}", + "isContentBase64": false } } } \ No newline at end of file diff --git a/src/ServiceLinker/test/Remove-AzServiceLinkerForSpringCloud.Recording.json b/src/ServiceLinker/test/Remove-AzServiceLinkerForSpringCloud.Recording.json index b5fa9ef89afd..11281345baef 100644 --- a/src/ServiceLinker/test/Remove-AzServiceLinkerForSpringCloud.Recording.json +++ b/src/ServiceLinker/test/Remove-AzServiceLinkerForSpringCloud.Recording.json @@ -1,137 +1,56 @@ { - "Remove-AzServiceLinkerForSpringCloud+[NoContext]+Delete+$DELETE+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers/ps_linker?api-version=2022-05-01+1": { + "Remove-AzServiceLinkerForSpringCloud+[NoContext]+Delete+$DELETE+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers/ps_linker?api-version=2022-11-01-preview+1": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers/ps_linker?api-version=2022-05-01", + "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers/ps_linker?api-version=2022-11-01-preview", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "51" ], - "x-ms-client-request-id": [ "4d14a9fc-1122-464f-9ec7-e0098c35f9d6" ], + "x-ms-unique-id": [ "38" ], + "x-ms-client-request-id": [ "9728fdaf-7de8-41da-941f-7ce13a996f7d" ], "CommandName": [ "Az.ServiceLinker.internal\\Remove-AzServiceLinker" ], "FullCommandName": [ "Remove-AzServiceLinker_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceLinker/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { } }, "Response": { - "StatusCode": 202, + "StatusCode": 204, "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"f5006fd6-0000-0200-0000-627616b10000\"" ], - "Location": [ "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/aac76862-44fc-41c0-b9cd-c191c5c2e733*FF9853222A32BCC2A8434BCA00837B5104E7175F34B3F417895F59A43CD06D0C?api-version=2022-05-01" ], - "x-ms-ratelimit-remaining-subscription-deletes": [ "14996" ], "x-ms-providerhub-traffic": [ "True" ], - "mise-correlation-id": [ "33d577d5-6432-40fb-beec-10563de19caf" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/aac76862-44fc-41c0-b9cd-c191c5c2e733*FF9853222A32BCC2A8434BCA00837B5104E7175F34B3F417895F59A43CD06D0C?api-version=2022-05-01" ], - "x-ms-request-id": [ "aac76862-44fc-41c0-b9cd-c191c5c2e733" ], - "x-ms-correlation-request-id": [ "9b58290b-06cb-424d-b363-54493c2463a6" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T065025Z:9b58290b-06cb-424d-b363-54493c2463a6" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:50:25 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "4" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "bnVsbA==" - } - }, - "Remove-AzServiceLinkerForSpringCloud+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/aac76862-44fc-41c0-b9cd-c191c5c2e733*FF9853222A32BCC2A8434BCA00837B5104E7175F34B3F417895F59A43CD06D0C?api-version=2022-05-01+2": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/aac76862-44fc-41c0-b9cd-c191c5c2e733*FF9853222A32BCC2A8434BCA00837B5104E7175F34B3F417895F59A43CD06D0C?api-version=2022-05-01", - "Content": null, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "52" ], - "x-ms-client-request-id": [ "4d14a9fc-1122-464f-9ec7-e0098c35f9d6" ], - "CommandName": [ "Az.ServiceLinker.internal\\Remove-AzServiceLinker" ], - "FullCommandName": [ "Remove-AzServiceLinker_Delete" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "ETag": [ "\"0300e913-0000-0100-0000-627616b30000\"" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11962" ], - "x-ms-request-id": [ "0a0e4643-baac-4121-bc9b-f2ce6d9e0c19" ], - "x-ms-correlation-request-id": [ "ee09d7fe-fe52-4f33-b31b-ddda5e279a9b" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T065055Z:ee09d7fe-fe52-4f33-b31b-ddda5e279a9b" ], + "x-ms-request-id": [ "00000000-0000-0000-0000-000000000000" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14997" ], + "x-ms-correlation-request-id": [ "c3f9d362-69c1-4113-8a4b-2b0df10751a0" ], + "x-ms-routing-request-id": [ "KOREASOUTH:20230130T051940Z:c3f9d362-69c1-4113-8a4b-2b0df10751a0" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:50:54 GMT" ] + "Date": [ "Mon, 30 Jan 2023 05:19:40 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "728" ], - "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/aac76862-44fc-41c0-b9cd-c191c5c2e733*FF9853222A32BCC2A8434BCA00837B5104E7175F34B3F417895F59A43CD06D0C\",\"name\":\"aac76862-44fc-41c0-b9cd-c191c5c2e733*FF9853222A32BCC2A8434BCA00837B5104E7175F34B3F417895F59A43CD06D0C\",\"resourceId\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers/ps_linker\",\"status\":\"Succeeded\",\"startTime\":\"2022-05-07T06:50:24.9822529Z\",\"endTime\":\"2022-05-07T06:50:27.7001969Z\",\"properties\":null}" - } - }, - "Remove-AzServiceLinkerForSpringCloud+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/aac76862-44fc-41c0-b9cd-c191c5c2e733*FF9853222A32BCC2A8434BCA00837B5104E7175F34B3F417895F59A43CD06D0C?api-version=2022-05-01+3": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/aac76862-44fc-41c0-b9cd-c191c5c2e733*FF9853222A32BCC2A8434BCA00837B5104E7175F34B3F417895F59A43CD06D0C?api-version=2022-05-01", "Content": null, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "53" ], - "x-ms-client-request-id": [ "4d14a9fc-1122-464f-9ec7-e0098c35f9d6" ], - "CommandName": [ "Az.ServiceLinker.internal\\Remove-AzServiceLinker" ], - "FullCommandName": [ "Remove-AzServiceLinker_Delete" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "ETag": [ "\"0300e913-0000-0100-0000-627616b30000\"" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11961" ], - "x-ms-request-id": [ "6419afc2-12db-4754-ab70-b6575f610017" ], - "x-ms-correlation-request-id": [ "c5da3490-5ced-4c93-ae61-ffc29e966db4" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T065056Z:c5da3490-5ced-4c93-ae61-ffc29e966db4" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:50:55 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "728" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/aac76862-44fc-41c0-b9cd-c191c5c2e733*FF9853222A32BCC2A8434BCA00837B5104E7175F34B3F417895F59A43CD06D0C\",\"name\":\"aac76862-44fc-41c0-b9cd-c191c5c2e733*FF9853222A32BCC2A8434BCA00837B5104E7175F34B3F417895F59A43CD06D0C\",\"resourceId\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers/ps_linker\",\"status\":\"Succeeded\",\"startTime\":\"2022-05-07T06:50:24.9822529Z\",\"endTime\":\"2022-05-07T06:50:27.7001969Z\",\"properties\":null}" + "isContentBase64": false } }, - "Remove-AzServiceLinkerForSpringCloud+[NoContext]+DeleteViaIdentity+$DELETE+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers/ps_linker?api-version=2022-05-01+1": { + "Remove-AzServiceLinkerForSpringCloud+[NoContext]+DeleteViaIdentity+$DELETE+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers/ps_linker?api-version=2022-11-01-preview+1": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers/ps_linker?api-version=2022-05-01", + "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers/ps_linker?api-version=2022-11-01-preview", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "54" ], - "x-ms-client-request-id": [ "57d81ece-3fd3-41ae-8360-adbb3182a692" ], + "x-ms-unique-id": [ "39" ], + "x-ms-client-request-id": [ "304b2f8a-af8f-4ff0-9330-f1931b656cd9" ], "CommandName": [ "Az.ServiceLinker.internal\\Remove-AzServiceLinker" ], "FullCommandName": [ "Remove-AzServiceLinker_DeleteViaIdentity" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceLinker/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -144,17 +63,18 @@ "Pragma": [ "no-cache" ], "x-ms-providerhub-traffic": [ "True" ], "x-ms-request-id": [ "00000000-0000-0000-0000-000000000000" ], - "x-ms-ratelimit-remaining-subscription-deletes": [ "14995" ], - "x-ms-correlation-request-id": [ "8df934ba-55af-4b7e-b3c3-d09190a8a7f6" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T065056Z:8df934ba-55af-4b7e-b3c3-d09190a8a7f6" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14996" ], + "x-ms-correlation-request-id": [ "fe9424f5-b2c1-4ef7-993d-05ee9f842ec2" ], + "x-ms-routing-request-id": [ "KOREASOUTH:20230130T051941Z:fe9424f5-b2c1-4ef7-993d-05ee9f842ec2" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:50:56 GMT" ] + "Date": [ "Mon, 30 Jan 2023 05:19:41 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ] }, - "Content": null + "Content": null, + "isContentBase64": false } } } \ No newline at end of file diff --git a/src/ServiceLinker/test/Remove-AzServiceLinkerForWebApp.Recording.json b/src/ServiceLinker/test/Remove-AzServiceLinkerForWebApp.Recording.json index 63944bac926a..e2bb05394cd9 100644 --- a/src/ServiceLinker/test/Remove-AzServiceLinkerForWebApp.Recording.json +++ b/src/ServiceLinker/test/Remove-AzServiceLinkerForWebApp.Recording.json @@ -1,16 +1,17 @@ { - "Remove-AzServiceLinkerForWebApp+[NoContext]+Delete+$DELETE+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker?api-version=2022-05-01+1": { + "Remove-AzServiceLinkerForWebApp+[NoContext]+Delete+$DELETE+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker?api-version=2022-11-01-preview+1": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker?api-version=2022-05-01", + "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker?api-version=2022-11-01-preview", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "55" ], - "x-ms-client-request-id": [ "ee80ccbe-2acc-444d-8391-4c1f20380ccb" ], + "x-ms-unique-id": [ "40" ], + "x-ms-client-request-id": [ "e591337b-d5ab-4a2d-9740-96c5455e9b5a" ], "CommandName": [ "Az.ServiceLinker.internal\\Remove-AzServiceLinker" ], "FullCommandName": [ "Remove-AzServiceLinker_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceLinker/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -23,31 +24,33 @@ "Pragma": [ "no-cache" ], "x-ms-providerhub-traffic": [ "True" ], "x-ms-request-id": [ "00000000-0000-0000-0000-000000000000" ], - "x-ms-ratelimit-remaining-subscription-deletes": [ "14994" ], - "x-ms-correlation-request-id": [ "23adc7f4-c93f-4340-9e41-1232106d6933" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T065104Z:23adc7f4-c93f-4340-9e41-1232106d6933" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14995" ], + "x-ms-correlation-request-id": [ "abf1fbc0-afc4-4722-bde4-c33c15f1f342" ], + "x-ms-routing-request-id": [ "KOREASOUTH:20230130T051950Z:abf1fbc0-afc4-4722-bde4-c33c15f1f342" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:51:03 GMT" ] + "Date": [ "Mon, 30 Jan 2023 05:19:50 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ] }, - "Content": null + "Content": null, + "isContentBase64": false } }, - "Remove-AzServiceLinkerForWebApp+[NoContext]+DeleteViaIdentity+$DELETE+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker?api-version=2022-05-01+1": { + "Remove-AzServiceLinkerForWebApp+[NoContext]+DeleteViaIdentity+$DELETE+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker?api-version=2022-11-01-preview+1": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker?api-version=2022-05-01", + "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-powershell/providers/Microsoft.ServiceLinker/linkers/ps_linker?api-version=2022-11-01-preview", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "56" ], - "x-ms-client-request-id": [ "73d051a1-9ef5-498f-a9a8-cfa21540762e" ], + "x-ms-unique-id": [ "41" ], + "x-ms-client-request-id": [ "e30a5015-c37d-4c3e-913a-10d40d5010a9" ], "CommandName": [ "Az.ServiceLinker.internal\\Remove-AzServiceLinker" ], "FullCommandName": [ "Remove-AzServiceLinker_DeleteViaIdentity" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceLinker/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -60,17 +63,18 @@ "Pragma": [ "no-cache" ], "x-ms-providerhub-traffic": [ "True" ], "x-ms-request-id": [ "00000000-0000-0000-0000-000000000000" ], - "x-ms-ratelimit-remaining-subscription-deletes": [ "14993" ], - "x-ms-correlation-request-id": [ "7d151bea-239a-45de-9699-191405568fb2" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T065104Z:7d151bea-239a-45de-9699-191405568fb2" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14994" ], + "x-ms-correlation-request-id": [ "be6e9b13-a811-42c1-bb76-7db773eec151" ], + "x-ms-routing-request-id": [ "KOREASOUTH:20230130T051951Z:be6e9b13-a811-42c1-bb76-7db773eec151" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:51:04 GMT" ] + "Date": [ "Mon, 30 Jan 2023 05:19:51 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ] }, - "Content": null + "Content": null, + "isContentBase64": false } } } \ No newline at end of file diff --git a/src/ServiceLinker/test/Test-AzServiceLinkerForContainerApp.Recording.json b/src/ServiceLinker/test/Test-AzServiceLinkerForContainerApp.Recording.json index 2399812f7086..a84e9a34e444 100644 --- a/src/ServiceLinker/test/Test-AzServiceLinkerForContainerApp.Recording.json +++ b/src/ServiceLinker/test/Test-AzServiceLinkerForContainerApp.Recording.json @@ -1,16 +1,17 @@ { - "Test-AzServiceLinkerForContainerApp+[NoContext]+Validate+$POST+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/preparedLinker/validateLinker?api-version=2022-05-01+1": { + "Test-AzServiceLinkerForContainerApp+[NoContext]+Validate+$POST+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/preparedLinker/validateLinker?api-version=2022-11-01-preview+1": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/preparedLinker/validateLinker?api-version=2022-05-01", + "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/preparedLinker/validateLinker?api-version=2022-11-01-preview", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "57" ], - "x-ms-client-request-id": [ "3bad78bf-434e-4419-be22-471ab2f19015" ], + "x-ms-unique-id": [ "42" ], + "x-ms-client-request-id": [ "e38802c9-2429-4e13-a318-3f6898d92dab" ], "CommandName": [ "Az.ServiceLinker.internal\\Test-AzServiceLinker" ], "FullCommandName": [ "Test-AzServiceLinker_Validate" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceLinker/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -21,39 +22,41 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/9902f9ea-fff9-442e-8406-9252226f93df*324E836E610ADA5227F1AB5B6997832CF633F8C4C7175BF9A042B2B8312F6A7C?api-version=2022-05-01" ], + "Location": [ "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/b8c131ad-0614-411d-b109-1a6336cd041d*324E836E610ADA5227F1AB5B6997832CF633F8C4C7175BF9A042B2B8312F6A7C?api-version=2021-01-01-privatepreview" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1196" ], "x-ms-providerhub-traffic": [ "True" ], - "mise-correlation-id": [ "51edde27-f139-4b80-b3f4-de21d0fcd928" ], + "mise-correlation-id": [ "54aac67b-32fc-476b-916f-d67a1481ec41" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/9902f9ea-fff9-442e-8406-9252226f93df*324E836E610ADA5227F1AB5B6997832CF633F8C4C7175BF9A042B2B8312F6A7C?api-version=2022-05-01" ], - "x-ms-request-id": [ "9902f9ea-fff9-442e-8406-9252226f93df" ], - "x-ms-correlation-request-id": [ "b193cb57-fd03-4d77-8598-e08549852a28" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T065111Z:b193cb57-fd03-4d77-8598-e08549852a28" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/b8c131ad-0614-411d-b109-1a6336cd041d*324E836E610ADA5227F1AB5B6997832CF633F8C4C7175BF9A042B2B8312F6A7C?api-version=2021-01-01-privatepreview" ], + "x-ms-request-id": [ "b8c131ad-0614-411d-b109-1a6336cd041d" ], + "x-ms-correlation-request-id": [ "8a820216-62c1-40f2-91a4-fce0a9ecbc67" ], + "x-ms-routing-request-id": [ "KOREASOUTH:20230130T052010Z:8a820216-62c1-40f2-91a4-fce0a9ecbc67" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:51:10 GMT" ] + "Date": [ "Mon, 30 Jan 2023 05:20:10 GMT" ] }, "ContentHeaders": { "Content-Length": [ "4" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "bnVsbA==" + "Content": "bnVsbA==", + "isContentBase64": false } }, - "Test-AzServiceLinkerForContainerApp+[NoContext]+Validate+$GET+https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/9902f9ea-fff9-442e-8406-9252226f93df*324E836E610ADA5227F1AB5B6997832CF633F8C4C7175BF9A042B2B8312F6A7C?api-version=2022-05-01+2": { + "Test-AzServiceLinkerForContainerApp+[NoContext]+Validate+$GET+https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/b8c131ad-0614-411d-b109-1a6336cd041d*324E836E610ADA5227F1AB5B6997832CF633F8C4C7175BF9A042B2B8312F6A7C?api-version=2021-01-01-privatepreview+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/9902f9ea-fff9-442e-8406-9252226f93df*324E836E610ADA5227F1AB5B6997832CF633F8C4C7175BF9A042B2B8312F6A7C?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/b8c131ad-0614-411d-b109-1a6336cd041d*324E836E610ADA5227F1AB5B6997832CF633F8C4C7175BF9A042B2B8312F6A7C?api-version=2021-01-01-privatepreview", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "58" ], - "x-ms-client-request-id": [ "3bad78bf-434e-4419-be22-471ab2f19015" ], + "x-ms-unique-id": [ "43" ], + "x-ms-client-request-id": [ "e38802c9-2429-4e13-a318-3f6898d92dab" ], "CommandName": [ "Az.ServiceLinker.internal\\Test-AzServiceLinker" ], "FullCommandName": [ "Test-AzServiceLinker_Validate" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceLinker/0.1.0" ] }, "ContentHeaders": { } @@ -63,36 +66,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"0300ff13-0000-0100-0000-627616e50000\"" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11960" ], - "x-ms-request-id": [ "465f10c1-dbed-4f77-bf03-9046d2169ae1" ], - "x-ms-correlation-request-id": [ "6bdeec3c-e11f-4ee7-a836-f3111098f711" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T065142Z:6bdeec3c-e11f-4ee7-a836-f3111098f711" ], + "ETag": [ "\"b204f29d-0000-0100-0000-63d7538f0000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11972" ], + "x-ms-request-id": [ "8ca6f77d-0b32-4c4d-b20b-518d14cd8aa4" ], + "x-ms-correlation-request-id": [ "3356b8d8-5445-4bad-b0cc-799716bda261" ], + "x-ms-routing-request-id": [ "KOREASOUTH:20230130T052041Z:3356b8d8-5445-4bad-b0cc-799716bda261" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:51:41 GMT" ] + "Date": [ "Mon, 30 Jan 2023 05:20:40 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1441" ], + "Content-Length": [ "2070" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/9902f9ea-fff9-442e-8406-9252226f93df*324E836E610ADA5227F1AB5B6997832CF633F8C4C7175BF9A042B2B8312F6A7C\",\"name\":\"9902f9ea-fff9-442e-8406-9252226f93df*324E836E610ADA5227F1AB5B6997832CF633F8C4C7175BF9A042B2B8312F6A7C\",\"resourceId\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/preparedLinker\",\"status\":\"Succeeded\",\"startTime\":\"2022-05-07T06:51:11.6041863Z\",\"endTime\":\"2022-05-07T06:51:17.7639085Z\",\"properties\":{\"message\":\"{\\\"ConnectionName\\\":\\\"preparedLinker\\\",\\\"IsConnectionAvailable\\\":false,\\\"ValidationDetail\\\":[{\\\"Name\\\":\\\"The target existence is validated\\\",\\\"Description\\\":null,\\\"Result\\\":0},{\\\"Name\\\":\\\"The target service firewall is validated\\\",\\\"Description\\\":null,\\\"Result\\\":0},{\\\"Name\\\":\\\"The configured values is validated\\\",\\\"Description\\\":\\\"connectionString of connection is incorrect\\\",\\\"Result\\\":1}],\\\"ReportStartTimeUtc\\\":\\\"2022-05-07T06:51:12.8642071Z\\\",\\\"ReportEndTimeUtc\\\":\\\"2022-05-07T06:51:17.6358226Z\\\",\\\"SourceId\\\":null,\\\"TargetId\\\":\\\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/xichen-postgresql/databases/testdb\\\",\\\"AuthType\\\":4}\"}}" + "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/b8c131ad-0614-411d-b109-1a6336cd041d*324E836E610ADA5227F1AB5B6997832CF633F8C4C7175BF9A042B2B8312F6A7C\",\"name\":\"b8c131ad-0614-411d-b109-1a6336cd041d*324E836E610ADA5227F1AB5B6997832CF633F8C4C7175BF9A042B2B8312F6A7C\",\"resourceId\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/preparedLinker\",\"status\":\"Succeeded\",\"startTime\":\"2023-01-30T05:20:09.8446588Z\",\"endTime\":\"2023-01-30T05:20:15.0987634Z\",\"properties\":{\"Message\":\"{\\\"ConnectionName\\\":\\\"preparedLinker\\\",\\\"IsConnectionAvailable\\\":true,\\\"ValidationDetail\\\":[{\\\"Name\\\":\\\"The target existence is validated\\\",\\\"Description\\\":null,\\\"Result\\\":0},{\\\"Name\\\":\\\"The target\u0027s network access is validated\\\",\\\"Description\\\":null,\\\"Result\\\":0},{\\\"Name\\\":\\\"The configured values is validated\\\",\\\"Description\\\":null,\\\"Result\\\":0},{\\\"Name\\\":\\\"The identity existence is validated\\\",\\\"Description\\\":null,\\\"Result\\\":0},{\\\"Name\\\":\\\"The identity permission is validated\\\",\\\"Description\\\":null,\\\"Result\\\":0}],\\\"ReportStartTimeUtc\\\":\\\"2023-01-30T05:20:11.5780331Z\\\",\\\"ReportEndTimeUtc\\\":\\\"2023-01-30T05:20:13.9648093Z\\\",\\\"SourceId\\\":null,\\\"TargetId\\\":null,\\\"AuthType\\\":0}\",\"linkerName\":\"preparedLinker\",\"isConnectionAvailable\":true,\"validationDetail\":[{\"name\":\"The target existence is validated\",\"description\":null,\"result\":\"success\"},{\"name\":\"The target\u0027s network access is validated\",\"description\":null,\"result\":\"success\"},{\"name\":\"The configured values is validated\",\"description\":null,\"result\":\"success\"},{\"name\":\"The identity existence is validated\",\"description\":null,\"result\":\"success\"},{\"name\":\"The identity permission is validated\",\"description\":null,\"result\":\"success\"}],\"reportStartTimeUtc\":\"2023-01-30T05:20:11.5780331Z\",\"reportEndTimeUtc\":\"2023-01-30T05:20:13.9648093Z\",\"sourceId\":null,\"targetId\":null,\"authType\":\"systemAssignedIdentity\"}}", + "isContentBase64": false } }, - "Test-AzServiceLinkerForContainerApp+[NoContext]+Validate+$GET+https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/9902f9ea-fff9-442e-8406-9252226f93df*324E836E610ADA5227F1AB5B6997832CF633F8C4C7175BF9A042B2B8312F6A7C?api-version=2022-05-01+3": { + "Test-AzServiceLinkerForContainerApp+[NoContext]+Validate+$GET+https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/b8c131ad-0614-411d-b109-1a6336cd041d*324E836E610ADA5227F1AB5B6997832CF633F8C4C7175BF9A042B2B8312F6A7C?api-version=2021-01-01-privatepreview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/9902f9ea-fff9-442e-8406-9252226f93df*324E836E610ADA5227F1AB5B6997832CF633F8C4C7175BF9A042B2B8312F6A7C?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/b8c131ad-0614-411d-b109-1a6336cd041d*324E836E610ADA5227F1AB5B6997832CF633F8C4C7175BF9A042B2B8312F6A7C?api-version=2021-01-01-privatepreview", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "59" ], - "x-ms-client-request-id": [ "3bad78bf-434e-4419-be22-471ab2f19015" ], + "x-ms-unique-id": [ "44" ], + "x-ms-client-request-id": [ "e38802c9-2429-4e13-a318-3f6898d92dab" ], "CommandName": [ "Az.ServiceLinker.internal\\Test-AzServiceLinker" ], "FullCommandName": [ "Test-AzServiceLinker_Validate" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceLinker/0.1.0" ] }, "ContentHeaders": { } @@ -102,35 +107,37 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"0300ff13-0000-0100-0000-627616e50000\"" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11959" ], - "x-ms-request-id": [ "954ab2fc-231b-4cd1-97f6-d9e87bb2c4b7" ], - "x-ms-correlation-request-id": [ "645612f2-d34c-4871-8af4-5c609ae966fb" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T065142Z:645612f2-d34c-4871-8af4-5c609ae966fb" ], + "ETag": [ "\"b204f29d-0000-0100-0000-63d7538f0000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11971" ], + "x-ms-request-id": [ "766393b9-105d-4547-b9a2-6abe1bb6d3a2" ], + "x-ms-correlation-request-id": [ "adf8b83e-d3e2-4a46-9e48-dd0fc872d579" ], + "x-ms-routing-request-id": [ "KOREASOUTH:20230130T052041Z:adf8b83e-d3e2-4a46-9e48-dd0fc872d579" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:51:42 GMT" ] + "Date": [ "Mon, 30 Jan 2023 05:20:41 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1441" ], + "Content-Length": [ "2070" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/9902f9ea-fff9-442e-8406-9252226f93df*324E836E610ADA5227F1AB5B6997832CF633F8C4C7175BF9A042B2B8312F6A7C\",\"name\":\"9902f9ea-fff9-442e-8406-9252226f93df*324E836E610ADA5227F1AB5B6997832CF633F8C4C7175BF9A042B2B8312F6A7C\",\"resourceId\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/preparedLinker\",\"status\":\"Succeeded\",\"startTime\":\"2022-05-07T06:51:11.6041863Z\",\"endTime\":\"2022-05-07T06:51:17.7639085Z\",\"properties\":{\"message\":\"{\\\"ConnectionName\\\":\\\"preparedLinker\\\",\\\"IsConnectionAvailable\\\":false,\\\"ValidationDetail\\\":[{\\\"Name\\\":\\\"The target existence is validated\\\",\\\"Description\\\":null,\\\"Result\\\":0},{\\\"Name\\\":\\\"The target service firewall is validated\\\",\\\"Description\\\":null,\\\"Result\\\":0},{\\\"Name\\\":\\\"The configured values is validated\\\",\\\"Description\\\":\\\"connectionString of connection is incorrect\\\",\\\"Result\\\":1}],\\\"ReportStartTimeUtc\\\":\\\"2022-05-07T06:51:12.8642071Z\\\",\\\"ReportEndTimeUtc\\\":\\\"2022-05-07T06:51:17.6358226Z\\\",\\\"SourceId\\\":null,\\\"TargetId\\\":\\\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/xichen-postgresql/databases/testdb\\\",\\\"AuthType\\\":4}\"}}" + "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/b8c131ad-0614-411d-b109-1a6336cd041d*324E836E610ADA5227F1AB5B6997832CF633F8C4C7175BF9A042B2B8312F6A7C\",\"name\":\"b8c131ad-0614-411d-b109-1a6336cd041d*324E836E610ADA5227F1AB5B6997832CF633F8C4C7175BF9A042B2B8312F6A7C\",\"resourceId\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/preparedLinker\",\"status\":\"Succeeded\",\"startTime\":\"2023-01-30T05:20:09.8446588Z\",\"endTime\":\"2023-01-30T05:20:15.0987634Z\",\"properties\":{\"Message\":\"{\\\"ConnectionName\\\":\\\"preparedLinker\\\",\\\"IsConnectionAvailable\\\":true,\\\"ValidationDetail\\\":[{\\\"Name\\\":\\\"The target existence is validated\\\",\\\"Description\\\":null,\\\"Result\\\":0},{\\\"Name\\\":\\\"The target\u0027s network access is validated\\\",\\\"Description\\\":null,\\\"Result\\\":0},{\\\"Name\\\":\\\"The configured values is validated\\\",\\\"Description\\\":null,\\\"Result\\\":0},{\\\"Name\\\":\\\"The identity existence is validated\\\",\\\"Description\\\":null,\\\"Result\\\":0},{\\\"Name\\\":\\\"The identity permission is validated\\\",\\\"Description\\\":null,\\\"Result\\\":0}],\\\"ReportStartTimeUtc\\\":\\\"2023-01-30T05:20:11.5780331Z\\\",\\\"ReportEndTimeUtc\\\":\\\"2023-01-30T05:20:13.9648093Z\\\",\\\"SourceId\\\":null,\\\"TargetId\\\":null,\\\"AuthType\\\":0}\",\"linkerName\":\"preparedLinker\",\"isConnectionAvailable\":true,\"validationDetail\":[{\"name\":\"The target existence is validated\",\"description\":null,\"result\":\"success\"},{\"name\":\"The target\u0027s network access is validated\",\"description\":null,\"result\":\"success\"},{\"name\":\"The configured values is validated\",\"description\":null,\"result\":\"success\"},{\"name\":\"The identity existence is validated\",\"description\":null,\"result\":\"success\"},{\"name\":\"The identity permission is validated\",\"description\":null,\"result\":\"success\"}],\"reportStartTimeUtc\":\"2023-01-30T05:20:11.5780331Z\",\"reportEndTimeUtc\":\"2023-01-30T05:20:13.9648093Z\",\"sourceId\":null,\"targetId\":null,\"authType\":\"systemAssignedIdentity\"}}", + "isContentBase64": false } }, - "Test-AzServiceLinkerForContainerApp+[NoContext]+ValidateViaIdentity+$POST+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/preparedLinker/validateLinker?api-version=2022-05-01+1": { + "Test-AzServiceLinkerForContainerApp+[NoContext]+ValidateViaIdentity+$POST+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/preparedLinker/validateLinker?api-version=2022-11-01-preview+1": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/preparedLinker/validateLinker?api-version=2022-05-01", + "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/preparedLinker/validateLinker?api-version=2022-11-01-preview", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "60" ], - "x-ms-client-request-id": [ "4e58cd32-9066-4d05-8820-e30746e5a599" ], + "x-ms-unique-id": [ "45" ], + "x-ms-client-request-id": [ "37ad3076-b941-4bd7-bc85-953b8ecc6bdd" ], "CommandName": [ "Az.ServiceLinker.internal\\Test-AzServiceLinker" ], "FullCommandName": [ "Test-AzServiceLinker_ValidateViaIdentity" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceLinker/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -141,39 +148,41 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/93d9a33a-f13a-495f-905b-3aba37637f5a*324E836E610ADA5227F1AB5B6997832CF633F8C4C7175BF9A042B2B8312F6A7C?api-version=2022-05-01" ], + "Location": [ "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/5cdab3bf-ab52-4ba4-85de-10ddb0f36f91*324E836E610ADA5227F1AB5B6997832CF633F8C4C7175BF9A042B2B8312F6A7C?api-version=2021-01-01-privatepreview" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1195" ], "x-ms-providerhub-traffic": [ "True" ], - "mise-correlation-id": [ "7889381a-e834-4d23-b12f-dcae63dacfd3" ], + "mise-correlation-id": [ "097eeb3e-e111-4b1f-9b1a-ff006d7f88eb" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/93d9a33a-f13a-495f-905b-3aba37637f5a*324E836E610ADA5227F1AB5B6997832CF633F8C4C7175BF9A042B2B8312F6A7C?api-version=2022-05-01" ], - "x-ms-request-id": [ "93d9a33a-f13a-495f-905b-3aba37637f5a" ], - "x-ms-correlation-request-id": [ "1c30041c-afe2-4fbd-ae5b-cc9e098c534b" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T065143Z:1c30041c-afe2-4fbd-ae5b-cc9e098c534b" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/5cdab3bf-ab52-4ba4-85de-10ddb0f36f91*324E836E610ADA5227F1AB5B6997832CF633F8C4C7175BF9A042B2B8312F6A7C?api-version=2021-01-01-privatepreview" ], + "x-ms-request-id": [ "5cdab3bf-ab52-4ba4-85de-10ddb0f36f91" ], + "x-ms-correlation-request-id": [ "6abbde9d-488a-48e9-aa55-1489f065b009" ], + "x-ms-routing-request-id": [ "KOREASOUTH:20230130T052043Z:6abbde9d-488a-48e9-aa55-1489f065b009" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:51:43 GMT" ] + "Date": [ "Mon, 30 Jan 2023 05:20:42 GMT" ] }, "ContentHeaders": { "Content-Length": [ "4" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "bnVsbA==" + "Content": "bnVsbA==", + "isContentBase64": false } }, - "Test-AzServiceLinkerForContainerApp+[NoContext]+ValidateViaIdentity+$GET+https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/93d9a33a-f13a-495f-905b-3aba37637f5a*324E836E610ADA5227F1AB5B6997832CF633F8C4C7175BF9A042B2B8312F6A7C?api-version=2022-05-01+2": { + "Test-AzServiceLinkerForContainerApp+[NoContext]+ValidateViaIdentity+$GET+https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/5cdab3bf-ab52-4ba4-85de-10ddb0f36f91*324E836E610ADA5227F1AB5B6997832CF633F8C4C7175BF9A042B2B8312F6A7C?api-version=2021-01-01-privatepreview+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/93d9a33a-f13a-495f-905b-3aba37637f5a*324E836E610ADA5227F1AB5B6997832CF633F8C4C7175BF9A042B2B8312F6A7C?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/5cdab3bf-ab52-4ba4-85de-10ddb0f36f91*324E836E610ADA5227F1AB5B6997832CF633F8C4C7175BF9A042B2B8312F6A7C?api-version=2021-01-01-privatepreview", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "61" ], - "x-ms-client-request-id": [ "4e58cd32-9066-4d05-8820-e30746e5a599" ], + "x-ms-unique-id": [ "46" ], + "x-ms-client-request-id": [ "37ad3076-b941-4bd7-bc85-953b8ecc6bdd" ], "CommandName": [ "Az.ServiceLinker.internal\\Test-AzServiceLinker" ], "FullCommandName": [ "Test-AzServiceLinker_ValidateViaIdentity" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceLinker/0.1.0" ] }, "ContentHeaders": { } @@ -183,36 +192,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"03001414-0000-0100-0000-627617040000\"" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11958" ], - "x-ms-request-id": [ "b4442469-7ea2-478e-becc-139c2077c35c" ], - "x-ms-correlation-request-id": [ "f00ebc0c-e149-4beb-8239-80828953ee61" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T065214Z:f00ebc0c-e149-4beb-8239-80828953ee61" ], + "ETag": [ "\"b204089e-0000-0100-0000-63d753af0000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11970" ], + "x-ms-request-id": [ "88ceac02-7dd5-4362-a712-456ed78c277d" ], + "x-ms-correlation-request-id": [ "3d5aa47f-487c-4963-9950-2cd55add11a7" ], + "x-ms-routing-request-id": [ "KOREASOUTH:20230130T052113Z:3d5aa47f-487c-4963-9950-2cd55add11a7" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:52:14 GMT" ] + "Date": [ "Mon, 30 Jan 2023 05:21:13 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1441" ], + "Content-Length": [ "2070" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/93d9a33a-f13a-495f-905b-3aba37637f5a*324E836E610ADA5227F1AB5B6997832CF633F8C4C7175BF9A042B2B8312F6A7C\",\"name\":\"93d9a33a-f13a-495f-905b-3aba37637f5a*324E836E610ADA5227F1AB5B6997832CF633F8C4C7175BF9A042B2B8312F6A7C\",\"resourceId\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/preparedLinker\",\"status\":\"Succeeded\",\"startTime\":\"2022-05-07T06:51:43.1928451Z\",\"endTime\":\"2022-05-07T06:51:48.4142073Z\",\"properties\":{\"message\":\"{\\\"ConnectionName\\\":\\\"preparedLinker\\\",\\\"IsConnectionAvailable\\\":false,\\\"ValidationDetail\\\":[{\\\"Name\\\":\\\"The target existence is validated\\\",\\\"Description\\\":null,\\\"Result\\\":0},{\\\"Name\\\":\\\"The target service firewall is validated\\\",\\\"Description\\\":null,\\\"Result\\\":0},{\\\"Name\\\":\\\"The configured values is validated\\\",\\\"Description\\\":\\\"connectionString of connection is incorrect\\\",\\\"Result\\\":1}],\\\"ReportStartTimeUtc\\\":\\\"2022-05-07T06:51:44.5200182Z\\\",\\\"ReportEndTimeUtc\\\":\\\"2022-05-07T06:51:48.3558365Z\\\",\\\"SourceId\\\":null,\\\"TargetId\\\":\\\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/xichen-postgresql/databases/testdb\\\",\\\"AuthType\\\":4}\"}}" + "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/5cdab3bf-ab52-4ba4-85de-10ddb0f36f91*324E836E610ADA5227F1AB5B6997832CF633F8C4C7175BF9A042B2B8312F6A7C\",\"name\":\"5cdab3bf-ab52-4ba4-85de-10ddb0f36f91*324E836E610ADA5227F1AB5B6997832CF633F8C4C7175BF9A042B2B8312F6A7C\",\"resourceId\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/preparedLinker\",\"status\":\"Succeeded\",\"startTime\":\"2023-01-30T05:20:42.8002997Z\",\"endTime\":\"2023-01-30T05:20:47.5931259Z\",\"properties\":{\"Message\":\"{\\\"ConnectionName\\\":\\\"preparedLinker\\\",\\\"IsConnectionAvailable\\\":true,\\\"ValidationDetail\\\":[{\\\"Name\\\":\\\"The target existence is validated\\\",\\\"Description\\\":null,\\\"Result\\\":0},{\\\"Name\\\":\\\"The target\u0027s network access is validated\\\",\\\"Description\\\":null,\\\"Result\\\":0},{\\\"Name\\\":\\\"The configured values is validated\\\",\\\"Description\\\":null,\\\"Result\\\":0},{\\\"Name\\\":\\\"The identity existence is validated\\\",\\\"Description\\\":null,\\\"Result\\\":0},{\\\"Name\\\":\\\"The identity permission is validated\\\",\\\"Description\\\":null,\\\"Result\\\":0}],\\\"ReportStartTimeUtc\\\":\\\"2023-01-30T05:20:44.4808376Z\\\",\\\"ReportEndTimeUtc\\\":\\\"2023-01-30T05:20:46.4431334Z\\\",\\\"SourceId\\\":null,\\\"TargetId\\\":null,\\\"AuthType\\\":0}\",\"linkerName\":\"preparedLinker\",\"isConnectionAvailable\":true,\"validationDetail\":[{\"name\":\"The target existence is validated\",\"description\":null,\"result\":\"success\"},{\"name\":\"The target\u0027s network access is validated\",\"description\":null,\"result\":\"success\"},{\"name\":\"The configured values is validated\",\"description\":null,\"result\":\"success\"},{\"name\":\"The identity existence is validated\",\"description\":null,\"result\":\"success\"},{\"name\":\"The identity permission is validated\",\"description\":null,\"result\":\"success\"}],\"reportStartTimeUtc\":\"2023-01-30T05:20:44.4808376Z\",\"reportEndTimeUtc\":\"2023-01-30T05:20:46.4431334Z\",\"sourceId\":null,\"targetId\":null,\"authType\":\"systemAssignedIdentity\"}}", + "isContentBase64": false } }, - "Test-AzServiceLinkerForContainerApp+[NoContext]+ValidateViaIdentity+$GET+https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/93d9a33a-f13a-495f-905b-3aba37637f5a*324E836E610ADA5227F1AB5B6997832CF633F8C4C7175BF9A042B2B8312F6A7C?api-version=2022-05-01+3": { + "Test-AzServiceLinkerForContainerApp+[NoContext]+ValidateViaIdentity+$GET+https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/5cdab3bf-ab52-4ba4-85de-10ddb0f36f91*324E836E610ADA5227F1AB5B6997832CF633F8C4C7175BF9A042B2B8312F6A7C?api-version=2021-01-01-privatepreview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/93d9a33a-f13a-495f-905b-3aba37637f5a*324E836E610ADA5227F1AB5B6997832CF633F8C4C7175BF9A042B2B8312F6A7C?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/5cdab3bf-ab52-4ba4-85de-10ddb0f36f91*324E836E610ADA5227F1AB5B6997832CF633F8C4C7175BF9A042B2B8312F6A7C?api-version=2021-01-01-privatepreview", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "62" ], - "x-ms-client-request-id": [ "4e58cd32-9066-4d05-8820-e30746e5a599" ], + "x-ms-unique-id": [ "47" ], + "x-ms-client-request-id": [ "37ad3076-b941-4bd7-bc85-953b8ecc6bdd" ], "CommandName": [ "Az.ServiceLinker.internal\\Test-AzServiceLinker" ], "FullCommandName": [ "Test-AzServiceLinker_ValidateViaIdentity" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceLinker/0.1.0" ] }, "ContentHeaders": { } @@ -222,21 +233,22 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"03001414-0000-0100-0000-627617040000\"" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11957" ], - "x-ms-request-id": [ "f7c4fb7f-bc57-42bc-946f-d14219b05877" ], - "x-ms-correlation-request-id": [ "9cf0dfc3-b012-4430-a097-ae4b6c3f24f3" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T065214Z:9cf0dfc3-b012-4430-a097-ae4b6c3f24f3" ], + "ETag": [ "\"b204089e-0000-0100-0000-63d753af0000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11969" ], + "x-ms-request-id": [ "ec7966be-ed01-4a74-9c7f-7e3e3e43b82e" ], + "x-ms-correlation-request-id": [ "a787b74b-f580-4c8d-8e2f-ec215f4775e0" ], + "x-ms-routing-request-id": [ "KOREASOUTH:20230130T052114Z:a787b74b-f580-4c8d-8e2f-ec215f4775e0" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:52:14 GMT" ] + "Date": [ "Mon, 30 Jan 2023 05:21:14 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1441" ], + "Content-Length": [ "2070" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/93d9a33a-f13a-495f-905b-3aba37637f5a*324E836E610ADA5227F1AB5B6997832CF633F8C4C7175BF9A042B2B8312F6A7C\",\"name\":\"93d9a33a-f13a-495f-905b-3aba37637f5a*324E836E610ADA5227F1AB5B6997832CF633F8C4C7175BF9A042B2B8312F6A7C\",\"resourceId\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/preparedLinker\",\"status\":\"Succeeded\",\"startTime\":\"2022-05-07T06:51:43.1928451Z\",\"endTime\":\"2022-05-07T06:51:48.4142073Z\",\"properties\":{\"message\":\"{\\\"ConnectionName\\\":\\\"preparedLinker\\\",\\\"IsConnectionAvailable\\\":false,\\\"ValidationDetail\\\":[{\\\"Name\\\":\\\"The target existence is validated\\\",\\\"Description\\\":null,\\\"Result\\\":0},{\\\"Name\\\":\\\"The target service firewall is validated\\\",\\\"Description\\\":null,\\\"Result\\\":0},{\\\"Name\\\":\\\"The configured values is validated\\\",\\\"Description\\\":\\\"connectionString of connection is incorrect\\\",\\\"Result\\\":1}],\\\"ReportStartTimeUtc\\\":\\\"2022-05-07T06:51:44.5200182Z\\\",\\\"ReportEndTimeUtc\\\":\\\"2022-05-07T06:51:48.3558365Z\\\",\\\"SourceId\\\":null,\\\"TargetId\\\":\\\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/xichen-postgresql/databases/testdb\\\",\\\"AuthType\\\":4}\"}}" + "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/5cdab3bf-ab52-4ba4-85de-10ddb0f36f91*324E836E610ADA5227F1AB5B6997832CF633F8C4C7175BF9A042B2B8312F6A7C\",\"name\":\"5cdab3bf-ab52-4ba4-85de-10ddb0f36f91*324E836E610ADA5227F1AB5B6997832CF633F8C4C7175BF9A042B2B8312F6A7C\",\"resourceId\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/preparedLinker\",\"status\":\"Succeeded\",\"startTime\":\"2023-01-30T05:20:42.8002997Z\",\"endTime\":\"2023-01-30T05:20:47.5931259Z\",\"properties\":{\"Message\":\"{\\\"ConnectionName\\\":\\\"preparedLinker\\\",\\\"IsConnectionAvailable\\\":true,\\\"ValidationDetail\\\":[{\\\"Name\\\":\\\"The target existence is validated\\\",\\\"Description\\\":null,\\\"Result\\\":0},{\\\"Name\\\":\\\"The target\u0027s network access is validated\\\",\\\"Description\\\":null,\\\"Result\\\":0},{\\\"Name\\\":\\\"The configured values is validated\\\",\\\"Description\\\":null,\\\"Result\\\":0},{\\\"Name\\\":\\\"The identity existence is validated\\\",\\\"Description\\\":null,\\\"Result\\\":0},{\\\"Name\\\":\\\"The identity permission is validated\\\",\\\"Description\\\":null,\\\"Result\\\":0}],\\\"ReportStartTimeUtc\\\":\\\"2023-01-30T05:20:44.4808376Z\\\",\\\"ReportEndTimeUtc\\\":\\\"2023-01-30T05:20:46.4431334Z\\\",\\\"SourceId\\\":null,\\\"TargetId\\\":null,\\\"AuthType\\\":0}\",\"linkerName\":\"preparedLinker\",\"isConnectionAvailable\":true,\"validationDetail\":[{\"name\":\"The target existence is validated\",\"description\":null,\"result\":\"success\"},{\"name\":\"The target\u0027s network access is validated\",\"description\":null,\"result\":\"success\"},{\"name\":\"The configured values is validated\",\"description\":null,\"result\":\"success\"},{\"name\":\"The identity existence is validated\",\"description\":null,\"result\":\"success\"},{\"name\":\"The identity permission is validated\",\"description\":null,\"result\":\"success\"}],\"reportStartTimeUtc\":\"2023-01-30T05:20:44.4808376Z\",\"reportEndTimeUtc\":\"2023-01-30T05:20:46.4431334Z\",\"sourceId\":null,\"targetId\":null,\"authType\":\"systemAssignedIdentity\"}}", + "isContentBase64": false } } } \ No newline at end of file diff --git a/src/ServiceLinker/test/Test-AzServiceLinkerForSpringCloud.Recording.json b/src/ServiceLinker/test/Test-AzServiceLinkerForSpringCloud.Recording.json index c8b26b27c107..08f93e2a8fd0 100644 --- a/src/ServiceLinker/test/Test-AzServiceLinkerForSpringCloud.Recording.json +++ b/src/ServiceLinker/test/Test-AzServiceLinkerForSpringCloud.Recording.json @@ -1,16 +1,17 @@ { - "Test-AzServiceLinkerForSpringCloud+[NoContext]+Validate+$POST+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers/preparedLinker/validateLinker?api-version=2022-05-01+1": { + "Test-AzServiceLinkerForSpringCloud+[NoContext]+Validate+$POST+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers/preparedLinker/validateLinker?api-version=2022-11-01-preview+1": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers/preparedLinker/validateLinker?api-version=2022-05-01", + "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers/preparedLinker/validateLinker?api-version=2022-11-01-preview", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "63" ], - "x-ms-client-request-id": [ "9a1e67bb-d12d-4ae4-a599-1809d5b032b4" ], + "x-ms-unique-id": [ "48" ], + "x-ms-client-request-id": [ "bb11237e-6ed6-4922-8513-4bf46610ce3e" ], "CommandName": [ "Az.ServiceLinker.internal\\Test-AzServiceLinker" ], "FullCommandName": [ "Test-AzServiceLinker_Validate" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceLinker/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -21,39 +22,41 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/9b97bdf7-18e2-4ffc-9603-4b41a84d76ae*29FC1D772AA9DB7AB96D203D76DC8999C4D402C87FA6F24B9C0330A7029A41F6?api-version=2022-05-01" ], + "Location": [ "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/29250243-00ea-41bc-92a1-52c7b39314f6*29FC1D772AA9DB7AB96D203D76DC8999C4D402C87FA6F24B9C0330A7029A41F6?api-version=2021-01-01-privatepreview" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1194" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T065223Z:a807dd84-3bd5-42ba-a95d-787cbba2d89d" ], "x-ms-providerhub-traffic": [ "True" ], - "mise-correlation-id": [ "ecccbad7-7202-4cc9-b8d0-b4ac575793aa" ], + "mise-correlation-id": [ "f7e44877-3913-4815-a0c2-df27b2aed563" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/9b97bdf7-18e2-4ffc-9603-4b41a84d76ae*29FC1D772AA9DB7AB96D203D76DC8999C4D402C87FA6F24B9C0330A7029A41F6?api-version=2022-05-01" ], - "x-ms-request-id": [ "9b97bdf7-18e2-4ffc-9603-4b41a84d76ae" ], - "x-ms-correlation-request-id": [ "a807dd84-3bd5-42ba-a95d-787cbba2d89d" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/29250243-00ea-41bc-92a1-52c7b39314f6*29FC1D772AA9DB7AB96D203D76DC8999C4D402C87FA6F24B9C0330A7029A41F6?api-version=2021-01-01-privatepreview" ], + "x-ms-request-id": [ "29250243-00ea-41bc-92a1-52c7b39314f6" ], + "x-ms-correlation-request-id": [ "d80a56e8-4c94-42eb-b132-58fd3511eea6" ], + "x-ms-routing-request-id": [ "KOREASOUTH:20230130T052124Z:d80a56e8-4c94-42eb-b132-58fd3511eea6" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:52:23 GMT" ] + "Date": [ "Mon, 30 Jan 2023 05:21:24 GMT" ] }, "ContentHeaders": { "Content-Length": [ "4" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "bnVsbA==" + "Content": "bnVsbA==", + "isContentBase64": false } }, - "Test-AzServiceLinkerForSpringCloud+[NoContext]+Validate+$GET+https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/9b97bdf7-18e2-4ffc-9603-4b41a84d76ae*29FC1D772AA9DB7AB96D203D76DC8999C4D402C87FA6F24B9C0330A7029A41F6?api-version=2022-05-01+2": { + "Test-AzServiceLinkerForSpringCloud+[NoContext]+Validate+$GET+https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/29250243-00ea-41bc-92a1-52c7b39314f6*29FC1D772AA9DB7AB96D203D76DC8999C4D402C87FA6F24B9C0330A7029A41F6?api-version=2021-01-01-privatepreview+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/9b97bdf7-18e2-4ffc-9603-4b41a84d76ae*29FC1D772AA9DB7AB96D203D76DC8999C4D402C87FA6F24B9C0330A7029A41F6?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/29250243-00ea-41bc-92a1-52c7b39314f6*29FC1D772AA9DB7AB96D203D76DC8999C4D402C87FA6F24B9C0330A7029A41F6?api-version=2021-01-01-privatepreview", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "64" ], - "x-ms-client-request-id": [ "9a1e67bb-d12d-4ae4-a599-1809d5b032b4" ], + "x-ms-unique-id": [ "49" ], + "x-ms-client-request-id": [ "bb11237e-6ed6-4922-8513-4bf46610ce3e" ], "CommandName": [ "Az.ServiceLinker.internal\\Test-AzServiceLinker" ], "FullCommandName": [ "Test-AzServiceLinker_Validate" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceLinker/0.1.0" ] }, "ContentHeaders": { } @@ -63,36 +66,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"03001f14-0000-0100-0000-627617290000\"" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11956" ], - "x-ms-request-id": [ "d0fa9236-104b-4ce9-b54e-113e226a472e" ], - "x-ms-correlation-request-id": [ "65998dc1-81f0-4ef3-9ddb-5678c172378e" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T065254Z:65998dc1-81f0-4ef3-9ddb-5678c172378e" ], + "ETag": [ "\"b204159e-0000-0100-0000-63d753d80000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11968" ], + "x-ms-request-id": [ "333e5a0e-0f01-4e42-b0b2-feeeac3bae84" ], + "x-ms-correlation-request-id": [ "d0ef4855-74f7-4dc1-bbe6-b28c14cd0cdc" ], + "x-ms-routing-request-id": [ "KOREASOUTH:20230130T052154Z:d0ef4855-74f7-4dc1-bbe6-b28c14cd0cdc" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:52:53 GMT" ] + "Date": [ "Mon, 30 Jan 2023 05:21:54 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1589" ], + "Content-Length": [ "2047" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/9b97bdf7-18e2-4ffc-9603-4b41a84d76ae*29FC1D772AA9DB7AB96D203D76DC8999C4D402C87FA6F24B9C0330A7029A41F6\",\"name\":\"9b97bdf7-18e2-4ffc-9603-4b41a84d76ae*29FC1D772AA9DB7AB96D203D76DC8999C4D402C87FA6F24B9C0330A7029A41F6\",\"resourceId\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers/preparedLinker\",\"status\":\"Succeeded\",\"startTime\":\"2022-05-07T06:52:23.6381669Z\",\"endTime\":\"2022-05-07T06:52:25.8958423Z\",\"properties\":{\"message\":\"{\\\"ConnectionName\\\":\\\"preparedLinker\\\",\\\"IsConnectionAvailable\\\":true,\\\"ValidationDetail\\\":[{\\\"Name\\\":\\\"The target existence is validated\\\",\\\"Description\\\":null,\\\"Result\\\":0},{\\\"Name\\\":\\\"The target\u0027s network access is validated\\\",\\\"Description\\\":\\\"Deny public network access is set to yes. Please confirm you are using private endpoint connection to access target resource.\\\",\\\"Result\\\":2},{\\\"Name\\\":\\\"The configured values (except username/password) is validated\\\",\\\"Description\\\":null,\\\"Result\\\":0}],\\\"ReportStartTimeUtc\\\":\\\"2022-05-07T06:52:24.857703Z\\\",\\\"ReportEndTimeUtc\\\":\\\"2022-05-07T06:52:25.8276189Z\\\",\\\"SourceId\\\":null,\\\"TargetId\\\":\\\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/servicelinker-postgresql/databases/pollsdb\\\",\\\"AuthType\\\":4}\"}}" + "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/29250243-00ea-41bc-92a1-52c7b39314f6*29FC1D772AA9DB7AB96D203D76DC8999C4D402C87FA6F24B9C0330A7029A41F6\",\"name\":\"29250243-00ea-41bc-92a1-52c7b39314f6*29FC1D772AA9DB7AB96D203D76DC8999C4D402C87FA6F24B9C0330A7029A41F6\",\"resourceId\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers/preparedLinker\",\"status\":\"Succeeded\",\"startTime\":\"2023-01-30T05:21:24.0833918Z\",\"endTime\":\"2023-01-30T05:21:28.0719022Z\",\"properties\":{\"Message\":\"{\\\"ConnectionName\\\":\\\"preparedLinker\\\",\\\"IsConnectionAvailable\\\":true,\\\"ValidationDetail\\\":[{\\\"Name\\\":\\\"The target existence is validated\\\",\\\"Description\\\":null,\\\"Result\\\":0},{\\\"Name\\\":\\\"The target\u0027s network access is validated\\\",\\\"Description\\\":\\\"Deny public network access is set to yes. Please confirm you are using private endpoint connection to access target resource.\\\",\\\"Result\\\":2},{\\\"Name\\\":\\\"The configured values (except username/password) is validated\\\",\\\"Description\\\":null,\\\"Result\\\":0}],\\\"ReportStartTimeUtc\\\":\\\"2023-01-30T05:21:25.4010288Z\\\",\\\"ReportEndTimeUtc\\\":\\\"2023-01-30T05:21:26.7903802Z\\\",\\\"SourceId\\\":null,\\\"TargetId\\\":null,\\\"AuthType\\\":4}\",\"linkerName\":\"preparedLinker\",\"isConnectionAvailable\":true,\"validationDetail\":[{\"name\":\"The target existence is validated\",\"description\":null,\"result\":\"success\"},{\"name\":\"The target\u0027s network access is validated\",\"description\":\"Deny public network access is set to yes. Please confirm you are using private endpoint connection to access target resource.\",\"result\":\"warning\"},{\"name\":\"The configured values (except username/password) is validated\",\"description\":null,\"result\":\"success\"}],\"reportStartTimeUtc\":\"2023-01-30T05:21:25.4010288Z\",\"reportEndTimeUtc\":\"2023-01-30T05:21:26.7903802Z\",\"sourceId\":null,\"targetId\":null,\"authType\":\"secret\"}}", + "isContentBase64": false } }, - "Test-AzServiceLinkerForSpringCloud+[NoContext]+Validate+$GET+https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/9b97bdf7-18e2-4ffc-9603-4b41a84d76ae*29FC1D772AA9DB7AB96D203D76DC8999C4D402C87FA6F24B9C0330A7029A41F6?api-version=2022-05-01+3": { + "Test-AzServiceLinkerForSpringCloud+[NoContext]+Validate+$GET+https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/29250243-00ea-41bc-92a1-52c7b39314f6*29FC1D772AA9DB7AB96D203D76DC8999C4D402C87FA6F24B9C0330A7029A41F6?api-version=2021-01-01-privatepreview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/9b97bdf7-18e2-4ffc-9603-4b41a84d76ae*29FC1D772AA9DB7AB96D203D76DC8999C4D402C87FA6F24B9C0330A7029A41F6?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/29250243-00ea-41bc-92a1-52c7b39314f6*29FC1D772AA9DB7AB96D203D76DC8999C4D402C87FA6F24B9C0330A7029A41F6?api-version=2021-01-01-privatepreview", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "65" ], - "x-ms-client-request-id": [ "9a1e67bb-d12d-4ae4-a599-1809d5b032b4" ], + "x-ms-unique-id": [ "50" ], + "x-ms-client-request-id": [ "bb11237e-6ed6-4922-8513-4bf46610ce3e" ], "CommandName": [ "Az.ServiceLinker.internal\\Test-AzServiceLinker" ], "FullCommandName": [ "Test-AzServiceLinker_Validate" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceLinker/0.1.0" ] }, "ContentHeaders": { } @@ -102,35 +107,37 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"03001f14-0000-0100-0000-627617290000\"" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11955" ], - "x-ms-request-id": [ "94a4be99-faaf-4d60-a391-725b760921c0" ], - "x-ms-correlation-request-id": [ "ef77ad0b-4aa0-45da-a815-f60a0c646e2e" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T065254Z:ef77ad0b-4aa0-45da-a815-f60a0c646e2e" ], + "ETag": [ "\"b204159e-0000-0100-0000-63d753d80000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11967" ], + "x-ms-request-id": [ "a5c5f0ad-09a6-40e5-8157-bd812695ac6d" ], + "x-ms-correlation-request-id": [ "4feb4c34-f29e-4c95-ad82-2c18246178c3" ], + "x-ms-routing-request-id": [ "KOREASOUTH:20230130T052155Z:4feb4c34-f29e-4c95-ad82-2c18246178c3" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:52:54 GMT" ] + "Date": [ "Mon, 30 Jan 2023 05:21:54 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1589" ], + "Content-Length": [ "2047" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/9b97bdf7-18e2-4ffc-9603-4b41a84d76ae*29FC1D772AA9DB7AB96D203D76DC8999C4D402C87FA6F24B9C0330A7029A41F6\",\"name\":\"9b97bdf7-18e2-4ffc-9603-4b41a84d76ae*29FC1D772AA9DB7AB96D203D76DC8999C4D402C87FA6F24B9C0330A7029A41F6\",\"resourceId\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers/preparedLinker\",\"status\":\"Succeeded\",\"startTime\":\"2022-05-07T06:52:23.6381669Z\",\"endTime\":\"2022-05-07T06:52:25.8958423Z\",\"properties\":{\"message\":\"{\\\"ConnectionName\\\":\\\"preparedLinker\\\",\\\"IsConnectionAvailable\\\":true,\\\"ValidationDetail\\\":[{\\\"Name\\\":\\\"The target existence is validated\\\",\\\"Description\\\":null,\\\"Result\\\":0},{\\\"Name\\\":\\\"The target\u0027s network access is validated\\\",\\\"Description\\\":\\\"Deny public network access is set to yes. Please confirm you are using private endpoint connection to access target resource.\\\",\\\"Result\\\":2},{\\\"Name\\\":\\\"The configured values (except username/password) is validated\\\",\\\"Description\\\":null,\\\"Result\\\":0}],\\\"ReportStartTimeUtc\\\":\\\"2022-05-07T06:52:24.857703Z\\\",\\\"ReportEndTimeUtc\\\":\\\"2022-05-07T06:52:25.8276189Z\\\",\\\"SourceId\\\":null,\\\"TargetId\\\":\\\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/servicelinker-postgresql/databases/pollsdb\\\",\\\"AuthType\\\":4}\"}}" + "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/29250243-00ea-41bc-92a1-52c7b39314f6*29FC1D772AA9DB7AB96D203D76DC8999C4D402C87FA6F24B9C0330A7029A41F6\",\"name\":\"29250243-00ea-41bc-92a1-52c7b39314f6*29FC1D772AA9DB7AB96D203D76DC8999C4D402C87FA6F24B9C0330A7029A41F6\",\"resourceId\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers/preparedLinker\",\"status\":\"Succeeded\",\"startTime\":\"2023-01-30T05:21:24.0833918Z\",\"endTime\":\"2023-01-30T05:21:28.0719022Z\",\"properties\":{\"Message\":\"{\\\"ConnectionName\\\":\\\"preparedLinker\\\",\\\"IsConnectionAvailable\\\":true,\\\"ValidationDetail\\\":[{\\\"Name\\\":\\\"The target existence is validated\\\",\\\"Description\\\":null,\\\"Result\\\":0},{\\\"Name\\\":\\\"The target\u0027s network access is validated\\\",\\\"Description\\\":\\\"Deny public network access is set to yes. Please confirm you are using private endpoint connection to access target resource.\\\",\\\"Result\\\":2},{\\\"Name\\\":\\\"The configured values (except username/password) is validated\\\",\\\"Description\\\":null,\\\"Result\\\":0}],\\\"ReportStartTimeUtc\\\":\\\"2023-01-30T05:21:25.4010288Z\\\",\\\"ReportEndTimeUtc\\\":\\\"2023-01-30T05:21:26.7903802Z\\\",\\\"SourceId\\\":null,\\\"TargetId\\\":null,\\\"AuthType\\\":4}\",\"linkerName\":\"preparedLinker\",\"isConnectionAvailable\":true,\"validationDetail\":[{\"name\":\"The target existence is validated\",\"description\":null,\"result\":\"success\"},{\"name\":\"The target\u0027s network access is validated\",\"description\":\"Deny public network access is set to yes. Please confirm you are using private endpoint connection to access target resource.\",\"result\":\"warning\"},{\"name\":\"The configured values (except username/password) is validated\",\"description\":null,\"result\":\"success\"}],\"reportStartTimeUtc\":\"2023-01-30T05:21:25.4010288Z\",\"reportEndTimeUtc\":\"2023-01-30T05:21:26.7903802Z\",\"sourceId\":null,\"targetId\":null,\"authType\":\"secret\"}}", + "isContentBase64": false } }, - "Test-AzServiceLinkerForSpringCloud+[NoContext]+ValidateViaIdentity+$POST+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers/preparedLinker/validateLinker?api-version=2022-05-01+1": { + "Test-AzServiceLinkerForSpringCloud+[NoContext]+ValidateViaIdentity+$POST+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers/preparedLinker/validateLinker?api-version=2022-11-01-preview+1": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers/preparedLinker/validateLinker?api-version=2022-05-01", + "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers/preparedLinker/validateLinker?api-version=2022-11-01-preview", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "66" ], - "x-ms-client-request-id": [ "f8db5853-5bdb-4d04-9bd7-1f95aa202d18" ], + "x-ms-unique-id": [ "51" ], + "x-ms-client-request-id": [ "d9f15161-1c88-42a9-9dcc-04d8d96050e4" ], "CommandName": [ "Az.ServiceLinker.internal\\Test-AzServiceLinker" ], "FullCommandName": [ "Test-AzServiceLinker_ValidateViaIdentity" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceLinker/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -141,39 +148,41 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/7f43fb2a-1fc9-42d8-97b0-9a71209cb7a3*29FC1D772AA9DB7AB96D203D76DC8999C4D402C87FA6F24B9C0330A7029A41F6?api-version=2022-05-01" ], + "Location": [ "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/7485cb4a-5ccb-43d2-b6ca-b1812bc1d391*29FC1D772AA9DB7AB96D203D76DC8999C4D402C87FA6F24B9C0330A7029A41F6?api-version=2021-01-01-privatepreview" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1193" ], "x-ms-providerhub-traffic": [ "True" ], - "mise-correlation-id": [ "09ba19f3-3bcd-45ff-a32e-7caf671b18cb" ], + "mise-correlation-id": [ "555402b0-77c1-4389-8cb9-0238698a2cbc" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/7f43fb2a-1fc9-42d8-97b0-9a71209cb7a3*29FC1D772AA9DB7AB96D203D76DC8999C4D402C87FA6F24B9C0330A7029A41F6?api-version=2022-05-01" ], - "x-ms-request-id": [ "7f43fb2a-1fc9-42d8-97b0-9a71209cb7a3" ], - "x-ms-correlation-request-id": [ "058b1df7-1301-4b0e-89f3-98aae38d2cc9" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T065256Z:058b1df7-1301-4b0e-89f3-98aae38d2cc9" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/7485cb4a-5ccb-43d2-b6ca-b1812bc1d391*29FC1D772AA9DB7AB96D203D76DC8999C4D402C87FA6F24B9C0330A7029A41F6?api-version=2021-01-01-privatepreview" ], + "x-ms-request-id": [ "7485cb4a-5ccb-43d2-b6ca-b1812bc1d391" ], + "x-ms-correlation-request-id": [ "ea26e9e1-d2de-4f56-a643-3ae1e5ffe864" ], + "x-ms-routing-request-id": [ "KOREASOUTH:20230130T052156Z:ea26e9e1-d2de-4f56-a643-3ae1e5ffe864" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:52:55 GMT" ] + "Date": [ "Mon, 30 Jan 2023 05:21:55 GMT" ] }, "ContentHeaders": { "Content-Length": [ "4" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "bnVsbA==" + "Content": "bnVsbA==", + "isContentBase64": false } }, - "Test-AzServiceLinkerForSpringCloud+[NoContext]+ValidateViaIdentity+$GET+https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/7f43fb2a-1fc9-42d8-97b0-9a71209cb7a3*29FC1D772AA9DB7AB96D203D76DC8999C4D402C87FA6F24B9C0330A7029A41F6?api-version=2022-05-01+2": { + "Test-AzServiceLinkerForSpringCloud+[NoContext]+ValidateViaIdentity+$GET+https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/7485cb4a-5ccb-43d2-b6ca-b1812bc1d391*29FC1D772AA9DB7AB96D203D76DC8999C4D402C87FA6F24B9C0330A7029A41F6?api-version=2021-01-01-privatepreview+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/7f43fb2a-1fc9-42d8-97b0-9a71209cb7a3*29FC1D772AA9DB7AB96D203D76DC8999C4D402C87FA6F24B9C0330A7029A41F6?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/7485cb4a-5ccb-43d2-b6ca-b1812bc1d391*29FC1D772AA9DB7AB96D203D76DC8999C4D402C87FA6F24B9C0330A7029A41F6?api-version=2021-01-01-privatepreview", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "67" ], - "x-ms-client-request-id": [ "f8db5853-5bdb-4d04-9bd7-1f95aa202d18" ], + "x-ms-unique-id": [ "52" ], + "x-ms-client-request-id": [ "d9f15161-1c88-42a9-9dcc-04d8d96050e4" ], "CommandName": [ "Az.ServiceLinker.internal\\Test-AzServiceLinker" ], "FullCommandName": [ "Test-AzServiceLinker_ValidateViaIdentity" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceLinker/0.1.0" ] }, "ContentHeaders": { } @@ -183,36 +192,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"03002214-0000-0100-0000-6276174a0000\"" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11954" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T065326Z:3e4ba53d-b07f-4d2b-b793-5e8724f6c355" ], - "x-ms-request-id": [ "2db00297-2f79-464c-8c92-37e9221108cc" ], - "x-ms-correlation-request-id": [ "3e4ba53d-b07f-4d2b-b793-5e8724f6c355" ], + "ETag": [ "\"b204179e-0000-0100-0000-63d753f90000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11966" ], + "x-ms-request-id": [ "d7a0ee83-4b4d-4fa0-8647-f1cfb8820d3d" ], + "x-ms-correlation-request-id": [ "ca6db52a-ef6a-41cf-b1ca-76482e48210b" ], + "x-ms-routing-request-id": [ "KOREASOUTH:20230130T052226Z:ca6db52a-ef6a-41cf-b1ca-76482e48210b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:53:26 GMT" ] + "Date": [ "Mon, 30 Jan 2023 05:22:26 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1590" ], + "Content-Length": [ "2045" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/7f43fb2a-1fc9-42d8-97b0-9a71209cb7a3*29FC1D772AA9DB7AB96D203D76DC8999C4D402C87FA6F24B9C0330A7029A41F6\",\"name\":\"7f43fb2a-1fc9-42d8-97b0-9a71209cb7a3*29FC1D772AA9DB7AB96D203D76DC8999C4D402C87FA6F24B9C0330A7029A41F6\",\"resourceId\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers/preparedLinker\",\"status\":\"Succeeded\",\"startTime\":\"2022-05-07T06:52:56.1001633Z\",\"endTime\":\"2022-05-07T06:52:58.5905512Z\",\"properties\":{\"message\":\"{\\\"ConnectionName\\\":\\\"preparedLinker\\\",\\\"IsConnectionAvailable\\\":true,\\\"ValidationDetail\\\":[{\\\"Name\\\":\\\"The target existence is validated\\\",\\\"Description\\\":null,\\\"Result\\\":0},{\\\"Name\\\":\\\"The target\u0027s network access is validated\\\",\\\"Description\\\":\\\"Deny public network access is set to yes. Please confirm you are using private endpoint connection to access target resource.\\\",\\\"Result\\\":2},{\\\"Name\\\":\\\"The configured values (except username/password) is validated\\\",\\\"Description\\\":null,\\\"Result\\\":0}],\\\"ReportStartTimeUtc\\\":\\\"2022-05-07T06:52:57.4134256Z\\\",\\\"ReportEndTimeUtc\\\":\\\"2022-05-07T06:52:58.5252078Z\\\",\\\"SourceId\\\":null,\\\"TargetId\\\":\\\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/servicelinker-postgresql/databases/pollsdb\\\",\\\"AuthType\\\":4}\"}}" + "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/7485cb4a-5ccb-43d2-b6ca-b1812bc1d391*29FC1D772AA9DB7AB96D203D76DC8999C4D402C87FA6F24B9C0330A7029A41F6\",\"name\":\"7485cb4a-5ccb-43d2-b6ca-b1812bc1d391*29FC1D772AA9DB7AB96D203D76DC8999C4D402C87FA6F24B9C0330A7029A41F6\",\"resourceId\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers/preparedLinker\",\"status\":\"Succeeded\",\"startTime\":\"2023-01-30T05:21:56.0793057Z\",\"endTime\":\"2023-01-30T05:22:01.3413885Z\",\"properties\":{\"Message\":\"{\\\"ConnectionName\\\":\\\"preparedLinker\\\",\\\"IsConnectionAvailable\\\":true,\\\"ValidationDetail\\\":[{\\\"Name\\\":\\\"The target existence is validated\\\",\\\"Description\\\":null,\\\"Result\\\":0},{\\\"Name\\\":\\\"The target\u0027s network access is validated\\\",\\\"Description\\\":\\\"Deny public network access is set to yes. Please confirm you are using private endpoint connection to access target resource.\\\",\\\"Result\\\":2},{\\\"Name\\\":\\\"The configured values (except username/password) is validated\\\",\\\"Description\\\":null,\\\"Result\\\":0}],\\\"ReportStartTimeUtc\\\":\\\"2023-01-30T05:21:57.360925Z\\\",\\\"ReportEndTimeUtc\\\":\\\"2023-01-30T05:22:00.2240524Z\\\",\\\"SourceId\\\":null,\\\"TargetId\\\":null,\\\"AuthType\\\":4}\",\"linkerName\":\"preparedLinker\",\"isConnectionAvailable\":true,\"validationDetail\":[{\"name\":\"The target existence is validated\",\"description\":null,\"result\":\"success\"},{\"name\":\"The target\u0027s network access is validated\",\"description\":\"Deny public network access is set to yes. Please confirm you are using private endpoint connection to access target resource.\",\"result\":\"warning\"},{\"name\":\"The configured values (except username/password) is validated\",\"description\":null,\"result\":\"success\"}],\"reportStartTimeUtc\":\"2023-01-30T05:21:57.360925Z\",\"reportEndTimeUtc\":\"2023-01-30T05:22:00.2240524Z\",\"sourceId\":null,\"targetId\":null,\"authType\":\"secret\"}}", + "isContentBase64": false } }, - "Test-AzServiceLinkerForSpringCloud+[NoContext]+ValidateViaIdentity+$GET+https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/7f43fb2a-1fc9-42d8-97b0-9a71209cb7a3*29FC1D772AA9DB7AB96D203D76DC8999C4D402C87FA6F24B9C0330A7029A41F6?api-version=2022-05-01+3": { + "Test-AzServiceLinkerForSpringCloud+[NoContext]+ValidateViaIdentity+$GET+https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/7485cb4a-5ccb-43d2-b6ca-b1812bc1d391*29FC1D772AA9DB7AB96D203D76DC8999C4D402C87FA6F24B9C0330A7029A41F6?api-version=2021-01-01-privatepreview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/7f43fb2a-1fc9-42d8-97b0-9a71209cb7a3*29FC1D772AA9DB7AB96D203D76DC8999C4D402C87FA6F24B9C0330A7029A41F6?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/7485cb4a-5ccb-43d2-b6ca-b1812bc1d391*29FC1D772AA9DB7AB96D203D76DC8999C4D402C87FA6F24B9C0330A7029A41F6?api-version=2021-01-01-privatepreview", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "68" ], - "x-ms-client-request-id": [ "f8db5853-5bdb-4d04-9bd7-1f95aa202d18" ], + "x-ms-unique-id": [ "53" ], + "x-ms-client-request-id": [ "d9f15161-1c88-42a9-9dcc-04d8d96050e4" ], "CommandName": [ "Az.ServiceLinker.internal\\Test-AzServiceLinker" ], "FullCommandName": [ "Test-AzServiceLinker_ValidateViaIdentity" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceLinker/0.1.0" ] }, "ContentHeaders": { } @@ -222,21 +233,22 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"03002214-0000-0100-0000-6276174a0000\"" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11953" ], - "x-ms-request-id": [ "09e6a16d-fbb9-42f5-bf85-999feeca8bb3" ], - "x-ms-correlation-request-id": [ "f7c27fc2-86ab-4a5f-81ec-5152d806fb7b" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T065327Z:f7c27fc2-86ab-4a5f-81ec-5152d806fb7b" ], + "ETag": [ "\"b204179e-0000-0100-0000-63d753f90000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11965" ], + "x-ms-request-id": [ "90715f11-97cf-4b85-be1e-236de05ff8d4" ], + "x-ms-correlation-request-id": [ "e882f10a-e6a9-4f56-bd4e-ae174d7309a2" ], + "x-ms-routing-request-id": [ "KOREASOUTH:20230130T052227Z:e882f10a-e6a9-4f56-bd4e-ae174d7309a2" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:53:27 GMT" ] + "Date": [ "Mon, 30 Jan 2023 05:22:27 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1590" ], + "Content-Length": [ "2045" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/7f43fb2a-1fc9-42d8-97b0-9a71209cb7a3*29FC1D772AA9DB7AB96D203D76DC8999C4D402C87FA6F24B9C0330A7029A41F6\",\"name\":\"7f43fb2a-1fc9-42d8-97b0-9a71209cb7a3*29FC1D772AA9DB7AB96D203D76DC8999C4D402C87FA6F24B9C0330A7029A41F6\",\"resourceId\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers/preparedLinker\",\"status\":\"Succeeded\",\"startTime\":\"2022-05-07T06:52:56.1001633Z\",\"endTime\":\"2022-05-07T06:52:58.5905512Z\",\"properties\":{\"message\":\"{\\\"ConnectionName\\\":\\\"preparedLinker\\\",\\\"IsConnectionAvailable\\\":true,\\\"ValidationDetail\\\":[{\\\"Name\\\":\\\"The target existence is validated\\\",\\\"Description\\\":null,\\\"Result\\\":0},{\\\"Name\\\":\\\"The target\u0027s network access is validated\\\",\\\"Description\\\":\\\"Deny public network access is set to yes. Please confirm you are using private endpoint connection to access target resource.\\\",\\\"Result\\\":2},{\\\"Name\\\":\\\"The configured values (except username/password) is validated\\\",\\\"Description\\\":null,\\\"Result\\\":0}],\\\"ReportStartTimeUtc\\\":\\\"2022-05-07T06:52:57.4134256Z\\\",\\\"ReportEndTimeUtc\\\":\\\"2022-05-07T06:52:58.5252078Z\\\",\\\"SourceId\\\":null,\\\"TargetId\\\":\\\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/servicelinker-postgresql/databases/pollsdb\\\",\\\"AuthType\\\":4}\"}}" + "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/7485cb4a-5ccb-43d2-b6ca-b1812bc1d391*29FC1D772AA9DB7AB96D203D76DC8999C4D402C87FA6F24B9C0330A7029A41F6\",\"name\":\"7485cb4a-5ccb-43d2-b6ca-b1812bc1d391*29FC1D772AA9DB7AB96D203D76DC8999C4D402C87FA6F24B9C0330A7029A41F6\",\"resourceId\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers/preparedLinker\",\"status\":\"Succeeded\",\"startTime\":\"2023-01-30T05:21:56.0793057Z\",\"endTime\":\"2023-01-30T05:22:01.3413885Z\",\"properties\":{\"Message\":\"{\\\"ConnectionName\\\":\\\"preparedLinker\\\",\\\"IsConnectionAvailable\\\":true,\\\"ValidationDetail\\\":[{\\\"Name\\\":\\\"The target existence is validated\\\",\\\"Description\\\":null,\\\"Result\\\":0},{\\\"Name\\\":\\\"The target\u0027s network access is validated\\\",\\\"Description\\\":\\\"Deny public network access is set to yes. Please confirm you are using private endpoint connection to access target resource.\\\",\\\"Result\\\":2},{\\\"Name\\\":\\\"The configured values (except username/password) is validated\\\",\\\"Description\\\":null,\\\"Result\\\":0}],\\\"ReportStartTimeUtc\\\":\\\"2023-01-30T05:21:57.360925Z\\\",\\\"ReportEndTimeUtc\\\":\\\"2023-01-30T05:22:00.2240524Z\\\",\\\"SourceId\\\":null,\\\"TargetId\\\":null,\\\"AuthType\\\":4}\",\"linkerName\":\"preparedLinker\",\"isConnectionAvailable\":true,\"validationDetail\":[{\"name\":\"The target existence is validated\",\"description\":null,\"result\":\"success\"},{\"name\":\"The target\u0027s network access is validated\",\"description\":\"Deny public network access is set to yes. Please confirm you are using private endpoint connection to access target resource.\",\"result\":\"warning\"},{\"name\":\"The configured values (except username/password) is validated\",\"description\":null,\"result\":\"success\"}],\"reportStartTimeUtc\":\"2023-01-30T05:21:57.360925Z\",\"reportEndTimeUtc\":\"2023-01-30T05:22:00.2240524Z\",\"sourceId\":null,\"targetId\":null,\"authType\":\"secret\"}}", + "isContentBase64": false } } } \ No newline at end of file diff --git a/src/ServiceLinker/test/Test-AzServiceLinkerForWebApp.Recording.json b/src/ServiceLinker/test/Test-AzServiceLinkerForWebApp.Recording.json index 5024db77dcf8..d795160447cf 100644 --- a/src/ServiceLinker/test/Test-AzServiceLinkerForWebApp.Recording.json +++ b/src/ServiceLinker/test/Test-AzServiceLinkerForWebApp.Recording.json @@ -1,16 +1,17 @@ { - "Test-AzServiceLinkerForWebApp+[NoContext]+Validate+$POST+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-test-app/providers/Microsoft.ServiceLinker/linkers/preparedLinker/validateLinker?api-version=2022-05-01+1": { + "Test-AzServiceLinkerForWebApp+[NoContext]+Validate+$POST+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-test-app/providers/Microsoft.ServiceLinker/linkers/preparedLinker/validateLinker?api-version=2022-11-01-preview+1": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-test-app/providers/Microsoft.ServiceLinker/linkers/preparedLinker/validateLinker?api-version=2022-05-01", + "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-test-app/providers/Microsoft.ServiceLinker/linkers/preparedLinker/validateLinker?api-version=2022-11-01-preview", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "69" ], - "x-ms-client-request-id": [ "cdea3610-73da-400d-8993-dcd32c978087" ], + "x-ms-unique-id": [ "54" ], + "x-ms-client-request-id": [ "f3080e5b-dd83-4ea2-94c8-730738ffe4c9" ], "CommandName": [ "Az.ServiceLinker.internal\\Test-AzServiceLinker" ], "FullCommandName": [ "Test-AzServiceLinker_Validate" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceLinker/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -21,39 +22,41 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/4bbb4f1f-19a4-46a5-a1ac-2354774228dd*B991DCAFEBFF5C3A79EC9E2FD2F2ADE7A54C04792D45A2389E902AD7087E3F40?api-version=2022-05-01" ], + "Location": [ "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/233660b0-40de-4caa-9cb5-075206d285cf*B991DCAFEBFF5C3A79EC9E2FD2F2ADE7A54C04792D45A2389E902AD7087E3F40?api-version=2021-01-01-privatepreview" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1192" ], "x-ms-providerhub-traffic": [ "True" ], - "mise-correlation-id": [ "683600d2-71c8-40f7-bea9-159ee233a4bc" ], + "mise-correlation-id": [ "725339a3-36b7-4425-a653-442ea79108a9" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/4bbb4f1f-19a4-46a5-a1ac-2354774228dd*B991DCAFEBFF5C3A79EC9E2FD2F2ADE7A54C04792D45A2389E902AD7087E3F40?api-version=2022-05-01" ], - "x-ms-request-id": [ "4bbb4f1f-19a4-46a5-a1ac-2354774228dd" ], - "x-ms-correlation-request-id": [ "b25f7543-1ad9-4c57-ac16-e6179a53d04b" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T065337Z:b25f7543-1ad9-4c57-ac16-e6179a53d04b" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/233660b0-40de-4caa-9cb5-075206d285cf*B991DCAFEBFF5C3A79EC9E2FD2F2ADE7A54C04792D45A2389E902AD7087E3F40?api-version=2021-01-01-privatepreview" ], + "x-ms-request-id": [ "233660b0-40de-4caa-9cb5-075206d285cf" ], + "x-ms-correlation-request-id": [ "d8c15883-52d4-498a-9c48-81bad2aedb53" ], + "x-ms-routing-request-id": [ "KOREASOUTH:20230130T052240Z:d8c15883-52d4-498a-9c48-81bad2aedb53" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:53:37 GMT" ] + "Date": [ "Mon, 30 Jan 2023 05:22:39 GMT" ] }, "ContentHeaders": { "Content-Length": [ "4" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "bnVsbA==" + "Content": "bnVsbA==", + "isContentBase64": false } }, - "Test-AzServiceLinkerForWebApp+[NoContext]+Validate+$GET+https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/4bbb4f1f-19a4-46a5-a1ac-2354774228dd*B991DCAFEBFF5C3A79EC9E2FD2F2ADE7A54C04792D45A2389E902AD7087E3F40?api-version=2022-05-01+2": { + "Test-AzServiceLinkerForWebApp+[NoContext]+Validate+$GET+https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/233660b0-40de-4caa-9cb5-075206d285cf*B991DCAFEBFF5C3A79EC9E2FD2F2ADE7A54C04792D45A2389E902AD7087E3F40?api-version=2021-01-01-privatepreview+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/4bbb4f1f-19a4-46a5-a1ac-2354774228dd*B991DCAFEBFF5C3A79EC9E2FD2F2ADE7A54C04792D45A2389E902AD7087E3F40?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/233660b0-40de-4caa-9cb5-075206d285cf*B991DCAFEBFF5C3A79EC9E2FD2F2ADE7A54C04792D45A2389E902AD7087E3F40?api-version=2021-01-01-privatepreview", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "70" ], - "x-ms-client-request-id": [ "cdea3610-73da-400d-8993-dcd32c978087" ], + "x-ms-unique-id": [ "55" ], + "x-ms-client-request-id": [ "f3080e5b-dd83-4ea2-94c8-730738ffe4c9" ], "CommandName": [ "Az.ServiceLinker.internal\\Test-AzServiceLinker" ], "FullCommandName": [ "Test-AzServiceLinker_Validate" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceLinker/0.1.0" ] }, "ContentHeaders": { } @@ -63,36 +66,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"03002614-0000-0100-0000-627617730000\"" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11952" ], - "x-ms-request-id": [ "a214d4a8-728a-46dd-b945-9d82e5071f2d" ], - "x-ms-correlation-request-id": [ "20c8fb73-2a78-47ae-ba9a-62d01e1fbe3c" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T065407Z:20c8fb73-2a78-47ae-ba9a-62d01e1fbe3c" ], + "ETag": [ "\"b2041a9e-0000-0100-0000-63d754230000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11964" ], + "x-ms-request-id": [ "3b9f7998-efd1-4dc9-a04a-723db2956ffe" ], + "x-ms-correlation-request-id": [ "336680c9-9bde-4488-bb4c-b4564c0e62d2" ], + "x-ms-routing-request-id": [ "KOREASOUTH:20230130T052310Z:336680c9-9bde-4488-bb4c-b4564c0e62d2" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:54:07 GMT" ] + "Date": [ "Mon, 30 Jan 2023 05:23:09 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1478" ], + "Content-Length": [ "2010" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/4bbb4f1f-19a4-46a5-a1ac-2354774228dd*B991DCAFEBFF5C3A79EC9E2FD2F2ADE7A54C04792D45A2389E902AD7087E3F40\",\"name\":\"4bbb4f1f-19a4-46a5-a1ac-2354774228dd*B991DCAFEBFF5C3A79EC9E2FD2F2ADE7A54C04792D45A2389E902AD7087E3F40\",\"resourceId\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-test-app/providers/Microsoft.ServiceLinker/linkers/preparedLinker\",\"status\":\"Succeeded\",\"startTime\":\"2022-05-07T06:53:36.8105991Z\",\"endTime\":\"2022-05-07T06:53:39.5091744Z\",\"properties\":{\"message\":\"{\\\"ConnectionName\\\":\\\"preparedLinker\\\",\\\"IsConnectionAvailable\\\":true,\\\"ValidationDetail\\\":[{\\\"Name\\\":\\\"The target existence is validated\\\",\\\"Description\\\":null,\\\"Result\\\":0},{\\\"Name\\\":\\\"The target service firewall is validated\\\",\\\"Description\\\":\\\"Public network access is enabled, but firewall rule not set\\\",\\\"Result\\\":2},{\\\"Name\\\":\\\"The configured values (except username/password) is validated\\\",\\\"Description\\\":null,\\\"Result\\\":0}],\\\"ReportStartTimeUtc\\\":\\\"2022-05-07T06:53:38.4618123Z\\\",\\\"ReportEndTimeUtc\\\":\\\"2022-05-07T06:53:39.431554Z\\\",\\\"SourceId\\\":null,\\\"TargetId\\\":\\\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/servicelinker-postgresql/databases/pollsdb\\\",\\\"AuthType\\\":4}\"}}" + "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/233660b0-40de-4caa-9cb5-075206d285cf*B991DCAFEBFF5C3A79EC9E2FD2F2ADE7A54C04792D45A2389E902AD7087E3F40\",\"name\":\"233660b0-40de-4caa-9cb5-075206d285cf*B991DCAFEBFF5C3A79EC9E2FD2F2ADE7A54C04792D45A2389E902AD7087E3F40\",\"resourceId\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-test-app/providers/Microsoft.ServiceLinker/linkers/preparedLinker\",\"status\":\"Succeeded\",\"startTime\":\"2023-01-30T05:22:39.7280338Z\",\"endTime\":\"2023-01-30T05:22:43.6578975Z\",\"properties\":{\"Message\":\"{\\\"ConnectionName\\\":\\\"preparedLinker\\\",\\\"IsConnectionAvailable\\\":false,\\\"ValidationDetail\\\":[{\\\"Name\\\":\\\"The target existence is validated\\\",\\\"Description\\\":null,\\\"Result\\\":0},{\\\"Name\\\":\\\"The target\u0027s network access is validated\\\",\\\"Description\\\":\\\"Deny public network access is set to yes. Please confirm you are using private endpoint connection to access target resource.\\\",\\\"Result\\\":2},{\\\"Name\\\":\\\"The configured values is validated\\\",\\\"Description\\\":\\\"name of connection is incorrect\\\",\\\"Result\\\":1}],\\\"ReportStartTimeUtc\\\":\\\"2023-01-30T05:22:41.3441432Z\\\",\\\"ReportEndTimeUtc\\\":\\\"2023-01-30T05:22:42.4906781Z\\\",\\\"SourceId\\\":null,\\\"TargetId\\\":null,\\\"AuthType\\\":4}\",\"linkerName\":\"preparedLinker\",\"isConnectionAvailable\":false,\"validationDetail\":[{\"name\":\"The target existence is validated\",\"description\":null,\"result\":\"success\"},{\"name\":\"The target\u0027s network access is validated\",\"description\":\"Deny public network access is set to yes. Please confirm you are using private endpoint connection to access target resource.\",\"result\":\"warning\"},{\"name\":\"The configured values is validated\",\"description\":\"name of connection is incorrect\",\"result\":\"failure\"}],\"reportStartTimeUtc\":\"2023-01-30T05:22:41.3441432Z\",\"reportEndTimeUtc\":\"2023-01-30T05:22:42.4906781Z\",\"sourceId\":null,\"targetId\":null,\"authType\":\"secret\"}}", + "isContentBase64": false } }, - "Test-AzServiceLinkerForWebApp+[NoContext]+Validate+$GET+https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/4bbb4f1f-19a4-46a5-a1ac-2354774228dd*B991DCAFEBFF5C3A79EC9E2FD2F2ADE7A54C04792D45A2389E902AD7087E3F40?api-version=2022-05-01+3": { + "Test-AzServiceLinkerForWebApp+[NoContext]+Validate+$GET+https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/233660b0-40de-4caa-9cb5-075206d285cf*B991DCAFEBFF5C3A79EC9E2FD2F2ADE7A54C04792D45A2389E902AD7087E3F40?api-version=2021-01-01-privatepreview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/4bbb4f1f-19a4-46a5-a1ac-2354774228dd*B991DCAFEBFF5C3A79EC9E2FD2F2ADE7A54C04792D45A2389E902AD7087E3F40?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/233660b0-40de-4caa-9cb5-075206d285cf*B991DCAFEBFF5C3A79EC9E2FD2F2ADE7A54C04792D45A2389E902AD7087E3F40?api-version=2021-01-01-privatepreview", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "71" ], - "x-ms-client-request-id": [ "cdea3610-73da-400d-8993-dcd32c978087" ], + "x-ms-unique-id": [ "56" ], + "x-ms-client-request-id": [ "f3080e5b-dd83-4ea2-94c8-730738ffe4c9" ], "CommandName": [ "Az.ServiceLinker.internal\\Test-AzServiceLinker" ], "FullCommandName": [ "Test-AzServiceLinker_Validate" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceLinker/0.1.0" ] }, "ContentHeaders": { } @@ -102,35 +107,37 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"03002614-0000-0100-0000-627617730000\"" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11951" ], - "x-ms-request-id": [ "16bf7853-a163-4525-86e9-4e5693eee385" ], - "x-ms-correlation-request-id": [ "0e438854-39dd-4bd7-b50a-a72c6ced79f8" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T065408Z:0e438854-39dd-4bd7-b50a-a72c6ced79f8" ], + "ETag": [ "\"b2041a9e-0000-0100-0000-63d754230000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11963" ], + "x-ms-request-id": [ "54903dad-4b72-460d-a50c-8dcea98ea9b4" ], + "x-ms-correlation-request-id": [ "9618a3a0-467d-4a13-ad09-08fba055e6d3" ], + "x-ms-routing-request-id": [ "KOREASOUTH:20230130T052311Z:9618a3a0-467d-4a13-ad09-08fba055e6d3" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:54:08 GMT" ] + "Date": [ "Mon, 30 Jan 2023 05:23:10 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1478" ], + "Content-Length": [ "2010" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/4bbb4f1f-19a4-46a5-a1ac-2354774228dd*B991DCAFEBFF5C3A79EC9E2FD2F2ADE7A54C04792D45A2389E902AD7087E3F40\",\"name\":\"4bbb4f1f-19a4-46a5-a1ac-2354774228dd*B991DCAFEBFF5C3A79EC9E2FD2F2ADE7A54C04792D45A2389E902AD7087E3F40\",\"resourceId\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-test-app/providers/Microsoft.ServiceLinker/linkers/preparedLinker\",\"status\":\"Succeeded\",\"startTime\":\"2022-05-07T06:53:36.8105991Z\",\"endTime\":\"2022-05-07T06:53:39.5091744Z\",\"properties\":{\"message\":\"{\\\"ConnectionName\\\":\\\"preparedLinker\\\",\\\"IsConnectionAvailable\\\":true,\\\"ValidationDetail\\\":[{\\\"Name\\\":\\\"The target existence is validated\\\",\\\"Description\\\":null,\\\"Result\\\":0},{\\\"Name\\\":\\\"The target service firewall is validated\\\",\\\"Description\\\":\\\"Public network access is enabled, but firewall rule not set\\\",\\\"Result\\\":2},{\\\"Name\\\":\\\"The configured values (except username/password) is validated\\\",\\\"Description\\\":null,\\\"Result\\\":0}],\\\"ReportStartTimeUtc\\\":\\\"2022-05-07T06:53:38.4618123Z\\\",\\\"ReportEndTimeUtc\\\":\\\"2022-05-07T06:53:39.431554Z\\\",\\\"SourceId\\\":null,\\\"TargetId\\\":\\\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/servicelinker-postgresql/databases/pollsdb\\\",\\\"AuthType\\\":4}\"}}" + "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/233660b0-40de-4caa-9cb5-075206d285cf*B991DCAFEBFF5C3A79EC9E2FD2F2ADE7A54C04792D45A2389E902AD7087E3F40\",\"name\":\"233660b0-40de-4caa-9cb5-075206d285cf*B991DCAFEBFF5C3A79EC9E2FD2F2ADE7A54C04792D45A2389E902AD7087E3F40\",\"resourceId\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-test-app/providers/Microsoft.ServiceLinker/linkers/preparedLinker\",\"status\":\"Succeeded\",\"startTime\":\"2023-01-30T05:22:39.7280338Z\",\"endTime\":\"2023-01-30T05:22:43.6578975Z\",\"properties\":{\"Message\":\"{\\\"ConnectionName\\\":\\\"preparedLinker\\\",\\\"IsConnectionAvailable\\\":false,\\\"ValidationDetail\\\":[{\\\"Name\\\":\\\"The target existence is validated\\\",\\\"Description\\\":null,\\\"Result\\\":0},{\\\"Name\\\":\\\"The target\u0027s network access is validated\\\",\\\"Description\\\":\\\"Deny public network access is set to yes. Please confirm you are using private endpoint connection to access target resource.\\\",\\\"Result\\\":2},{\\\"Name\\\":\\\"The configured values is validated\\\",\\\"Description\\\":\\\"name of connection is incorrect\\\",\\\"Result\\\":1}],\\\"ReportStartTimeUtc\\\":\\\"2023-01-30T05:22:41.3441432Z\\\",\\\"ReportEndTimeUtc\\\":\\\"2023-01-30T05:22:42.4906781Z\\\",\\\"SourceId\\\":null,\\\"TargetId\\\":null,\\\"AuthType\\\":4}\",\"linkerName\":\"preparedLinker\",\"isConnectionAvailable\":false,\"validationDetail\":[{\"name\":\"The target existence is validated\",\"description\":null,\"result\":\"success\"},{\"name\":\"The target\u0027s network access is validated\",\"description\":\"Deny public network access is set to yes. Please confirm you are using private endpoint connection to access target resource.\",\"result\":\"warning\"},{\"name\":\"The configured values is validated\",\"description\":\"name of connection is incorrect\",\"result\":\"failure\"}],\"reportStartTimeUtc\":\"2023-01-30T05:22:41.3441432Z\",\"reportEndTimeUtc\":\"2023-01-30T05:22:42.4906781Z\",\"sourceId\":null,\"targetId\":null,\"authType\":\"secret\"}}", + "isContentBase64": false } }, - "Test-AzServiceLinkerForWebApp+[NoContext]+ValidateViaIdentity+$POST+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-test-app/providers/Microsoft.ServiceLinker/linkers/preparedLinker/validateLinker?api-version=2022-05-01+1": { + "Test-AzServiceLinkerForWebApp+[NoContext]+ValidateViaIdentity+$POST+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-test-app/providers/Microsoft.ServiceLinker/linkers/preparedLinker/validateLinker?api-version=2022-11-01-preview+1": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-test-app/providers/Microsoft.ServiceLinker/linkers/preparedLinker/validateLinker?api-version=2022-05-01", + "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-test-app/providers/Microsoft.ServiceLinker/linkers/preparedLinker/validateLinker?api-version=2022-11-01-preview", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "72" ], - "x-ms-client-request-id": [ "4a48080f-08c9-4bb5-be10-2c965db1cd09" ], + "x-ms-unique-id": [ "57" ], + "x-ms-client-request-id": [ "0e4a71e9-0b54-44cc-9326-84c94c127e65" ], "CommandName": [ "Az.ServiceLinker.internal\\Test-AzServiceLinker" ], "FullCommandName": [ "Test-AzServiceLinker_ValidateViaIdentity" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceLinker/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -141,39 +148,41 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/249d9d1d-3b57-406c-bd08-62332678c8be*B991DCAFEBFF5C3A79EC9E2FD2F2ADE7A54C04792D45A2389E902AD7087E3F40?api-version=2022-05-01" ], + "Location": [ "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/ede01e5d-8555-4439-8382-6c9054a0b431*B991DCAFEBFF5C3A79EC9E2FD2F2ADE7A54C04792D45A2389E902AD7087E3F40?api-version=2021-01-01-privatepreview" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1191" ], "x-ms-providerhub-traffic": [ "True" ], - "mise-correlation-id": [ "c8a64471-6199-4fff-84de-834652933a43" ], + "mise-correlation-id": [ "82153915-79c6-4c9c-bfb6-c3a07aa065b6" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/249d9d1d-3b57-406c-bd08-62332678c8be*B991DCAFEBFF5C3A79EC9E2FD2F2ADE7A54C04792D45A2389E902AD7087E3F40?api-version=2022-05-01" ], - "x-ms-request-id": [ "249d9d1d-3b57-406c-bd08-62332678c8be" ], - "x-ms-correlation-request-id": [ "eb1bae85-2b23-4c3f-beb0-ca22a6e19c1c" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T065409Z:eb1bae85-2b23-4c3f-beb0-ca22a6e19c1c" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/ede01e5d-8555-4439-8382-6c9054a0b431*B991DCAFEBFF5C3A79EC9E2FD2F2ADE7A54C04792D45A2389E902AD7087E3F40?api-version=2021-01-01-privatepreview" ], + "x-ms-request-id": [ "ede01e5d-8555-4439-8382-6c9054a0b431" ], + "x-ms-correlation-request-id": [ "7103afa5-8da8-4cfd-bf55-1d58f022d8b8" ], + "x-ms-routing-request-id": [ "KOREASOUTH:20230130T052312Z:7103afa5-8da8-4cfd-bf55-1d58f022d8b8" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:54:09 GMT" ] + "Date": [ "Mon, 30 Jan 2023 05:23:11 GMT" ] }, "ContentHeaders": { "Content-Length": [ "4" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "bnVsbA==" + "Content": "bnVsbA==", + "isContentBase64": false } }, - "Test-AzServiceLinkerForWebApp+[NoContext]+ValidateViaIdentity+$GET+https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/249d9d1d-3b57-406c-bd08-62332678c8be*B991DCAFEBFF5C3A79EC9E2FD2F2ADE7A54C04792D45A2389E902AD7087E3F40?api-version=2022-05-01+2": { + "Test-AzServiceLinkerForWebApp+[NoContext]+ValidateViaIdentity+$GET+https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/ede01e5d-8555-4439-8382-6c9054a0b431*B991DCAFEBFF5C3A79EC9E2FD2F2ADE7A54C04792D45A2389E902AD7087E3F40?api-version=2021-01-01-privatepreview+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/249d9d1d-3b57-406c-bd08-62332678c8be*B991DCAFEBFF5C3A79EC9E2FD2F2ADE7A54C04792D45A2389E902AD7087E3F40?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/ede01e5d-8555-4439-8382-6c9054a0b431*B991DCAFEBFF5C3A79EC9E2FD2F2ADE7A54C04792D45A2389E902AD7087E3F40?api-version=2021-01-01-privatepreview", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "73" ], - "x-ms-client-request-id": [ "4a48080f-08c9-4bb5-be10-2c965db1cd09" ], + "x-ms-unique-id": [ "58" ], + "x-ms-client-request-id": [ "0e4a71e9-0b54-44cc-9326-84c94c127e65" ], "CommandName": [ "Az.ServiceLinker.internal\\Test-AzServiceLinker" ], "FullCommandName": [ "Test-AzServiceLinker_ValidateViaIdentity" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceLinker/0.1.0" ] }, "ContentHeaders": { } @@ -183,36 +192,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"03002d14-0000-0100-0000-627617930000\"" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11950" ], - "x-ms-request-id": [ "b0263d52-7099-4591-b4be-5d08cef09827" ], - "x-ms-correlation-request-id": [ "e9d1bcfc-0b9e-4b3b-90f9-a0c4236bb80d" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T065439Z:e9d1bcfc-0b9e-4b3b-90f9-a0c4236bb80d" ], + "ETag": [ "\"b204229e-0000-0100-0000-63d754430000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11962" ], + "x-ms-request-id": [ "e1eb070f-8209-4dae-8175-dbbb5f0c2322" ], + "x-ms-correlation-request-id": [ "3707dee0-b979-4399-8d79-2567367b475c" ], + "x-ms-routing-request-id": [ "KOREASOUTH:20230130T052342Z:3707dee0-b979-4399-8d79-2567367b475c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:54:39 GMT" ] + "Date": [ "Mon, 30 Jan 2023 05:23:42 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1479" ], + "Content-Length": [ "2010" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/249d9d1d-3b57-406c-bd08-62332678c8be*B991DCAFEBFF5C3A79EC9E2FD2F2ADE7A54C04792D45A2389E902AD7087E3F40\",\"name\":\"249d9d1d-3b57-406c-bd08-62332678c8be*B991DCAFEBFF5C3A79EC9E2FD2F2ADE7A54C04792D45A2389E902AD7087E3F40\",\"resourceId\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-test-app/providers/Microsoft.ServiceLinker/linkers/preparedLinker\",\"status\":\"Succeeded\",\"startTime\":\"2022-05-07T06:54:08.7536684Z\",\"endTime\":\"2022-05-07T06:54:11.4992993Z\",\"properties\":{\"message\":\"{\\\"ConnectionName\\\":\\\"preparedLinker\\\",\\\"IsConnectionAvailable\\\":true,\\\"ValidationDetail\\\":[{\\\"Name\\\":\\\"The target existence is validated\\\",\\\"Description\\\":null,\\\"Result\\\":0},{\\\"Name\\\":\\\"The target service firewall is validated\\\",\\\"Description\\\":\\\"Public network access is enabled, but firewall rule not set\\\",\\\"Result\\\":2},{\\\"Name\\\":\\\"The configured values (except username/password) is validated\\\",\\\"Description\\\":null,\\\"Result\\\":0}],\\\"ReportStartTimeUtc\\\":\\\"2022-05-07T06:54:10.4212458Z\\\",\\\"ReportEndTimeUtc\\\":\\\"2022-05-07T06:54:11.4104682Z\\\",\\\"SourceId\\\":null,\\\"TargetId\\\":\\\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/servicelinker-postgresql/databases/pollsdb\\\",\\\"AuthType\\\":4}\"}}" + "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/ede01e5d-8555-4439-8382-6c9054a0b431*B991DCAFEBFF5C3A79EC9E2FD2F2ADE7A54C04792D45A2389E902AD7087E3F40\",\"name\":\"ede01e5d-8555-4439-8382-6c9054a0b431*B991DCAFEBFF5C3A79EC9E2FD2F2ADE7A54C04792D45A2389E902AD7087E3F40\",\"resourceId\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-test-app/providers/Microsoft.ServiceLinker/linkers/preparedLinker\",\"status\":\"Succeeded\",\"startTime\":\"2023-01-30T05:23:11.9696896Z\",\"endTime\":\"2023-01-30T05:23:15.5302823Z\",\"properties\":{\"Message\":\"{\\\"ConnectionName\\\":\\\"preparedLinker\\\",\\\"IsConnectionAvailable\\\":false,\\\"ValidationDetail\\\":[{\\\"Name\\\":\\\"The target existence is validated\\\",\\\"Description\\\":null,\\\"Result\\\":0},{\\\"Name\\\":\\\"The target\u0027s network access is validated\\\",\\\"Description\\\":\\\"Deny public network access is set to yes. Please confirm you are using private endpoint connection to access target resource.\\\",\\\"Result\\\":2},{\\\"Name\\\":\\\"The configured values is validated\\\",\\\"Description\\\":\\\"name of connection is incorrect\\\",\\\"Result\\\":1}],\\\"ReportStartTimeUtc\\\":\\\"2023-01-30T05:23:13.3013169Z\\\",\\\"ReportEndTimeUtc\\\":\\\"2023-01-30T05:23:14.4267413Z\\\",\\\"SourceId\\\":null,\\\"TargetId\\\":null,\\\"AuthType\\\":4}\",\"linkerName\":\"preparedLinker\",\"isConnectionAvailable\":false,\"validationDetail\":[{\"name\":\"The target existence is validated\",\"description\":null,\"result\":\"success\"},{\"name\":\"The target\u0027s network access is validated\",\"description\":\"Deny public network access is set to yes. Please confirm you are using private endpoint connection to access target resource.\",\"result\":\"warning\"},{\"name\":\"The configured values is validated\",\"description\":\"name of connection is incorrect\",\"result\":\"failure\"}],\"reportStartTimeUtc\":\"2023-01-30T05:23:13.3013169Z\",\"reportEndTimeUtc\":\"2023-01-30T05:23:14.4267413Z\",\"sourceId\":null,\"targetId\":null,\"authType\":\"secret\"}}", + "isContentBase64": false } }, - "Test-AzServiceLinkerForWebApp+[NoContext]+ValidateViaIdentity+$GET+https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/249d9d1d-3b57-406c-bd08-62332678c8be*B991DCAFEBFF5C3A79EC9E2FD2F2ADE7A54C04792D45A2389E902AD7087E3F40?api-version=2022-05-01+3": { + "Test-AzServiceLinkerForWebApp+[NoContext]+ValidateViaIdentity+$GET+https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/ede01e5d-8555-4439-8382-6c9054a0b431*B991DCAFEBFF5C3A79EC9E2FD2F2ADE7A54C04792D45A2389E902AD7087E3F40?api-version=2021-01-01-privatepreview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/249d9d1d-3b57-406c-bd08-62332678c8be*B991DCAFEBFF5C3A79EC9E2FD2F2ADE7A54C04792D45A2389E902AD7087E3F40?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/ede01e5d-8555-4439-8382-6c9054a0b431*B991DCAFEBFF5C3A79EC9E2FD2F2ADE7A54C04792D45A2389E902AD7087E3F40?api-version=2021-01-01-privatepreview", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "74" ], - "x-ms-client-request-id": [ "4a48080f-08c9-4bb5-be10-2c965db1cd09" ], + "x-ms-unique-id": [ "59" ], + "x-ms-client-request-id": [ "0e4a71e9-0b54-44cc-9326-84c94c127e65" ], "CommandName": [ "Az.ServiceLinker.internal\\Test-AzServiceLinker" ], "FullCommandName": [ "Test-AzServiceLinker_ValidateViaIdentity" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceLinker/0.1.0" ] }, "ContentHeaders": { } @@ -222,21 +233,22 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"03002d14-0000-0100-0000-627617930000\"" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11949" ], - "x-ms-request-id": [ "4a7e6afd-9b40-4424-8e57-27dbf33c68e8" ], - "x-ms-correlation-request-id": [ "e19df065-756a-454f-892f-18867a3d79aa" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T065440Z:e19df065-756a-454f-892f-18867a3d79aa" ], + "ETag": [ "\"b204229e-0000-0100-0000-63d754430000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11961" ], + "x-ms-request-id": [ "7669c24b-5c99-43d5-9d17-b4adf1a88330" ], + "x-ms-correlation-request-id": [ "cdf3c94d-3fac-4e8b-a6bc-880846d9db4b" ], + "x-ms-routing-request-id": [ "KOREASOUTH:20230130T052343Z:cdf3c94d-3fac-4e8b-a6bc-880846d9db4b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:54:39 GMT" ] + "Date": [ "Mon, 30 Jan 2023 05:23:42 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1479" ], + "Content-Length": [ "2010" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/249d9d1d-3b57-406c-bd08-62332678c8be*B991DCAFEBFF5C3A79EC9E2FD2F2ADE7A54C04792D45A2389E902AD7087E3F40\",\"name\":\"249d9d1d-3b57-406c-bd08-62332678c8be*B991DCAFEBFF5C3A79EC9E2FD2F2ADE7A54C04792D45A2389E902AD7087E3F40\",\"resourceId\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-test-app/providers/Microsoft.ServiceLinker/linkers/preparedLinker\",\"status\":\"Succeeded\",\"startTime\":\"2022-05-07T06:54:08.7536684Z\",\"endTime\":\"2022-05-07T06:54:11.4992993Z\",\"properties\":{\"message\":\"{\\\"ConnectionName\\\":\\\"preparedLinker\\\",\\\"IsConnectionAvailable\\\":true,\\\"ValidationDetail\\\":[{\\\"Name\\\":\\\"The target existence is validated\\\",\\\"Description\\\":null,\\\"Result\\\":0},{\\\"Name\\\":\\\"The target service firewall is validated\\\",\\\"Description\\\":\\\"Public network access is enabled, but firewall rule not set\\\",\\\"Result\\\":2},{\\\"Name\\\":\\\"The configured values (except username/password) is validated\\\",\\\"Description\\\":null,\\\"Result\\\":0}],\\\"ReportStartTimeUtc\\\":\\\"2022-05-07T06:54:10.4212458Z\\\",\\\"ReportEndTimeUtc\\\":\\\"2022-05-07T06:54:11.4104682Z\\\",\\\"SourceId\\\":null,\\\"TargetId\\\":\\\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/servicelinker-postgresql/databases/pollsdb\\\",\\\"AuthType\\\":4}\"}}" + "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/ede01e5d-8555-4439-8382-6c9054a0b431*B991DCAFEBFF5C3A79EC9E2FD2F2ADE7A54C04792D45A2389E902AD7087E3F40\",\"name\":\"ede01e5d-8555-4439-8382-6c9054a0b431*B991DCAFEBFF5C3A79EC9E2FD2F2ADE7A54C04792D45A2389E902AD7087E3F40\",\"resourceId\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-test-app/providers/Microsoft.ServiceLinker/linkers/preparedLinker\",\"status\":\"Succeeded\",\"startTime\":\"2023-01-30T05:23:11.9696896Z\",\"endTime\":\"2023-01-30T05:23:15.5302823Z\",\"properties\":{\"Message\":\"{\\\"ConnectionName\\\":\\\"preparedLinker\\\",\\\"IsConnectionAvailable\\\":false,\\\"ValidationDetail\\\":[{\\\"Name\\\":\\\"The target existence is validated\\\",\\\"Description\\\":null,\\\"Result\\\":0},{\\\"Name\\\":\\\"The target\u0027s network access is validated\\\",\\\"Description\\\":\\\"Deny public network access is set to yes. Please confirm you are using private endpoint connection to access target resource.\\\",\\\"Result\\\":2},{\\\"Name\\\":\\\"The configured values is validated\\\",\\\"Description\\\":\\\"name of connection is incorrect\\\",\\\"Result\\\":1}],\\\"ReportStartTimeUtc\\\":\\\"2023-01-30T05:23:13.3013169Z\\\",\\\"ReportEndTimeUtc\\\":\\\"2023-01-30T05:23:14.4267413Z\\\",\\\"SourceId\\\":null,\\\"TargetId\\\":null,\\\"AuthType\\\":4}\",\"linkerName\":\"preparedLinker\",\"isConnectionAvailable\":false,\"validationDetail\":[{\"name\":\"The target existence is validated\",\"description\":null,\"result\":\"success\"},{\"name\":\"The target\u0027s network access is validated\",\"description\":\"Deny public network access is set to yes. Please confirm you are using private endpoint connection to access target resource.\",\"result\":\"warning\"},{\"name\":\"The configured values is validated\",\"description\":\"name of connection is incorrect\",\"result\":\"failure\"}],\"reportStartTimeUtc\":\"2023-01-30T05:23:13.3013169Z\",\"reportEndTimeUtc\":\"2023-01-30T05:23:14.4267413Z\",\"sourceId\":null,\"targetId\":null,\"authType\":\"secret\"}}", + "isContentBase64": false } } } \ No newline at end of file diff --git a/src/ServiceLinker/test/Update-AzServiceLinkerForContainerApp.Recording.json b/src/ServiceLinker/test/Update-AzServiceLinkerForContainerApp.Recording.json index e3b059920b39..bd8b3914c33f 100644 --- a/src/ServiceLinker/test/Update-AzServiceLinkerForContainerApp.Recording.json +++ b/src/ServiceLinker/test/Update-AzServiceLinkerForContainerApp.Recording.json @@ -1,16 +1,17 @@ { - "Update-AzServiceLinkerForContainerApp+[NoContext]+UpdateExpanded+$GET+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/preparedLinker?api-version=2022-05-01+1": { + "Update-AzServiceLinkerForContainerApp+[NoContext]+UpdateExpanded+$GET+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/preparedLinker?api-version=2022-11-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/preparedLinker?api-version=2022-05-01", + "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/preparedLinker?api-version=2022-11-01-preview", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "74" ], - "x-ms-client-request-id": [ "60474faa-099f-4b3b-8486-26120f5d59ba" ], + "x-ms-unique-id": [ "60" ], + "x-ms-client-request-id": [ "759e85b4-f2b5-4a83-8980-919ad8703e43" ], "CommandName": [ "Az.ServiceLinker.internal\\Get-AzServiceLinker" ], "FullCommandName": [ "Get-AzServiceLinker_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceLinker/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -21,36 +22,37 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"3a008066-0000-0100-0000-627610d40000\"" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11962" ], + "ETag": [ "\"ea00c29e-0000-0100-0000-63d73b820000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11960" ], "x-ms-providerhub-traffic": [ "True" ], - "mise-correlation-id": [ "59069c7a-f8c8-4a32-a3ba-6adaeabc3e4b" ], + "mise-correlation-id": [ "00dc1e3e-dafa-4000-90d0-77d83bacd6de" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "9f8095e9-f2c4-4e6d-89af-20ea87ed6a5c" ], - "x-ms-correlation-request-id": [ "b6110187-ff94-4474-903a-dbc1cb26bb25" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T063845Z:b6110187-ff94-4474-903a-dbc1cb26bb25" ], + "x-ms-request-id": [ "5f726434-e46e-4f07-a362-959874ef851b" ], + "x-ms-correlation-request-id": [ "28e88390-ecc8-4a59-9a98-9b2f3e61f3b3" ], + "x-ms-routing-request-id": [ "KOREASOUTH:20230130T052431Z:28e88390-ecc8-4a59-9a98-9b2f3e61f3b3" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:38:45 GMT" ] + "Date": [ "Mon, 30 Jan 2023 05:24:31 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "844" ], + "Content-Length": [ "1194" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/preparedLinker\",\"name\":\"preparedLinker\",\"type\":\"microsoft.servicelinker/linkers\",\"properties\":{\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/xichen-postgresql/databases/testdb\",\"resourceProperties\":{\"connectAsKubernetesCsiDriver\":false,\"type\":\"KeyVault\"},\"type\":\"AzureResource\"},\"authInfo\":{\"name\":\"xichen\",\"secretInfo\":{\"value\":null,\"secretType\":\"rawValue\"},\"authType\":\"secret\"},\"clientType\":\"dotnet\",\"scope\":\"simple-hello-world-container\",\"vNetSolution\":null,\"secretStore\":null}}" + "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/preparedLinker\",\"name\":\"preparedLinker\",\"type\":\"microsoft.servicelinker/linkers\",\"systemData\":{\"createdBy\":\"xiaofanzhou@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-01-30T03:37:04.9479159Z\",\"lastModifiedBy\":\"xiaofanzhou@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-30T03:37:04.9479159Z\"},\"properties\":{\"publicNetworkSolution\":null,\"configurationInfo\":{\"customizedKeys\":{},\"additionalConfigurations\":null,\"deleteOrUpdateBehavior\":null,\"action\":null},\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppConfiguration/configurationStores/servicelinker-app-configuration\",\"resourceProperties\":null,\"type\":\"AzureResource\"},\"authInfo\":{\"roles\":[],\"userName\":null,\"authType\":\"systemAssignedIdentity\",\"deleteOrUpdateBehavior\":null},\"clientType\":\"none\",\"scope\":\"simple-hello-world-container\",\"vNetSolution\":null,\"secretStore\":null}}", + "isContentBase64": false } }, - "Update-AzServiceLinkerForContainerApp+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/preparedLinker?api-version=2022-05-01+2": { + "Update-AzServiceLinkerForContainerApp+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/preparedLinker?api-version=2022-11-01-preview+2": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/preparedLinker?api-version=2022-05-01", - "Content": "{\n \"properties\": {\n \"targetService\": {\n \"type\": \"AzureResource\",\n \"id\": \"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/xichen-postgresql/databases/testdb\",\n \"resourceProperties\": {\n \"type\": \"KeyVault\",\n \"connectAsKubernetesCsiDriver\": false\n }\n },\n \"authInfo\": {\n \"authType\": \"secret\",\n \"name\": \"xichen\",\n \"secretInfo\": {\n \"secretType\": \"rawValue\"\n }\n },\n \"clientType\": \"dotnet\",\n \"scope\": \"simple-hello-world-container\"\n }\n}", + "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/preparedLinker?api-version=2022-11-01-preview", + "Content": "{\n \"properties\": {\n \"targetService\": {\n \"type\": \"AzureResource\",\n \"id\": \"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppConfiguration/configurationStores/servicelinker-app-configuration\",\n \"resourceProperties\": {\n \"type\": \"KeyVault\"\n }\n },\n \"authInfo\": {\n \"authType\": \"systemAssignedIdentity\",\n \"roles\": [ ]\n },\n \"clientType\": \"dotnet\",\n \"scope\": \"simple-hello-world-container\"\n }\n}", + "isContentBase64": false, "Headers": { }, "ContentHeaders": { "Content-Type": [ "application/json" ], - "Content-Length": [ "602" ] + "Content-Length": [ "513" ] } }, "Response": { @@ -58,39 +60,41 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"3a00ca6d-0000-0100-0000-627613f60000\"" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1194" ], + "ETag": [ "\"ea0050d3-0000-0100-0000-63d754900000\"" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1195" ], "x-ms-providerhub-traffic": [ "True" ], - "mise-correlation-id": [ "9a5bfa54-7f63-4f4a-b5a4-2e5955269906" ], + "mise-correlation-id": [ "dbc8fd62-16be-43c2-84c8-6bfbe10b7856" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/83dbd15f-56de-44eb-9a32-1b498c1a46d4*324E836E610ADA5227F1AB5B6997832CF633F8C4C7175BF9A042B2B8312F6A7C?api-version=2022-05-01" ], - "x-ms-request-id": [ "83dbd15f-56de-44eb-9a32-1b498c1a46d4" ], - "x-ms-correlation-request-id": [ "44adfbf8-34fb-4c7a-bbe8-359a3cd0f9cd" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T063846Z:44adfbf8-34fb-4c7a-bbe8-359a3cd0f9cd" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/afaca9c1-6cc2-44bd-a91a-810a3211fa67*324E836E610ADA5227F1AB5B6997832CF633F8C4C7175BF9A042B2B8312F6A7C?api-version=2021-01-01-privatepreview" ], + "x-ms-request-id": [ "afaca9c1-6cc2-44bd-a91a-810a3211fa67" ], + "x-ms-correlation-request-id": [ "d9b0ce23-1025-47e3-bb95-1a4b09e10fa1" ], + "x-ms-routing-request-id": [ "KOREASOUTH:20230130T052432Z:d9b0ce23-1025-47e3-bb95-1a4b09e10fa1" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:38:46 GMT" ] + "Date": [ "Mon, 30 Jan 2023 05:24:32 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1085" ], + "Content-Length": [ "1154" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/preparedLinker\",\"name\":\"preparedLinker\",\"type\":\"microsoft.servicelinker/linkers\",\"systemData\":{\"createdBy\":\"xiaofanzhou@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2022-05-06T13:09:51.8780205Z\",\"lastModifiedBy\":\"xiaofanzhou@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2022-05-07T06:38:46.0406216Z\"},\"properties\":{\"provisioningState\":\"Accepted\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/xichen-postgresql/databases/testdb\",\"resourceProperties\":{\"connectAsKubernetesCsiDriver\":false,\"type\":\"KeyVault\"},\"type\":\"AzureResource\"},\"authInfo\":{\"name\":\"xichen\",\"secretInfo\":{\"value\":null,\"secretType\":\"rawValue\"},\"authType\":\"secret\"},\"vNetSolution\":null,\"clientType\":\"dotnet\",\"secretStore\":null,\"scope\":\"simple-hello-world-container\"}}" + "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/preparedLinker\",\"name\":\"preparedLinker\",\"type\":\"microsoft.servicelinker/linkers\",\"systemData\":{\"createdBy\":\"xiaofanzhou@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-01-30T03:37:04.9479159Z\",\"lastModifiedBy\":\"xiaofanzhou@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-30T05:24:32.2335746Z\"},\"properties\":{\"provisioningState\":\"Accepted\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppConfiguration/configurationStores/servicelinker-app-configuration\",\"resourceProperties\":{\"connectAsKubernetesCsiDriver\":false,\"type\":\"KeyVault\"},\"type\":\"AzureResource\"},\"authInfo\":{\"roles\":[],\"userName\":null,\"authType\":\"systemAssignedIdentity\",\"deleteOrUpdateBehavior\":null},\"vNetSolution\":null,\"clientType\":\"dotnet\",\"secretStore\":null,\"scope\":\"simple-hello-world-container\",\"publicNetworkSolution\":null,\"configurationInfo\":null}}", + "isContentBase64": false } }, - "Update-AzServiceLinkerForContainerApp+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/83dbd15f-56de-44eb-9a32-1b498c1a46d4*324E836E610ADA5227F1AB5B6997832CF633F8C4C7175BF9A042B2B8312F6A7C?api-version=2022-05-01+3": { + "Update-AzServiceLinkerForContainerApp+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/afaca9c1-6cc2-44bd-a91a-810a3211fa67*324E836E610ADA5227F1AB5B6997832CF633F8C4C7175BF9A042B2B8312F6A7C?api-version=2021-01-01-privatepreview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/83dbd15f-56de-44eb-9a32-1b498c1a46d4*324E836E610ADA5227F1AB5B6997832CF633F8C4C7175BF9A042B2B8312F6A7C?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/afaca9c1-6cc2-44bd-a91a-810a3211fa67*324E836E610ADA5227F1AB5B6997832CF633F8C4C7175BF9A042B2B8312F6A7C?api-version=2021-01-01-privatepreview", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "76" ], - "x-ms-client-request-id": [ "c6aefded-f04e-4e29-b6c0-73c00e41e8a4" ], + "x-ms-unique-id": [ "62" ], + "x-ms-client-request-id": [ "6881ecf5-61af-454c-ab37-51d52dc0b04c" ], "CommandName": [ "Az.ServiceLinker.internal\\New-AzServiceLinker" ], "FullCommandName": [ "New-AzServiceLinker_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceLinker/0.1.0" ] }, "ContentHeaders": { } @@ -100,36 +104,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"03003713-0000-0100-0000-627614090000\"" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11961" ], - "x-ms-request-id": [ "7bf7ab5a-a89d-4e92-947c-e520085a5329" ], - "x-ms-correlation-request-id": [ "5526344f-0c82-4821-8d33-4f61d040bc96" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T063917Z:5526344f-0c82-4821-8d33-4f61d040bc96" ], + "ETag": [ "\"b2042f9e-0000-0100-0000-63d754a10000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11959" ], + "x-ms-request-id": [ "8ec609e4-9f28-474a-a818-9781b46a7b9c" ], + "x-ms-correlation-request-id": [ "0b14585e-4a61-42f6-b69b-4b536009591e" ], + "x-ms-routing-request-id": [ "KOREASOUTH:20230130T052503Z:0b14585e-4a61-42f6-b69b-4b536009591e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:39:16 GMT" ] + "Date": [ "Mon, 30 Jan 2023 05:25:03 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "698" ], + "Content-Length": [ "710" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/83dbd15f-56de-44eb-9a32-1b498c1a46d4*324E836E610ADA5227F1AB5B6997832CF633F8C4C7175BF9A042B2B8312F6A7C\",\"name\":\"83dbd15f-56de-44eb-9a32-1b498c1a46d4*324E836E610ADA5227F1AB5B6997832CF633F8C4C7175BF9A042B2B8312F6A7C\",\"resourceId\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/preparedLinker\",\"status\":\"Succeeded\",\"startTime\":\"2022-05-07T06:38:46.4558922Z\",\"endTime\":\"2022-05-07T06:39:05.3486485Z\",\"properties\":{}}" + "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/afaca9c1-6cc2-44bd-a91a-810a3211fa67*324E836E610ADA5227F1AB5B6997832CF633F8C4C7175BF9A042B2B8312F6A7C\",\"name\":\"afaca9c1-6cc2-44bd-a91a-810a3211fa67*324E836E610ADA5227F1AB5B6997832CF633F8C4C7175BF9A042B2B8312F6A7C\",\"resourceId\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/preparedLinker\",\"status\":\"Succeeded\",\"startTime\":\"2023-01-30T05:24:32.5972677Z\",\"endTime\":\"2023-01-30T05:24:49.5913178Z\",\"properties\":{\"Message\":\"\"}}", + "isContentBase64": false } }, - "Update-AzServiceLinkerForContainerApp+[NoContext]+UpdateExpanded+$GET+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/preparedLinker?api-version=2022-05-01+4": { + "Update-AzServiceLinkerForContainerApp+[NoContext]+UpdateExpanded+$GET+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/preparedLinker?api-version=2022-11-01-preview+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/preparedLinker?api-version=2022-05-01", + "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/preparedLinker?api-version=2022-11-01-preview", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "77" ], - "x-ms-client-request-id": [ "c6aefded-f04e-4e29-b6c0-73c00e41e8a4" ], + "x-ms-unique-id": [ "63" ], + "x-ms-client-request-id": [ "6881ecf5-61af-454c-ab37-51d52dc0b04c" ], "CommandName": [ "Az.ServiceLinker.internal\\New-AzServiceLinker" ], "FullCommandName": [ "New-AzServiceLinker_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceLinker/0.1.0" ] }, "ContentHeaders": { } @@ -139,24 +145,24 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"3a00fc6d-0000-0100-0000-627614090000\"" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11960" ], + "ETag": [ "\"ea0077d3-0000-0100-0000-63d754a10000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11958" ], "x-ms-providerhub-traffic": [ "True" ], - "mise-correlation-id": [ "a3cfee08-2831-43a0-a6c2-a683d591fcf2" ], + "mise-correlation-id": [ "4c8dda53-14ff-45f1-8367-053a92b4b5f5" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "d19cfd28-06df-4100-b921-72e57af16795" ], - "x-ms-correlation-request-id": [ "38716d37-ffc5-4435-85da-cc4a7f8391b1" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T063917Z:38716d37-ffc5-4435-85da-cc4a7f8391b1" ], + "x-ms-request-id": [ "bd5d8c8d-5306-4384-b58e-1b5d149c859c" ], + "x-ms-correlation-request-id": [ "47b338fb-1cc1-4fe3-bd74-4ad5133268f1" ], + "x-ms-routing-request-id": [ "KOREASOUTH:20230130T052503Z:47b338fb-1cc1-4fe3-bd74-4ad5133268f1" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:39:17 GMT" ] + "Date": [ "Mon, 30 Jan 2023 05:25:03 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "844" ], + "Content-Length": [ "1155" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/preparedLinker\",\"name\":\"preparedLinker\",\"type\":\"microsoft.servicelinker/linkers\",\"properties\":{\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/xichen-postgresql/databases/testdb\",\"resourceProperties\":{\"connectAsKubernetesCsiDriver\":false,\"type\":\"KeyVault\"},\"type\":\"AzureResource\"},\"authInfo\":{\"name\":\"xichen\",\"secretInfo\":{\"value\":null,\"secretType\":\"rawValue\"},\"authType\":\"secret\"},\"clientType\":\"dotnet\",\"scope\":\"simple-hello-world-container\",\"vNetSolution\":null,\"secretStore\":null}}" + "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-containerapp/providers/Microsoft.ServiceLinker/linkers/preparedLinker\",\"name\":\"preparedLinker\",\"type\":\"microsoft.servicelinker/linkers\",\"systemData\":{\"createdBy\":\"xiaofanzhou@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-01-30T03:37:04.9479159Z\",\"lastModifiedBy\":\"xiaofanzhou@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-30T05:24:32.2335746Z\"},\"properties\":{\"publicNetworkSolution\":null,\"configurationInfo\":null,\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppConfiguration/configurationStores/servicelinker-app-configuration\",\"resourceProperties\":{\"connectAsKubernetesCsiDriver\":false,\"type\":\"KeyVault\"},\"type\":\"AzureResource\"},\"authInfo\":{\"roles\":[],\"userName\":null,\"authType\":\"systemAssignedIdentity\",\"deleteOrUpdateBehavior\":null},\"clientType\":\"dotnet\",\"scope\":\"simple-hello-world-container\",\"vNetSolution\":null,\"secretStore\":null}}", + "isContentBase64": false } } } \ No newline at end of file diff --git a/src/ServiceLinker/test/Update-AzServiceLinkerForSpringCloud.Recording.json b/src/ServiceLinker/test/Update-AzServiceLinkerForSpringCloud.Recording.json index f0d6e2b17d55..13a102fdd1d4 100644 --- a/src/ServiceLinker/test/Update-AzServiceLinkerForSpringCloud.Recording.json +++ b/src/ServiceLinker/test/Update-AzServiceLinkerForSpringCloud.Recording.json @@ -1,16 +1,17 @@ { - "Update-AzServiceLinkerForSpringCloud+[NoContext]+UpdateExpanded+$GET+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers/preparedLinker?api-version=2022-05-01+1": { + "Update-AzServiceLinkerForSpringCloud+[NoContext]+UpdateExpanded+$GET+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers/preparedLinker?api-version=2022-11-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers/preparedLinker?api-version=2022-05-01", + "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers/preparedLinker?api-version=2022-11-01-preview", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "78" ], - "x-ms-client-request-id": [ "87767031-dd39-4170-8bed-0c66ccb1d30a" ], + "x-ms-unique-id": [ "64" ], + "x-ms-client-request-id": [ "d68e7c18-6998-4c84-af87-ed68badfe8f0" ], "CommandName": [ "Az.ServiceLinker.internal\\Get-AzServiceLinker" ], "FullCommandName": [ "Get-AzServiceLinker_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceLinker/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -21,31 +22,32 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"3a003b6e-0000-0100-0000-627614220000\"" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11946" ], + "ETag": [ "\"3a007e77-0000-0100-0000-627617f00000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11957" ], "x-ms-providerhub-traffic": [ "True" ], - "mise-correlation-id": [ "efcaa39d-6962-4865-a9ef-5b51857d6e3f" ], + "mise-correlation-id": [ "f162fe44-0998-4f2d-9839-2508c6d9be3a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "51a40c2d-45cd-4fa9-ac57-1f4ff1077373" ], - "x-ms-correlation-request-id": [ "1a24f40d-a545-4312-96a5-de77fbc34bb5" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T065539Z:1a24f40d-a545-4312-96a5-de77fbc34bb5" ], + "x-ms-request-id": [ "144378a3-0ad7-4321-bb24-14dc399c4bc3" ], + "x-ms-correlation-request-id": [ "f9960e30-97af-401e-a8e5-7af5d4df7764" ], + "x-ms-routing-request-id": [ "KOREASOUTH:20230130T052512Z:f9960e30-97af-401e-a8e5-7af5d4df7764" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:55:38 GMT" ] + "Date": [ "Mon, 30 Jan 2023 05:25:12 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "866" ], + "Content-Length": [ "1162" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers/preparedLinker\",\"name\":\"preparedLinker\",\"type\":\"microsoft.servicelinker/linkers\",\"properties\":{\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/servicelinker-postgresql/databases/pollsdb\",\"resourceProperties\":{\"connectAsKubernetesCsiDriver\":false,\"type\":\"KeyVault\"},\"type\":\"AzureResource\"},\"authInfo\":{\"name\":\"servicelinker\",\"secretInfo\":{\"value\":null,\"secretType\":\"rawValue\"},\"authType\":\"secret\"},\"clientType\":\"dotnet\",\"scope\":null,\"vNetSolution\":null,\"secretStore\":null}}" + "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers/preparedLinker\",\"name\":\"preparedLinker\",\"type\":\"microsoft.servicelinker/linkers\",\"systemData\":{\"createdBy\":\"xiaofanzhou@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2022-05-06T06:50:44.4314626Z\",\"lastModifiedBy\":\"xiaofanzhou@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2022-05-07T06:55:39.5016761Z\"},\"properties\":{\"publicNetworkSolution\":null,\"configurationInfo\":null,\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/servicelinker-postgresql/databases/pollsdb\",\"resourceProperties\":{\"connectAsKubernetesCsiDriver\":false,\"type\":\"KeyVault\"},\"type\":\"AzureResource\"},\"authInfo\":{\"name\":\"servicelinker\",\"secretInfo\":{\"value\":null,\"secretType\":\"rawValue\"},\"authType\":\"secret\"},\"clientType\":\"dotnet\",\"scope\":null,\"vNetSolution\":null,\"secretStore\":null}}", + "isContentBase64": false } }, - "Update-AzServiceLinkerForSpringCloud+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers/preparedLinker?api-version=2022-05-01+2": { + "Update-AzServiceLinkerForSpringCloud+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers/preparedLinker?api-version=2022-11-01-preview+2": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers/preparedLinker?api-version=2022-05-01", + "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers/preparedLinker?api-version=2022-11-01-preview", "Content": "{\n \"properties\": {\n \"targetService\": {\n \"type\": \"AzureResource\",\n \"id\": \"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/servicelinker-postgresql/databases/pollsdb\",\n \"resourceProperties\": {\n \"type\": \"KeyVault\",\n \"connectAsKubernetesCsiDriver\": false\n }\n },\n \"authInfo\": {\n \"authType\": \"secret\",\n \"name\": \"servicelinker\",\n \"secretInfo\": {\n \"secretType\": \"rawValue\"\n }\n },\n \"clientType\": \"dotnet\"\n }\n}", + "isContentBase64": false, "Headers": { }, "ContentHeaders": { @@ -58,39 +60,41 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"3a007477-0000-0100-0000-627617ec0000\"" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1191" ], + "ETag": [ "\"ea00a9d3-0000-0100-0000-63d754ba0000\"" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1194" ], "x-ms-providerhub-traffic": [ "True" ], - "mise-correlation-id": [ "2213c240-bd0e-4772-a9ed-7f3ac2756fbd" ], + "mise-correlation-id": [ "c40a428a-a825-494a-bd5c-0b4d3ba091d1" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/855e3128-dbe7-41e6-9d51-e3143260bca8*29FC1D772AA9DB7AB96D203D76DC8999C4D402C87FA6F24B9C0330A7029A41F6?api-version=2022-05-01" ], - "x-ms-request-id": [ "855e3128-dbe7-41e6-9d51-e3143260bca8" ], - "x-ms-correlation-request-id": [ "f8a0dda6-c319-4315-9e42-2e16a92bcc10" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T065540Z:f8a0dda6-c319-4315-9e42-2e16a92bcc10" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/c65d8703-8369-4f33-addf-828f94c4af44*29FC1D772AA9DB7AB96D203D76DC8999C4D402C87FA6F24B9C0330A7029A41F6?api-version=2021-01-01-privatepreview" ], + "x-ms-request-id": [ "c65d8703-8369-4f33-addf-828f94c4af44" ], + "x-ms-correlation-request-id": [ "70e1ebf7-a1cf-4798-82ce-42e638f25ff6" ], + "x-ms-routing-request-id": [ "KOREASOUTH:20230130T052514Z:70e1ebf7-a1cf-4798-82ce-42e638f25ff6" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:55:39 GMT" ] + "Date": [ "Mon, 30 Jan 2023 05:25:14 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1107" ], + "Content-Length": [ "1148" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers/preparedLinker\",\"name\":\"preparedLinker\",\"type\":\"microsoft.servicelinker/linkers\",\"systemData\":{\"createdBy\":\"xiaofanzhou@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2022-05-06T06:50:44.4314626Z\",\"lastModifiedBy\":\"xiaofanzhou@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2022-05-07T06:55:39.5016761Z\"},\"properties\":{\"provisioningState\":\"Accepted\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/servicelinker-postgresql/databases/pollsdb\",\"resourceProperties\":{\"connectAsKubernetesCsiDriver\":false,\"type\":\"KeyVault\"},\"type\":\"AzureResource\"},\"authInfo\":{\"name\":\"servicelinker\",\"secretInfo\":{\"value\":null,\"secretType\":\"rawValue\"},\"authType\":\"secret\"},\"vNetSolution\":null,\"clientType\":\"dotnet\",\"secretStore\":null,\"scope\":null}}" + "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers/preparedLinker\",\"name\":\"preparedLinker\",\"type\":\"microsoft.servicelinker/linkers\",\"systemData\":{\"createdBy\":\"xiaofanzhou@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2022-05-06T06:50:44.4314626Z\",\"lastModifiedBy\":\"xiaofanzhou@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-30T05:25:13.5779094Z\"},\"properties\":{\"provisioningState\":\"Accepted\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/servicelinker-postgresql/databases/pollsdb\",\"resourceProperties\":{\"connectAsKubernetesCsiDriver\":false,\"type\":\"KeyVault\"},\"type\":\"AzureResource\"},\"authInfo\":{\"name\":\"servicelinker\",\"secretInfo\":{\"secretType\":\"rawValue\"},\"authType\":\"secret\"},\"vNetSolution\":null,\"clientType\":\"dotnet\",\"secretStore\":null,\"scope\":null,\"publicNetworkSolution\":null,\"configurationInfo\":null}}", + "isContentBase64": false } }, - "Update-AzServiceLinkerForSpringCloud+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/855e3128-dbe7-41e6-9d51-e3143260bca8*29FC1D772AA9DB7AB96D203D76DC8999C4D402C87FA6F24B9C0330A7029A41F6?api-version=2022-05-01+3": { + "Update-AzServiceLinkerForSpringCloud+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/c65d8703-8369-4f33-addf-828f94c4af44*29FC1D772AA9DB7AB96D203D76DC8999C4D402C87FA6F24B9C0330A7029A41F6?api-version=2021-01-01-privatepreview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/855e3128-dbe7-41e6-9d51-e3143260bca8*29FC1D772AA9DB7AB96D203D76DC8999C4D402C87FA6F24B9C0330A7029A41F6?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/c65d8703-8369-4f33-addf-828f94c4af44*29FC1D772AA9DB7AB96D203D76DC8999C4D402C87FA6F24B9C0330A7029A41F6?api-version=2021-01-01-privatepreview", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "80" ], - "x-ms-client-request-id": [ "142ff109-e489-4843-97a9-c3f0e78f6e43" ], + "x-ms-unique-id": [ "66" ], + "x-ms-client-request-id": [ "2d80c69a-4542-4784-b207-4ecad214e4cd" ], "CommandName": [ "Az.ServiceLinker.internal\\New-AzServiceLinker" ], "FullCommandName": [ "New-AzServiceLinker_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceLinker/0.1.0" ] }, "ContentHeaders": { } @@ -100,36 +104,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"03004314-0000-0100-0000-627617f00000\"" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11945" ], - "x-ms-request-id": [ "820895e4-0eda-4db5-9e27-b7ff9f6fce63" ], - "x-ms-correlation-request-id": [ "b4eb1777-eca0-4575-93b7-0dd49f785b11" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T065610Z:b4eb1777-eca0-4575-93b7-0dd49f785b11" ], + "ETag": [ "\"b204399e-0000-0100-0000-63d754c00000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11956" ], + "x-ms-request-id": [ "4efe12f8-b6bd-4695-b11c-9f4f1a766fe1" ], + "x-ms-correlation-request-id": [ "f3433a33-e0de-4bbd-a059-d354f56b97e6" ], + "x-ms-routing-request-id": [ "KOREASOUTH:20230130T052545Z:f3433a33-e0de-4bbd-a059-d354f56b97e6" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:56:10 GMT" ] + "Date": [ "Mon, 30 Jan 2023 05:25:44 GMT" ] }, "ContentHeaders": { "Content-Length": [ "868" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/855e3128-dbe7-41e6-9d51-e3143260bca8*29FC1D772AA9DB7AB96D203D76DC8999C4D402C87FA6F24B9C0330A7029A41F6\",\"name\":\"855e3128-dbe7-41e6-9d51-e3143260bca8*29FC1D772AA9DB7AB96D203D76DC8999C4D402C87FA6F24B9C0330A7029A41F6\",\"resourceId\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers/preparedLinker\",\"status\":\"Succeeded\",\"startTime\":\"2022-05-07T06:55:39.9238693Z\",\"endTime\":\"2022-05-07T06:55:44.4553212Z\",\"properties\":{\"message\":\"Deny public network access is set to yes. Please confirm you are using private endpoint connection to access target resource.\"}}" + "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/c65d8703-8369-4f33-addf-828f94c4af44*29FC1D772AA9DB7AB96D203D76DC8999C4D402C87FA6F24B9C0330A7029A41F6\",\"name\":\"c65d8703-8369-4f33-addf-828f94c4af44*29FC1D772AA9DB7AB96D203D76DC8999C4D402C87FA6F24B9C0330A7029A41F6\",\"resourceId\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers/preparedLinker\",\"status\":\"Succeeded\",\"startTime\":\"2023-01-30T05:25:14.1168795Z\",\"endTime\":\"2023-01-30T05:25:20.0796427Z\",\"properties\":{\"Message\":\"Deny public network access is set to yes. Please confirm you are using private endpoint connection to access target resource.\"}}", + "isContentBase64": false } }, - "Update-AzServiceLinkerForSpringCloud+[NoContext]+UpdateExpanded+$GET+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers/preparedLinker?api-version=2022-05-01+4": { + "Update-AzServiceLinkerForSpringCloud+[NoContext]+UpdateExpanded+$GET+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers/preparedLinker?api-version=2022-11-01-preview+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers/preparedLinker?api-version=2022-05-01", + "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers/preparedLinker?api-version=2022-11-01-preview", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "81" ], - "x-ms-client-request-id": [ "142ff109-e489-4843-97a9-c3f0e78f6e43" ], + "x-ms-unique-id": [ "67" ], + "x-ms-client-request-id": [ "2d80c69a-4542-4784-b207-4ecad214e4cd" ], "CommandName": [ "Az.ServiceLinker.internal\\New-AzServiceLinker" ], "FullCommandName": [ "New-AzServiceLinker_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceLinker/0.1.0" ] }, "ContentHeaders": { } @@ -139,24 +145,24 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"3a007e77-0000-0100-0000-627617f00000\"" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11944" ], + "ETag": [ "\"ea00bdd3-0000-0100-0000-63d754c00000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11955" ], "x-ms-providerhub-traffic": [ "True" ], - "mise-correlation-id": [ "0f90bbf7-8efc-4e0f-bbed-bab3a9e84dea" ], + "mise-correlation-id": [ "72744145-fc42-4591-a8f2-4cf4dc7ce84a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "796d056d-42b8-4af9-bb29-22a2d84518d5" ], - "x-ms-correlation-request-id": [ "733a4b9a-00a1-4c09-9741-03e4078aa248" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T065611Z:733a4b9a-00a1-4c09-9741-03e4078aa248" ], + "x-ms-request-id": [ "2847b5c1-7921-43b6-87eb-948997250e2f" ], + "x-ms-correlation-request-id": [ "7c1c3568-347f-4dc3-bd2d-b7744dc247f6" ], + "x-ms-routing-request-id": [ "KOREASOUTH:20230130T052545Z:7c1c3568-347f-4dc3-bd2d-b7744dc247f6" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:56:11 GMT" ] + "Date": [ "Mon, 30 Jan 2023 05:25:45 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "866" ], + "Content-Length": [ "1149" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers/preparedLinker\",\"name\":\"preparedLinker\",\"type\":\"microsoft.servicelinker/linkers\",\"properties\":{\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/servicelinker-postgresql/databases/pollsdb\",\"resourceProperties\":{\"connectAsKubernetesCsiDriver\":false,\"type\":\"KeyVault\"},\"type\":\"AzureResource\"},\"authInfo\":{\"name\":\"servicelinker\",\"secretInfo\":{\"value\":null,\"secretType\":\"rawValue\"},\"authType\":\"secret\"},\"clientType\":\"dotnet\",\"scope\":null,\"vNetSolution\":null,\"secretStore\":null}}" + "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.AppPlatform/Spring/servicelinker-springcloud/apps/e2etest/deployments/default/providers/Microsoft.ServiceLinker/linkers/preparedLinker\",\"name\":\"preparedLinker\",\"type\":\"microsoft.servicelinker/linkers\",\"systemData\":{\"createdBy\":\"xiaofanzhou@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2022-05-06T06:50:44.4314626Z\",\"lastModifiedBy\":\"xiaofanzhou@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-30T05:25:13.5779094Z\"},\"properties\":{\"publicNetworkSolution\":null,\"configurationInfo\":null,\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/servicelinker-postgresql/databases/pollsdb\",\"resourceProperties\":{\"connectAsKubernetesCsiDriver\":false,\"type\":\"KeyVault\"},\"type\":\"AzureResource\"},\"authInfo\":{\"name\":\"servicelinker\",\"secretInfo\":{\"secretType\":\"rawValue\"},\"authType\":\"secret\"},\"clientType\":\"dotnet\",\"scope\":null,\"vNetSolution\":null,\"secretStore\":null}}", + "isContentBase64": false } } } \ No newline at end of file diff --git a/src/ServiceLinker/test/Update-AzServiceLinkerForWebApp.Recording.json b/src/ServiceLinker/test/Update-AzServiceLinkerForWebApp.Recording.json index 93f928b881fc..8f7a5f1b9ddd 100644 --- a/src/ServiceLinker/test/Update-AzServiceLinkerForWebApp.Recording.json +++ b/src/ServiceLinker/test/Update-AzServiceLinkerForWebApp.Recording.json @@ -1,16 +1,17 @@ { - "Update-AzServiceLinkerForWebApp+[NoContext]+UpdateExpanded+$GET+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-test-app/providers/Microsoft.ServiceLinker/linkers/preparedLinker?api-version=2022-05-01+1": { + "Update-AzServiceLinkerForWebApp+[NoContext]+UpdateExpanded+$GET+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-test-app/providers/Microsoft.ServiceLinker/linkers/preparedLinker?api-version=2022-11-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-test-app/providers/Microsoft.ServiceLinker/linkers/preparedLinker?api-version=2022-05-01", + "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-test-app/providers/Microsoft.ServiceLinker/linkers/preparedLinker?api-version=2022-11-01-preview", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "82" ], - "x-ms-client-request-id": [ "4fbf8912-a6e6-4900-a83e-518a617b34d2" ], + "x-ms-unique-id": [ "68" ], + "x-ms-client-request-id": [ "10606511-0d36-4655-906b-deefdd9d7902" ], "CommandName": [ "Az.ServiceLinker.internal\\Get-AzServiceLinker" ], "FullCommandName": [ "Get-AzServiceLinker_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceLinker/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -21,36 +22,37 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"3a00dd6e-0000-0100-0000-6276145e0000\"" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11943" ], + "ETag": [ "\"e9004883-0000-0100-0000-63d6e60d0000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11954" ], "x-ms-providerhub-traffic": [ "True" ], - "mise-correlation-id": [ "086751a3-8da2-4592-a6ce-2cb6570946c4" ], + "mise-correlation-id": [ "9e4e8c6a-78ef-4977-8f31-9663a4ee9d8d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "16cb8d84-83fb-43f7-a019-4bf8bbc08833" ], - "x-ms-correlation-request-id": [ "30484da9-a3fa-4631-bf4e-a8180918747f" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T065619Z:30484da9-a3fa-4631-bf4e-a8180918747f" ], + "x-ms-request-id": [ "686208c7-b758-4e7f-89d2-56c07e785144" ], + "x-ms-correlation-request-id": [ "f79f7532-4c93-4862-8b19-3e521086189a" ], + "x-ms-routing-request-id": [ "KOREASOUTH:20230130T052555Z:f79f7532-4c93-4862-8b19-3e521086189a" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:56:18 GMT" ] + "Date": [ "Mon, 30 Jan 2023 05:25:54 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "814" ], + "Content-Length": [ "1056" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-test-app/providers/Microsoft.ServiceLinker/linkers/preparedLinker\",\"name\":\"preparedLinker\",\"type\":\"microsoft.servicelinker/linkers\",\"properties\":{\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/servicelinker-postgresql/databases/pollsdb\",\"resourceProperties\":{\"connectAsKubernetesCsiDriver\":false,\"type\":\"KeyVault\"},\"type\":\"AzureResource\"},\"authInfo\":{\"name\":\"xichen\",\"secretInfo\":{\"value\":null,\"secretType\":\"rawValue\"},\"authType\":\"secret\"},\"clientType\":\"dotnet\",\"scope\":null,\"vNetSolution\":null,\"secretStore\":null}}" + "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-test-app/providers/Microsoft.ServiceLinker/linkers/preparedLinker\",\"name\":\"preparedLinker\",\"type\":\"microsoft.servicelinker/linkers\",\"systemData\":{\"createdBy\":\"naji@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2021-10-20T02:10:21.6542229Z\",\"lastModifiedBy\":\"c4288165-6698-45ba-98a5-48ea7791fed3\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-01-29T21:33:01.9216341Z\"},\"properties\":{\"publicNetworkSolution\":null,\"configurationInfo\":null,\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/servicelinker-postgresql/databases/pollsdb\",\"resourceProperties\":null,\"type\":\"AzureResource\"},\"authInfo\":{\"name\":\"xichen\",\"secretInfo\":{\"secretType\":\"rawValue\"},\"authType\":\"secret\"},\"clientType\":\"django\",\"scope\":null,\"vNetSolution\":null,\"secretStore\":null}}", + "isContentBase64": false } }, - "Update-AzServiceLinkerForWebApp+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-test-app/providers/Microsoft.ServiceLinker/linkers/preparedLinker?api-version=2022-05-01+2": { + "Update-AzServiceLinkerForWebApp+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-test-app/providers/Microsoft.ServiceLinker/linkers/preparedLinker?api-version=2022-11-01-preview+2": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-test-app/providers/Microsoft.ServiceLinker/linkers/preparedLinker?api-version=2022-05-01", - "Content": "{\n \"properties\": {\n \"targetService\": {\n \"type\": \"AzureResource\",\n \"id\": \"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/servicelinker-postgresql/databases/pollsdb\",\n \"resourceProperties\": {\n \"type\": \"KeyVault\",\n \"connectAsKubernetesCsiDriver\": false\n }\n },\n \"authInfo\": {\n \"authType\": \"secret\",\n \"name\": \"xichen\",\n \"secretInfo\": {\n \"secretType\": \"rawValue\"\n }\n },\n \"clientType\": \"dotnet\"\n }\n}", + "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-test-app/providers/Microsoft.ServiceLinker/linkers/preparedLinker?api-version=2022-11-01-preview", + "Content": "{\n \"properties\": {\n \"targetService\": {\n \"type\": \"AzureResource\",\n \"id\": \"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/servicelinker-postgresql/databases/pollsdb\",\n \"resourceProperties\": {\n \"type\": \"KeyVault\"\n }\n },\n \"authInfo\": {\n \"authType\": \"secret\",\n \"name\": \"xichen\",\n \"secretInfo\": {\n \"secretType\": \"rawValue\"\n }\n },\n \"clientType\": \"dotnet\"\n }\n}", + "isContentBase64": false, "Headers": { }, "ContentHeaders": { "Content-Type": [ "application/json" ], - "Content-Length": [ "565" ] + "Content-Length": [ "518" ] } }, "Response": { @@ -58,39 +60,41 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"3a00ce77-0000-0100-0000-627618130000\"" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1190" ], + "ETag": [ "\"ea0021d4-0000-0100-0000-63d754e40000\"" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1193" ], "x-ms-providerhub-traffic": [ "True" ], - "mise-correlation-id": [ "8bbd4353-4cae-4258-b9ea-e85e71eeb0dc" ], + "mise-correlation-id": [ "0c602934-d38b-4749-a967-56676114f065" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/572d6a2b-1b12-4e7f-bd53-4f1d294a9df5*B991DCAFEBFF5C3A79EC9E2FD2F2ADE7A54C04792D45A2389E902AD7087E3F40?api-version=2022-05-01" ], - "x-ms-request-id": [ "572d6a2b-1b12-4e7f-bd53-4f1d294a9df5" ], - "x-ms-correlation-request-id": [ "d3c0b20a-b96d-4c71-8775-081b2e6e339c" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T065619Z:d3c0b20a-b96d-4c71-8775-081b2e6e339c" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/88c038fc-303d-4c74-ab1a-b6c5f4a23892*B991DCAFEBFF5C3A79EC9E2FD2F2ADE7A54C04792D45A2389E902AD7087E3F40?api-version=2021-01-01-privatepreview" ], + "x-ms-request-id": [ "88c038fc-303d-4c74-ab1a-b6c5f4a23892" ], + "x-ms-correlation-request-id": [ "ca1fd80d-c33f-4516-ba86-bc9255151d1b" ], + "x-ms-routing-request-id": [ "KOREASOUTH:20230130T052556Z:ca1fd80d-c33f-4516-ba86-bc9255151d1b" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:56:19 GMT" ] + "Date": [ "Mon, 30 Jan 2023 05:25:55 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1048" ], + "Content-Length": [ "1089" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-test-app/providers/Microsoft.ServiceLinker/linkers/preparedLinker\",\"name\":\"preparedLinker\",\"type\":\"microsoft.servicelinker/linkers\",\"systemData\":{\"createdBy\":\"naji@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2021-10-20T02:10:21.6542229Z\",\"lastModifiedBy\":\"xiaofanzhou@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2022-05-07T06:56:19.1743389Z\"},\"properties\":{\"provisioningState\":\"Accepted\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/servicelinker-postgresql/databases/pollsdb\",\"resourceProperties\":{\"connectAsKubernetesCsiDriver\":false,\"type\":\"KeyVault\"},\"type\":\"AzureResource\"},\"authInfo\":{\"name\":\"xichen\",\"secretInfo\":{\"value\":null,\"secretType\":\"rawValue\"},\"authType\":\"secret\"},\"vNetSolution\":null,\"clientType\":\"dotnet\",\"secretStore\":null,\"scope\":null}}" + "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-test-app/providers/Microsoft.ServiceLinker/linkers/preparedLinker\",\"name\":\"preparedLinker\",\"type\":\"microsoft.servicelinker/linkers\",\"systemData\":{\"createdBy\":\"naji@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2021-10-20T02:10:21.6542229Z\",\"lastModifiedBy\":\"xiaofanzhou@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-30T05:25:55.6334752Z\"},\"properties\":{\"provisioningState\":\"Accepted\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/servicelinker-postgresql/databases/pollsdb\",\"resourceProperties\":{\"connectAsKubernetesCsiDriver\":false,\"type\":\"KeyVault\"},\"type\":\"AzureResource\"},\"authInfo\":{\"name\":\"xichen\",\"secretInfo\":{\"secretType\":\"rawValue\"},\"authType\":\"secret\"},\"vNetSolution\":null,\"clientType\":\"dotnet\",\"secretStore\":null,\"scope\":null,\"publicNetworkSolution\":null,\"configurationInfo\":null}}", + "isContentBase64": false } }, - "Update-AzServiceLinkerForWebApp+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/572d6a2b-1b12-4e7f-bd53-4f1d294a9df5*B991DCAFEBFF5C3A79EC9E2FD2F2ADE7A54C04792D45A2389E902AD7087E3F40?api-version=2022-05-01+3": { + "Update-AzServiceLinkerForWebApp+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/88c038fc-303d-4c74-ab1a-b6c5f4a23892*B991DCAFEBFF5C3A79EC9E2FD2F2ADE7A54C04792D45A2389E902AD7087E3F40?api-version=2021-01-01-privatepreview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/572d6a2b-1b12-4e7f-bd53-4f1d294a9df5*B991DCAFEBFF5C3A79EC9E2FD2F2ADE7A54C04792D45A2389E902AD7087E3F40?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/88c038fc-303d-4c74-ab1a-b6c5f4a23892*B991DCAFEBFF5C3A79EC9E2FD2F2ADE7A54C04792D45A2389E902AD7087E3F40?api-version=2021-01-01-privatepreview", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "84" ], - "x-ms-client-request-id": [ "ec9b1206-d10d-4013-a607-1f9a0f0e53ed" ], + "x-ms-unique-id": [ "70" ], + "x-ms-client-request-id": [ "d5d5f765-7b37-491a-b2c7-cc7f9bcec2b5" ], "CommandName": [ "Az.ServiceLinker.internal\\New-AzServiceLinker" ], "FullCommandName": [ "New-AzServiceLinker_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceLinker/0.1.0" ] }, "ContentHeaders": { } @@ -100,36 +104,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"0605db5d-0000-0200-0000-627618170000\"" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11942" ], - "x-ms-request-id": [ "1c0851b1-63b6-4cd6-a5a4-637c8f2dbb18" ], - "x-ms-correlation-request-id": [ "e096aecf-820b-47bc-a6f2-7e459c7258ff" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T065650Z:e096aecf-820b-47bc-a6f2-7e459c7258ff" ], + "ETag": [ "\"b204519e-0000-0100-0000-63d754ea0000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11953" ], + "x-ms-routing-request-id": [ "KOREASOUTH:20230130T052626Z:69c64abe-a3ff-4043-af54-b3a90c87550d" ], + "x-ms-request-id": [ "6f0736cf-ab71-436f-8cc8-ebd15c54e4c5" ], + "x-ms-correlation-request-id": [ "69c64abe-a3ff-4043-af54-b3a90c87550d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:56:49 GMT" ] + "Date": [ "Mon, 30 Jan 2023 05:26:26 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "823" ], + "Content-Length": [ "822" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/572d6a2b-1b12-4e7f-bd53-4f1d294a9df5*B991DCAFEBFF5C3A79EC9E2FD2F2ADE7A54C04792D45A2389E902AD7087E3F40\",\"name\":\"572d6a2b-1b12-4e7f-bd53-4f1d294a9df5*B991DCAFEBFF5C3A79EC9E2FD2F2ADE7A54C04792D45A2389E902AD7087E3F40\",\"resourceId\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-test-app/providers/Microsoft.ServiceLinker/linkers/preparedLinker\",\"status\":\"Succeeded\",\"startTime\":\"2022-05-07T06:56:19.5963955Z\",\"endTime\":\"2022-05-07T06:56:23.5839631Z\",\"properties\":{\"message\":\"Deny public network access is set to yes. Please confirm you are using private endpoint connection to access target resource.\"}}" + "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/providers/Microsoft.ServiceLinker/locations/EASTUS/operationStatuses/88c038fc-303d-4c74-ab1a-b6c5f4a23892*B991DCAFEBFF5C3A79EC9E2FD2F2ADE7A54C04792D45A2389E902AD7087E3F40\",\"name\":\"88c038fc-303d-4c74-ab1a-b6c5f4a23892*B991DCAFEBFF5C3A79EC9E2FD2F2ADE7A54C04792D45A2389E902AD7087E3F40\",\"resourceId\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-test-app/providers/Microsoft.ServiceLinker/linkers/preparedLinker\",\"status\":\"Succeeded\",\"startTime\":\"2023-01-30T05:25:55.980302Z\",\"endTime\":\"2023-01-30T05:26:02.7968237Z\",\"properties\":{\"Message\":\"Deny public network access is set to yes. Please confirm you are using private endpoint connection to access target resource.\"}}", + "isContentBase64": false } }, - "Update-AzServiceLinkerForWebApp+[NoContext]+UpdateExpanded+$GET+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-test-app/providers/Microsoft.ServiceLinker/linkers/preparedLinker?api-version=2022-05-01+4": { + "Update-AzServiceLinkerForWebApp+[NoContext]+UpdateExpanded+$GET+https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-test-app/providers/Microsoft.ServiceLinker/linkers/preparedLinker?api-version=2022-11-01-preview+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-test-app/providers/Microsoft.ServiceLinker/linkers/preparedLinker?api-version=2022-05-01", + "RequestUri": "https://management.azure.com//subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-test-app/providers/Microsoft.ServiceLinker/linkers/preparedLinker?api-version=2022-11-01-preview", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "85" ], - "x-ms-client-request-id": [ "ec9b1206-d10d-4013-a607-1f9a0f0e53ed" ], + "x-ms-unique-id": [ "71" ], + "x-ms-client-request-id": [ "d5d5f765-7b37-491a-b2c7-cc7f9bcec2b5" ], "CommandName": [ "Az.ServiceLinker.internal\\New-AzServiceLinker" ], "FullCommandName": [ "New-AzServiceLinker_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/Az4.0.0-preview" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.ServiceLinker/0.1.0" ] }, "ContentHeaders": { } @@ -139,24 +145,24 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"f5000ff6-0000-0200-0000-627618170000\"" ], - "Vary": [ "Accept-Encoding" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11941" ], + "ETag": [ "\"ea0035d4-0000-0100-0000-63d754ea0000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11952" ], "x-ms-providerhub-traffic": [ "True" ], - "mise-correlation-id": [ "26a7c2ab-53d9-452d-9ea6-76d908e8762c" ], + "mise-correlation-id": [ "a8df9924-99a6-466c-8830-d4f14f2a6137" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "83c2a959-9fd4-43e7-9554-9475dbd90853" ], - "x-ms-correlation-request-id": [ "c9a2e6d0-ec82-4528-b4c4-6c7c72821090" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20220507T065651Z:c9a2e6d0-ec82-4528-b4c4-6c7c72821090" ], + "x-ms-request-id": [ "c2a770b1-3261-41ab-82fa-369dd3e681fe" ], + "x-ms-correlation-request-id": [ "c434d5d8-c106-4a3f-a599-ec53091193bf" ], + "x-ms-routing-request-id": [ "KOREASOUTH:20230130T052627Z:c434d5d8-c106-4a3f-a599-ec53091193bf" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Sat, 07 May 2022 06:56:50 GMT" ] + "Date": [ "Mon, 30 Jan 2023 05:26:27 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "814" ], + "Content-Length": [ "1090" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-test-app/providers/Microsoft.ServiceLinker/linkers/preparedLinker\",\"name\":\"preparedLinker\",\"type\":\"microsoft.servicelinker/linkers\",\"properties\":{\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/servicelinker-postgresql/databases/pollsdb\",\"resourceProperties\":{\"connectAsKubernetesCsiDriver\":false,\"type\":\"KeyVault\"},\"type\":\"AzureResource\"},\"authInfo\":{\"name\":\"xichen\",\"secretInfo\":{\"value\":null,\"secretType\":\"rawValue\"},\"authType\":\"secret\"},\"clientType\":\"dotnet\",\"scope\":null,\"vNetSolution\":null,\"secretStore\":null}}" + "Content": "{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Web/sites/servicelinker-test-app/providers/Microsoft.ServiceLinker/linkers/preparedLinker\",\"name\":\"preparedLinker\",\"type\":\"microsoft.servicelinker/linkers\",\"systemData\":{\"createdBy\":\"naji@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2021-10-20T02:10:21.6542229Z\",\"lastModifiedBy\":\"xiaofanzhou@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-30T05:25:55.6334752Z\"},\"properties\":{\"publicNetworkSolution\":null,\"configurationInfo\":null,\"provisioningState\":\"Succeeded\",\"targetService\":{\"id\":\"/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/servicelinker-postgresql/databases/pollsdb\",\"resourceProperties\":{\"connectAsKubernetesCsiDriver\":false,\"type\":\"KeyVault\"},\"type\":\"AzureResource\"},\"authInfo\":{\"name\":\"xichen\",\"secretInfo\":{\"secretType\":\"rawValue\"},\"authType\":\"secret\"},\"clientType\":\"dotnet\",\"scope\":null,\"vNetSolution\":null,\"secretStore\":null}}", + "isContentBase64": false } } } \ No newline at end of file diff --git a/src/ServiceLinker/test/env.json b/src/ServiceLinker/test/env.json index a1dba2e61119..629037233cd9 100644 --- a/src/ServiceLinker/test/env.json +++ b/src/ServiceLinker/test/env.json @@ -1,21 +1,22 @@ { + "secretUri": "https://servicelinker-kv-ref.vault.azure.net/secrets/azure-mysql-host-28449/cc5d8095a54f4755b342f4e7884b5c84", "postgresUsername": "servicelinker", - "Tenant": "72f988bf-86f1-41af-91ab-2d7cd011db47", - "confluentEndpoint": "pkc-xxxx.eastus.azure.confluent.cloud:9092", "container": "simple-hello-world-container", - "clientType": "dotnet", - "spring": "servicelinker-springcloud", - "newLinker": "ps_linker", - "keyvaultId": "/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.KeyVault/vaults/servicelinker-test-kv", - "postgresqId": "/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/servicelinker-postgresql/databases/postgres", - "SubscriptionId": "937bc588-a144-4083-8612-5f9ffbbddb14", - "containerApp": "servicelinker-containerapp", - "resourceGroup": "servicelinker-test-linux-group", - "schemaRegistry": "https://psrc-xxxx.westus2.azure.confluent.cloud", "preparedWebApp": "servicelinker-test-app", + "schemaRegistry": "https://psrc-xxxx.westus2.azure.confluent.cloud", "preparedLinker": "preparedLinker", - "secretUri": "https://servicelinker-kv-ref.vault.azure.net/secrets/azure-mysql-host-28449/cc5d8095a54f4755b342f4e7884b5c84", - "storageId": "/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Storage/storageAccounts/servicelinkerteststorage/blobServices/default", "springApp": "e2etest", - "webapp": "servicelinker-powershell" + "SubscriptionId": "937bc588-a144-4083-8612-5f9ffbbddb14", + "spring": "servicelinker-springcloud", + "Tenant": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "resourceGroup": "servicelinker-test-linux-group", + "containerApp": "servicelinker-containerapp", + "clientType": "dotnet", + "newLinker": "ps_linker", + "confluentEndpoint": "pkc-xxxx.eastus.azure.confluent.cloud:9092", + "location": "eastus", + "webapp": "servicelinker-powershell", + "storageId": "/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.Storage/storageAccounts/servicelinkerteststorage/blobServices/default", + "keyvaultId": "/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.KeyVault/vaults/servicelinker-test-kv", + "postgresqId": "/subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/servicelinker-postgresql/databases/postgres" } diff --git a/src/ServiceLinker/test/utils.ps1 b/src/ServiceLinker/test/utils.ps1 index 2145986b40f1..befa0571b6ab 100644 --- a/src/ServiceLinker/test/utils.ps1 +++ b/src/ServiceLinker/test/utils.ps1 @@ -22,6 +22,7 @@ function setupEnv() { $resourceGroup = "servicelinker-test-linux-group" $env.resourceGroup = $resourceGroup + $env.location = "eastus" $env.newLinker = "ps_linker" $env.clientType = "dotnet" From df4007dfe6654c7e30626ee06d7debba5848088b Mon Sep 17 00:00:00 2001 From: Beisi Zhou Date: Fri, 17 Feb 2023 11:37:23 +0800 Subject: [PATCH 2/2] Update Changelog.md --- src/ServiceLinker/Changelog.md | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ServiceLinker/Changelog.md b/src/ServiceLinker/Changelog.md index 4dd5905609f3..933e568d9876 100644 --- a/src/ServiceLinker/Changelog.md +++ b/src/ServiceLinker/Changelog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Updated API version to 2022-11-01-preview ## Version 0.1.0 * First preview release for module Az.ServiceLinker