From 70c14a0150daef8a1900768d3c3cf1d5d0ffc682 Mon Sep 17 00:00:00 2001 From: Jinpei Li Date: Fri, 18 Jul 2025 13:47:23 +0800 Subject: [PATCH] Az.ConfidentialLedger update generation tool version: autorest.powershell v3->v4 --- .../Properties/AssemblyInfo.cs | 26 ++++++ .../ConfidentialLedger.Autorest/README.md | 37 ++++---- .../custom/Update-AzConfidentialLedger.ps1 | 51 +++++++---- ...lLedgerAADBasedSecurityPrincipalObject.ps1 | 13 +-- ...LedgerCertBasedSecurityPrincipalObject.ps1 | 13 +-- .../docs/Az.ConfidentialLedger.md | 4 +- .../docs/Get-AzConfidentialLedger.md | 3 +- .../docs/New-AzConfidentialLedger.md | 71 ++++++++++++--- ...alLedgerAADBasedSecurityPrincipalObject.md | 10 +-- ...lLedgerCertBasedSecurityPrincipalObject.md | 8 +- .../docs/Remove-AzConfidentialLedger.md | 1 - ...st-AzConfidentialLedgerNameAvailability.md | 49 +++++++++- .../docs/Update-AzConfidentialLedger.md | 78 ++++++++++++---- .../generate-info.json | 2 +- .../resources/README.md | 11 +++ src/ConfidentialLedger/ConfidentialLedger.sln | 89 +++++++++++++++++-- .../Az.ConfidentialLedger.psd1 | 14 +-- .../help/Az.ConfidentialLedger.md | 2 +- .../help/Get-AzConfidentialLedger.md | 3 +- .../help/New-AzConfidentialLedger.md | 79 ++++++++++++---- ...alLedgerAADBasedSecurityPrincipalObject.md | 16 ++-- ...lLedgerCertBasedSecurityPrincipalObject.md | 8 +- .../help/Remove-AzConfidentialLedger.md | 1 - ...st-AzConfidentialLedgerNameAvailability.md | 49 +++++++++- .../help/Update-AzConfidentialLedger.md | 82 ++++++++++++----- 25 files changed, 554 insertions(+), 166 deletions(-) create mode 100644 src/ConfidentialLedger/ConfidentialLedger.Autorest/Properties/AssemblyInfo.cs create mode 100644 src/ConfidentialLedger/ConfidentialLedger.Autorest/resources/README.md diff --git a/src/ConfidentialLedger/ConfidentialLedger.Autorest/Properties/AssemblyInfo.cs b/src/ConfidentialLedger/ConfidentialLedger.Autorest/Properties/AssemblyInfo.cs new file mode 100644 index 000000000000..06dd98731317 --- /dev/null +++ b/src/ConfidentialLedger/ConfidentialLedger.Autorest/Properties/AssemblyInfo.cs @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the Apache License, Version 2.0 (the ""License""); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an ""AS IS"" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +// is regenerated. + +using System; +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")] +[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] +[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] +[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - ConfidentialLedger")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("1.1.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.1.0")] +[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] +[assembly: System.CLSCompliantAttribute(false)] diff --git a/src/ConfidentialLedger/ConfidentialLedger.Autorest/README.md b/src/ConfidentialLedger/ConfidentialLedger.Autorest/README.md index 8180dbf65d3f..b623127988c0 100644 --- a/src/ConfidentialLedger/ConfidentialLedger.Autorest/README.md +++ b/src/ConfidentialLedger/ConfidentialLedger.Autorest/README.md @@ -41,34 +41,39 @@ module-version: 1.0.0 title: ConfidentialLedger subject-prefix: $(service-name) -# If there are post APIs for some kinds of actions in the RP, you may need to -# uncomment following line to support viaIdentity for these post APIs -# identity-correction-for-post: true - -# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option -use-extension: - "@autorest/powershell": "3.x" - directive: + - from: swagger-document + where: $.definitions.ResourceLocation.properties.location + transform: >- + return { + "description": "The Azure location where the Confidential Ledger is running.", + "type": "string", + "x-ms-mutability": [ + "create", + "read", + "update" + ] + } # Following is two common directive which are normally required in all the RPs # 1. Remove the unexpanded parameter set # 2. For New-* cmdlets, ViaIdentity is not required, so CreateViaIdentityExpanded is removed as well - where: - variant: ^Create$|^CreateViaIdentity$|^CreateViaIdentityExpanded$|^Update$|^UpdateViaIdentity$ + variant: ^(Create|Update|Check)(?!.*?(Expanded|JsonFilePath|JsonString)) + remove: true + - where: + variant: ^CreateViaIdentity$|^CreateViaIdentityExpanded$|^CheckViaIdentityExpanded$ remove: true # Remove the set-* cmdlet - where: verb: Set remove: true - - where: # Only generate one version of CheckNameAvailability - verb: Test - variant: ^Check$|^CheckViaIdentity$|^CheckViaIdentityExpanded$ - remove: true - where: # Hide auto-generated Update since we implement a custom one requiring the 'Location' parameter. verb: Update Subject: Ledger hide: true - - model-cmdlet: # Generate objects for common models. - - AADBasedSecurityPrincipal - - CertBasedSecurityPrincipal + - model-cmdlet: + - model-name: AADBasedSecurityPrincipal + cmdlet-name: New-AzConfidentialLedgerAADBasedSecurityPrincipalObject + - model-name: CertBasedSecurityPrincipal + cmdlet-name: New-AzConfidentialLedgerCertBasedSecurityPrincipalObject ``` diff --git a/src/ConfidentialLedger/ConfidentialLedger.Autorest/custom/Update-AzConfidentialLedger.ps1 b/src/ConfidentialLedger/ConfidentialLedger.Autorest/custom/Update-AzConfidentialLedger.ps1 index 82d324a1a46f..325a159c894f 100644 --- a/src/ConfidentialLedger/ConfidentialLedger.Autorest/custom/Update-AzConfidentialLedger.ps1 +++ b/src/ConfidentialLedger/ConfidentialLedger.Autorest/custom/Update-AzConfidentialLedger.ps1 @@ -73,10 +73,12 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.confidentialledger/update-azconfidentialledger #> function Update-AzConfidentialLedger { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Models.Api20220513.IConfidentialLedger])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Models.IConfidentialLedger])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)] + [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)] [Alias('LedgerName')] [Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Category('Path')] [System.String] @@ -84,12 +86,16 @@ param( ${Name}, [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)] + [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Category('Path')] [System.String] # The name of the resource group. ${ResourceGroupName}, [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaJsonFilePath')] + [Parameter(ParameterSetName='UpdateViaJsonString')] [Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] @@ -102,51 +108,66 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Models.IConfidentialLedgerIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, - [Parameter()] + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Models.Api20220513.IAadBasedSecurityPrincipal[]] + [Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Models.IAadBasedSecurityPrincipal[]] # Array of all AAD based Security Principals. - # To construct, see NOTES section for AADBASEDSECURITYPRINCIPAL properties and create a hash table. ${AadBasedSecurityPrincipal}, - [Parameter()] + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Models.Api20220513.ICertBasedSecurityPrincipal[]] + [Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Models.ICertBasedSecurityPrincipal[]] # Array of all cert based Security Principals. - # To construct, see NOTES section for CERTBASEDSECURITYPRINCIPAL properties and create a hash table. ${CertBasedSecurityPrincipal}, - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Support.LedgerType])] + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.PSArgumentCompleterAttribute("Unknown", "Public", "Private")] [Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Support.LedgerType] + [System.String] # Type of Confidential Ledger ${LedgerType}, - [Parameter(Mandatory)] + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Category('Body')] [System.String] # The Azure location where the Confidential Ledger is running. ${Location}, - [Parameter()] + [Parameter(ParameterSetName='UpdateExpanded')] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Models.Api20220513.ITags]))] + [Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Models.ITags]))] [System.Collections.Hashtable] # Additional tags for Confidential Ledger ${Tag}, + [Parameter(ParameterSetName='UpdateViaJsonFilePath', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Category('Body')] + [System.String] + # Path of Json file supplied to the Update operation + ${JsonFilePath}, + + [Parameter(ParameterSetName='UpdateViaJsonString', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Category('Body')] + [System.String] + # Json string supplied to the Update operation + ${JsonString}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] diff --git a/src/ConfidentialLedger/ConfidentialLedger.Autorest/custom/autogen-model-cmdlets/New-AzConfidentialLedgerAADBasedSecurityPrincipalObject.ps1 b/src/ConfidentialLedger/ConfidentialLedger.Autorest/custom/autogen-model-cmdlets/New-AzConfidentialLedgerAADBasedSecurityPrincipalObject.ps1 index 214bf4cdbb7e..ca5a9c92c83a 100644 --- a/src/ConfidentialLedger/ConfidentialLedger.Autorest/custom/autogen-model-cmdlets/New-AzConfidentialLedgerAADBasedSecurityPrincipalObject.ps1 +++ b/src/ConfidentialLedger/ConfidentialLedger.Autorest/custom/autogen-model-cmdlets/New-AzConfidentialLedgerAADBasedSecurityPrincipalObject.ps1 @@ -21,18 +21,19 @@ Create an in-memory object for AADBasedSecurityPrincipal. Create an in-memory object for AADBasedSecurityPrincipal. .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Models.Api20220513.AADBasedSecurityPrincipal +Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Models.AADBasedSecurityPrincipal .Link -https://learn.microsoft.com/powershell/module/Az.ConfidentialLedger/new-AzConfidentialLedgerAADBasedSecurityPrincipalObject +https://learn.microsoft.com/powershell/module/Az.ConfidentialLedger/new-azconfidentialledgeraadbasedsecurityprincipalobject #> function New-AzConfidentialLedgerAADBasedSecurityPrincipalObject { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Models.Api20220513.AADBasedSecurityPrincipal')] + [Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.ModelCmdletAttribute()] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Models.AADBasedSecurityPrincipal')] [CmdletBinding(PositionalBinding=$false)] Param( [Parameter(HelpMessage="LedgerRole associated with the Security Principal of Ledger.")] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Support.LedgerRoleName])] - [Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Support.LedgerRoleName] + [Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.PSArgumentCompleterAttribute("Reader", "Contributor", "Administrator")] + [string] $LedgerRoleName, [Parameter(HelpMessage="UUID/GUID based Principal Id of the Security Principal.")] [string] @@ -43,7 +44,7 @@ function New-AzConfidentialLedgerAADBasedSecurityPrincipalObject { ) process { - $Object = [Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Models.Api20220513.AADBasedSecurityPrincipal]::New() + $Object = [Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Models.AADBasedSecurityPrincipal]::New() if ($PSBoundParameters.ContainsKey('LedgerRoleName')) { $Object.LedgerRoleName = $LedgerRoleName diff --git a/src/ConfidentialLedger/ConfidentialLedger.Autorest/custom/autogen-model-cmdlets/New-AzConfidentialLedgerCertBasedSecurityPrincipalObject.ps1 b/src/ConfidentialLedger/ConfidentialLedger.Autorest/custom/autogen-model-cmdlets/New-AzConfidentialLedgerCertBasedSecurityPrincipalObject.ps1 index 9e3a0d613074..2b8638fa9e39 100644 --- a/src/ConfidentialLedger/ConfidentialLedger.Autorest/custom/autogen-model-cmdlets/New-AzConfidentialLedgerCertBasedSecurityPrincipalObject.ps1 +++ b/src/ConfidentialLedger/ConfidentialLedger.Autorest/custom/autogen-model-cmdlets/New-AzConfidentialLedgerCertBasedSecurityPrincipalObject.ps1 @@ -21,12 +21,13 @@ Create an in-memory object for CertBasedSecurityPrincipal. Create an in-memory object for CertBasedSecurityPrincipal. .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Models.Api20220513.CertBasedSecurityPrincipal +Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Models.CertBasedSecurityPrincipal .Link -https://learn.microsoft.com/powershell/module/Az.ConfidentialLedger/new-AzConfidentialLedgerCertBasedSecurityPrincipalObject +https://learn.microsoft.com/powershell/module/Az.ConfidentialLedger/new-azconfidentialledgercertbasedsecurityprincipalobject #> function New-AzConfidentialLedgerCertBasedSecurityPrincipalObject { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Models.Api20220513.CertBasedSecurityPrincipal')] + [Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.ModelCmdletAttribute()] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Models.CertBasedSecurityPrincipal')] [CmdletBinding(PositionalBinding=$false)] Param( @@ -34,13 +35,13 @@ function New-AzConfidentialLedgerCertBasedSecurityPrincipalObject { [string] $Cert, [Parameter(HelpMessage="LedgerRole associated with the Security Principal of Ledger.")] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Support.LedgerRoleName])] - [Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Support.LedgerRoleName] + [Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.PSArgumentCompleterAttribute("Reader", "Contributor", "Administrator")] + [string] $LedgerRoleName ) process { - $Object = [Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Models.Api20220513.CertBasedSecurityPrincipal]::New() + $Object = [Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Models.CertBasedSecurityPrincipal]::New() if ($PSBoundParameters.ContainsKey('Cert')) { $Object.Cert = $Cert diff --git a/src/ConfidentialLedger/ConfidentialLedger.Autorest/docs/Az.ConfidentialLedger.md b/src/ConfidentialLedger/ConfidentialLedger.Autorest/docs/Az.ConfidentialLedger.md index cff88f970ca4..1e4c428e673f 100644 --- a/src/ConfidentialLedger/ConfidentialLedger.Autorest/docs/Az.ConfidentialLedger.md +++ b/src/ConfidentialLedger/ConfidentialLedger.Autorest/docs/Az.ConfidentialLedger.md @@ -1,6 +1,6 @@ --- Module Name: Az.ConfidentialLedger -Module Guid: c7eaa9c1-72c4-4251-9e7d-bf9b8e8fa71e +Module Guid: 1789b444-0978-48ab-a110-b9ece68b5ec8 Download Help Link: https://learn.microsoft.com/powershell/module/az.confidentialledger Help Version: 1.0.0.0 Locale: en-US @@ -15,7 +15,7 @@ Microsoft Azure PowerShell: ConfidentialLedger cmdlets Retrieves the properties of a Confidential Ledger. ### [New-AzConfidentialLedger](New-AzConfidentialLedger.md) -Creates a Confidential Ledger with the specified ledger parameters. +Create a Confidential Ledger with the specified ledger parameters. ### [New-AzConfidentialLedgerAADBasedSecurityPrincipalObject](New-AzConfidentialLedgerAADBasedSecurityPrincipalObject.md) Create an in-memory object for AADBasedSecurityPrincipal. diff --git a/src/ConfidentialLedger/ConfidentialLedger.Autorest/docs/Get-AzConfidentialLedger.md b/src/ConfidentialLedger/ConfidentialLedger.Autorest/docs/Get-AzConfidentialLedger.md index 561245da7c38..41c81b2bb2a4 100644 --- a/src/ConfidentialLedger/ConfidentialLedger.Autorest/docs/Get-AzConfidentialLedger.md +++ b/src/ConfidentialLedger/ConfidentialLedger.Autorest/docs/Get-AzConfidentialLedger.md @@ -107,7 +107,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Models.IConfidentialLedgerIdentity @@ -177,7 +176,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Models.Api20220513.IConfidentialLedger +### Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Models.IConfidentialLedger ## NOTES diff --git a/src/ConfidentialLedger/ConfidentialLedger.Autorest/docs/New-AzConfidentialLedger.md b/src/ConfidentialLedger/ConfidentialLedger.Autorest/docs/New-AzConfidentialLedger.md index 10c916001eb9..39dcf39dd2c2 100644 --- a/src/ConfidentialLedger/ConfidentialLedger.Autorest/docs/New-AzConfidentialLedger.md +++ b/src/ConfidentialLedger/ConfidentialLedger.Autorest/docs/New-AzConfidentialLedger.md @@ -8,19 +8,34 @@ schema: 2.0.0 # New-AzConfidentialLedger ## SYNOPSIS -Creates a Confidential Ledger with the specified ledger parameters. +Create a Confidential Ledger with the specified ledger parameters. ## SYNTAX +### CreateExpanded (Default) ``` New-AzConfidentialLedger -Name -ResourceGroupName [-SubscriptionId ] [-AadBasedSecurityPrincipal ] - [-CertBasedSecurityPrincipal ] [-LedgerType ] [-Location ] + [-CertBasedSecurityPrincipal ] [-LedgerType ] [-Location ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` +### CreateViaJsonFilePath +``` +New-AzConfidentialLedger -Name -ResourceGroupName -JsonFilePath + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + +### CreateViaJsonString +``` +New-AzConfidentialLedger -Name -ResourceGroupName -JsonString + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + ## DESCRIPTION -Creates a Confidential Ledger with the specified ledger parameters. +Create a Confidential Ledger with the specified ledger parameters. ## EXAMPLES @@ -86,11 +101,10 @@ Creates a new Confidential Ledger using objects for `AadBasedSecurityPrincipal` ### -AadBasedSecurityPrincipal Array of all AAD based Security Principals. -To construct, see NOTES section for AADBASEDSECURITYPRINCIPAL properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Models.Api20220513.IAadBasedSecurityPrincipal[] -Parameter Sets: (All) +Type: Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Models.IAadBasedSecurityPrincipal[] +Parameter Sets: CreateExpanded Aliases: Required: False @@ -117,11 +131,10 @@ Accept wildcard characters: False ### -CertBasedSecurityPrincipal Array of all cert based Security Principals. -To construct, see NOTES section for CERTBASEDSECURITYPRINCIPAL properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Models.Api20220513.ICertBasedSecurityPrincipal[] -Parameter Sets: (All) +Type: Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Models.ICertBasedSecurityPrincipal[] +Parameter Sets: CreateExpanded Aliases: Required: False @@ -147,12 +160,42 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -JsonFilePath +Path of Json file supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -LedgerType Type of Confidential Ledger ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Support.LedgerType -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -167,7 +210,7 @@ The Azure location where the Confidential Ledger is running. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -244,7 +287,7 @@ Additional tags for Confidential Ledger ```yaml Type: System.Collections.Hashtable -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -292,7 +335,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Models.Api20220513.IConfidentialLedger +### Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Models.IConfidentialLedger ## NOTES diff --git a/src/ConfidentialLedger/ConfidentialLedger.Autorest/docs/New-AzConfidentialLedgerAADBasedSecurityPrincipalObject.md b/src/ConfidentialLedger/ConfidentialLedger.Autorest/docs/New-AzConfidentialLedgerAADBasedSecurityPrincipalObject.md index de9d768c623c..cf01315aa0c6 100644 --- a/src/ConfidentialLedger/ConfidentialLedger.Autorest/docs/New-AzConfidentialLedgerAADBasedSecurityPrincipalObject.md +++ b/src/ConfidentialLedger/ConfidentialLedger.Autorest/docs/New-AzConfidentialLedgerAADBasedSecurityPrincipalObject.md @@ -1,7 +1,7 @@ --- external help file: Module Name: Az.ConfidentialLedger -online version: https://learn.microsoft.com/powershell/module/Az.ConfidentialLedger/new-AzConfidentialLedgerAADBasedSecurityPrincipalObject +online version: https://learn.microsoft.com/powershell/module/Az.ConfidentialLedger/new-azconfidentialledgeraadbasedsecurityprincipalobject schema: 2.0.0 --- @@ -13,8 +13,8 @@ Create an in-memory object for AADBasedSecurityPrincipal. ## SYNTAX ``` -New-AzConfidentialLedgerAADBasedSecurityPrincipalObject [-LedgerRoleName ] - [-PrincipalId ] [-TenantId ] [] +New-AzConfidentialLedgerAADBasedSecurityPrincipalObject [-LedgerRoleName ] [-PrincipalId ] + [-TenantId ] [] ``` ## DESCRIPTION @@ -44,7 +44,7 @@ Creates an AadBasedSecurityPrincipalObject that may be used for `Az.Confidential LedgerRole associated with the Security Principal of Ledger. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Support.LedgerRoleName +Type: System.String Parameter Sets: (All) Aliases: @@ -92,7 +92,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Models.Api20220513.AadBasedSecurityPrincipal +### Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Models.AadBasedSecurityPrincipal ## NOTES diff --git a/src/ConfidentialLedger/ConfidentialLedger.Autorest/docs/New-AzConfidentialLedgerCertBasedSecurityPrincipalObject.md b/src/ConfidentialLedger/ConfidentialLedger.Autorest/docs/New-AzConfidentialLedgerCertBasedSecurityPrincipalObject.md index 188e03a18bea..9d7a19b88ca3 100644 --- a/src/ConfidentialLedger/ConfidentialLedger.Autorest/docs/New-AzConfidentialLedgerCertBasedSecurityPrincipalObject.md +++ b/src/ConfidentialLedger/ConfidentialLedger.Autorest/docs/New-AzConfidentialLedgerCertBasedSecurityPrincipalObject.md @@ -1,7 +1,7 @@ --- external help file: Module Name: Az.ConfidentialLedger -online version: https://learn.microsoft.com/powershell/module/Az.ConfidentialLedger/new-AzConfidentialLedgerCertBasedSecurityPrincipalObject +online version: https://learn.microsoft.com/powershell/module/Az.ConfidentialLedger/new-azconfidentialledgercertbasedsecurityprincipalobject schema: 2.0.0 --- @@ -13,7 +13,7 @@ Create an in-memory object for CertBasedSecurityPrincipal. ## SYNTAX ``` -New-AzConfidentialLedgerCertBasedSecurityPrincipalObject [-Cert ] [-LedgerRoleName ] +New-AzConfidentialLedgerCertBasedSecurityPrincipalObject [-Cert ] [-LedgerRoleName ] [] ``` @@ -58,7 +58,7 @@ Accept wildcard characters: False LedgerRole associated with the Security Principal of Ledger. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Support.LedgerRoleName +Type: System.String Parameter Sets: (All) Aliases: @@ -76,7 +76,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Models.Api20220513.CertBasedSecurityPrincipal +### Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Models.CertBasedSecurityPrincipal ## NOTES diff --git a/src/ConfidentialLedger/ConfidentialLedger.Autorest/docs/Remove-AzConfidentialLedger.md b/src/ConfidentialLedger/ConfidentialLedger.Autorest/docs/Remove-AzConfidentialLedger.md index 0aad84d00171..997e3ab2aac9 100644 --- a/src/ConfidentialLedger/ConfidentialLedger.Autorest/docs/Remove-AzConfidentialLedger.md +++ b/src/ConfidentialLedger/ConfidentialLedger.Autorest/docs/Remove-AzConfidentialLedger.md @@ -73,7 +73,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Models.IConfidentialLedgerIdentity diff --git a/src/ConfidentialLedger/ConfidentialLedger.Autorest/docs/Test-AzConfidentialLedgerNameAvailability.md b/src/ConfidentialLedger/ConfidentialLedger.Autorest/docs/Test-AzConfidentialLedgerNameAvailability.md index b7783ac5cd8f..51a166adad28 100644 --- a/src/ConfidentialLedger/ConfidentialLedger.Autorest/docs/Test-AzConfidentialLedgerNameAvailability.md +++ b/src/ConfidentialLedger/ConfidentialLedger.Autorest/docs/Test-AzConfidentialLedgerNameAvailability.md @@ -12,11 +12,24 @@ To check whether a resource name is available. ## SYNTAX +### CheckExpanded (Default) ``` Test-AzConfidentialLedgerNameAvailability [-SubscriptionId ] [-Name ] [-Type ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` +### CheckViaJsonFilePath +``` +Test-AzConfidentialLedgerNameAvailability -JsonFilePath [-SubscriptionId ] + [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### CheckViaJsonString +``` +Test-AzConfidentialLedgerNameAvailability -JsonString [-SubscriptionId ] + [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + ## DESCRIPTION To check whether a resource name is available. @@ -74,12 +87,42 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -JsonFilePath +Path of Json file supplied to the Check operation + +```yaml +Type: System.String +Parameter Sets: CheckViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Check operation + +```yaml +Type: System.String +Parameter Sets: CheckViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Name The name of the resource for which availability needs to be checked. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CheckExpanded Aliases: Required: False @@ -111,7 +154,7 @@ The resource type. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CheckExpanded Aliases: Required: False @@ -159,7 +202,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Models.Api20.ICheckNameAvailabilityResponse +### Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Models.ICheckNameAvailabilityResponse ## NOTES diff --git a/src/ConfidentialLedger/ConfidentialLedger.Autorest/docs/Update-AzConfidentialLedger.md b/src/ConfidentialLedger/ConfidentialLedger.Autorest/docs/Update-AzConfidentialLedger.md index ea48786f7ce0..8a4cd7bf5ba7 100644 --- a/src/ConfidentialLedger/ConfidentialLedger.Autorest/docs/Update-AzConfidentialLedger.md +++ b/src/ConfidentialLedger/ConfidentialLedger.Autorest/docs/Update-AzConfidentialLedger.md @@ -16,7 +16,7 @@ Updates properties of Confidential Ledger ``` Update-AzConfidentialLedger -Name -ResourceGroupName -Location [-SubscriptionId ] [-AadBasedSecurityPrincipal ] - [-CertBasedSecurityPrincipal ] [-LedgerType ] [-Tag ] + [-CertBasedSecurityPrincipal ] [-LedgerType ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` @@ -24,10 +24,24 @@ Update-AzConfidentialLedger -Name -ResourceGroupName -Location ``` Update-AzConfidentialLedger -InputObject -Location [-AadBasedSecurityPrincipal ] - [-CertBasedSecurityPrincipal ] [-LedgerType ] [-Tag ] + [-CertBasedSecurityPrincipal ] [-LedgerType ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` +### UpdateViaJsonFilePath +``` +Update-AzConfidentialLedger -Name -ResourceGroupName -JsonFilePath + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + +### UpdateViaJsonString +``` +Update-AzConfidentialLedger -Name -ResourceGroupName -JsonString + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + ## DESCRIPTION Updates properties of Confidential Ledger @@ -70,11 +84,10 @@ Updates metadata for an existing Confidential Ledger. ### -AadBasedSecurityPrincipal Array of all AAD based Security Principals. -To construct, see NOTES section for AADBASEDSECURITYPRINCIPAL properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Models.Api20220513.IAadBasedSecurityPrincipal[] -Parameter Sets: (All) +Type: Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Models.IAadBasedSecurityPrincipal[] +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -101,11 +114,10 @@ Accept wildcard characters: False ### -CertBasedSecurityPrincipal Array of all cert based Security Principals. -To construct, see NOTES section for CERTBASEDSECURITYPRINCIPAL properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Models.Api20220513.ICertBasedSecurityPrincipal[] -Parameter Sets: (All) +Type: Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Models.ICertBasedSecurityPrincipal[] +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -116,7 +128,8 @@ Accept wildcard characters: False ``` ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject @@ -132,7 +145,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Models.IConfidentialLedgerIdentity @@ -146,12 +158,42 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -JsonFilePath +Path of Json file supplied to the Update operation + +```yaml +Type: System.String +Parameter Sets: UpdateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Update operation + +```yaml +Type: System.String +Parameter Sets: UpdateViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -LedgerType Type of Confidential Ledger ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Support.LedgerType -Parameter Sets: (All) +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -166,7 +208,7 @@ The Azure location where the Confidential Ledger is running. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: True @@ -181,7 +223,7 @@ Name of the Confidential Ledger ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateExpanded, UpdateViaJsonFilePath, UpdateViaJsonString Aliases: LedgerName Required: True @@ -211,7 +253,7 @@ The name of the resource group. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateExpanded, UpdateViaJsonFilePath, UpdateViaJsonString Aliases: Required: True @@ -228,7 +270,7 @@ This is a GUID-formatted string (e.g. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateExpanded, UpdateViaJsonFilePath, UpdateViaJsonString Aliases: Required: False @@ -243,7 +285,7 @@ Additional tags for Confidential Ledger ```yaml Type: System.Collections.Hashtable -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -293,7 +335,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Models.Api20220513.IConfidentialLedger +### Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Models.IConfidentialLedger ## NOTES diff --git a/src/ConfidentialLedger/ConfidentialLedger.Autorest/generate-info.json b/src/ConfidentialLedger/ConfidentialLedger.Autorest/generate-info.json index a8dc12b55a79..6d5e87126320 100644 --- a/src/ConfidentialLedger/ConfidentialLedger.Autorest/generate-info.json +++ b/src/ConfidentialLedger/ConfidentialLedger.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "3b9ad9db-a65e-478f-a33d-c2d1b724f2ec" + "generate_Id": "d2906f98-227a-4fba-9ffa-05fb9016870a" } diff --git a/src/ConfidentialLedger/ConfidentialLedger.Autorest/resources/README.md b/src/ConfidentialLedger/ConfidentialLedger.Autorest/resources/README.md new file mode 100644 index 000000000000..937f07f8fec2 --- /dev/null +++ b/src/ConfidentialLedger/ConfidentialLedger.Autorest/resources/README.md @@ -0,0 +1,11 @@ +# Resources +This directory can contain any additional resources for module that are not required at runtime. This directory **does not** get packaged with the module. If you have assets for custom implementation, place them into the `..\custom` folder. + +## Info +- Modifiable: yes +- Generated: no +- Committed: yes +- Packaged: no + +## Purpose +Use this folder to put anything you want to keep around as part of the repository for the module, but is not something that is required for the module. For example, development files, packaged builds, or additional information. This is only intended to be used in repositories where the module's output directory is cleaned, but tangential resources for the module want to remain intact. \ No newline at end of file diff --git a/src/ConfidentialLedger/ConfidentialLedger.sln b/src/ConfidentialLedger/ConfidentialLedger.sln index c0463ba30524..f4190114d8b4 100644 --- a/src/ConfidentialLedger/ConfidentialLedger.sln +++ b/src/ConfidentialLedger/ConfidentialLedger.sln @@ -1,4 +1,4 @@ - + Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 VisualStudioVersion = 17.0.31903.59 @@ -19,49 +19,119 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accoun EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConfidentialLedger", "ConfidentialLedger\ConfidentialLedger.csproj", "{C76F12D6-516B-49D4-9D4E-F763928D7DF8}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.ConfidentialLedger", "..\..\generated\ConfidentialLedger\ConfidentialLedger.Autorest\Az.ConfidentialLedger.csproj", "{CBECCA1B-FCB6-49F3-B161-1EC246A96171}" +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ConfidentialLedger.Autorest", "ConfidentialLedger.Autorest", "{720F07CF-8CA5-309F-EE09-D051CD8579CA}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.ConfidentialLedger", "..\..\generated\ConfidentialLedger\ConfidentialLedger.Autorest\Az.ConfidentialLedger.csproj", "{E719E563-4F98-4B94-99CF-15901D46AD07}" 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 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE + Release|x64 = Release|x64 + Release|x86 = Release|x86 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {B50B3F66-2B0C-4AC9-9EE9-9F35AD3BC8A6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {B50B3F66-2B0C-4AC9-9EE9-9F35AD3BC8A6}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B50B3F66-2B0C-4AC9-9EE9-9F35AD3BC8A6}.Debug|x64.ActiveCfg = Debug|Any CPU + {B50B3F66-2B0C-4AC9-9EE9-9F35AD3BC8A6}.Debug|x64.Build.0 = Debug|Any CPU + {B50B3F66-2B0C-4AC9-9EE9-9F35AD3BC8A6}.Debug|x86.ActiveCfg = Debug|Any CPU + {B50B3F66-2B0C-4AC9-9EE9-9F35AD3BC8A6}.Debug|x86.Build.0 = Debug|Any CPU {B50B3F66-2B0C-4AC9-9EE9-9F35AD3BC8A6}.Release|Any CPU.ActiveCfg = Release|Any CPU {B50B3F66-2B0C-4AC9-9EE9-9F35AD3BC8A6}.Release|Any CPU.Build.0 = Release|Any CPU + {B50B3F66-2B0C-4AC9-9EE9-9F35AD3BC8A6}.Release|x64.ActiveCfg = Release|Any CPU + {B50B3F66-2B0C-4AC9-9EE9-9F35AD3BC8A6}.Release|x64.Build.0 = Release|Any CPU + {B50B3F66-2B0C-4AC9-9EE9-9F35AD3BC8A6}.Release|x86.ActiveCfg = Release|Any CPU + {B50B3F66-2B0C-4AC9-9EE9-9F35AD3BC8A6}.Release|x86.Build.0 = Release|Any CPU {60E55973-BAD2-43A2-B9FE-9C9DE5F39758}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {60E55973-BAD2-43A2-B9FE-9C9DE5F39758}.Debug|Any CPU.Build.0 = Debug|Any CPU + {60E55973-BAD2-43A2-B9FE-9C9DE5F39758}.Debug|x64.ActiveCfg = Debug|Any CPU + {60E55973-BAD2-43A2-B9FE-9C9DE5F39758}.Debug|x64.Build.0 = Debug|Any CPU + {60E55973-BAD2-43A2-B9FE-9C9DE5F39758}.Debug|x86.ActiveCfg = Debug|Any CPU + {60E55973-BAD2-43A2-B9FE-9C9DE5F39758}.Debug|x86.Build.0 = Debug|Any CPU {60E55973-BAD2-43A2-B9FE-9C9DE5F39758}.Release|Any CPU.ActiveCfg = Release|Any CPU {60E55973-BAD2-43A2-B9FE-9C9DE5F39758}.Release|Any CPU.Build.0 = Release|Any CPU + {60E55973-BAD2-43A2-B9FE-9C9DE5F39758}.Release|x64.ActiveCfg = Release|Any CPU + {60E55973-BAD2-43A2-B9FE-9C9DE5F39758}.Release|x64.Build.0 = Release|Any CPU + {60E55973-BAD2-43A2-B9FE-9C9DE5F39758}.Release|x86.ActiveCfg = Release|Any CPU + {60E55973-BAD2-43A2-B9FE-9C9DE5F39758}.Release|x86.Build.0 = Release|Any CPU {6CFCC33E-62C7-4FD6-A2C3-F716E3D63B02}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {6CFCC33E-62C7-4FD6-A2C3-F716E3D63B02}.Debug|Any CPU.Build.0 = Debug|Any CPU + {6CFCC33E-62C7-4FD6-A2C3-F716E3D63B02}.Debug|x64.ActiveCfg = Debug|Any CPU + {6CFCC33E-62C7-4FD6-A2C3-F716E3D63B02}.Debug|x64.Build.0 = Debug|Any CPU + {6CFCC33E-62C7-4FD6-A2C3-F716E3D63B02}.Debug|x86.ActiveCfg = Debug|Any CPU + {6CFCC33E-62C7-4FD6-A2C3-F716E3D63B02}.Debug|x86.Build.0 = Debug|Any CPU {6CFCC33E-62C7-4FD6-A2C3-F716E3D63B02}.Release|Any CPU.ActiveCfg = Release|Any CPU {6CFCC33E-62C7-4FD6-A2C3-F716E3D63B02}.Release|Any CPU.Build.0 = Release|Any CPU + {6CFCC33E-62C7-4FD6-A2C3-F716E3D63B02}.Release|x64.ActiveCfg = Release|Any CPU + {6CFCC33E-62C7-4FD6-A2C3-F716E3D63B02}.Release|x64.Build.0 = Release|Any CPU + {6CFCC33E-62C7-4FD6-A2C3-F716E3D63B02}.Release|x86.ActiveCfg = Release|Any CPU + {6CFCC33E-62C7-4FD6-A2C3-F716E3D63B02}.Release|x86.Build.0 = Release|Any CPU {E62F78DF-410E-43B6-830E-61421D32C592}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {E62F78DF-410E-43B6-830E-61421D32C592}.Debug|Any CPU.Build.0 = Debug|Any CPU + {E62F78DF-410E-43B6-830E-61421D32C592}.Debug|x64.ActiveCfg = Debug|Any CPU + {E62F78DF-410E-43B6-830E-61421D32C592}.Debug|x64.Build.0 = Debug|Any CPU + {E62F78DF-410E-43B6-830E-61421D32C592}.Debug|x86.ActiveCfg = Debug|Any CPU + {E62F78DF-410E-43B6-830E-61421D32C592}.Debug|x86.Build.0 = Debug|Any CPU {E62F78DF-410E-43B6-830E-61421D32C592}.Release|Any CPU.ActiveCfg = Release|Any CPU {E62F78DF-410E-43B6-830E-61421D32C592}.Release|Any CPU.Build.0 = Release|Any CPU + {E62F78DF-410E-43B6-830E-61421D32C592}.Release|x64.ActiveCfg = Release|Any CPU + {E62F78DF-410E-43B6-830E-61421D32C592}.Release|x64.Build.0 = Release|Any CPU + {E62F78DF-410E-43B6-830E-61421D32C592}.Release|x86.ActiveCfg = Release|Any CPU + {E62F78DF-410E-43B6-830E-61421D32C592}.Release|x86.Build.0 = Release|Any CPU {2F9D16D2-BB02-45BC-A2FC-3AFF002C7582}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {2F9D16D2-BB02-45BC-A2FC-3AFF002C7582}.Debug|Any CPU.Build.0 = Debug|Any CPU + {2F9D16D2-BB02-45BC-A2FC-3AFF002C7582}.Debug|x64.ActiveCfg = Debug|Any CPU + {2F9D16D2-BB02-45BC-A2FC-3AFF002C7582}.Debug|x64.Build.0 = Debug|Any CPU + {2F9D16D2-BB02-45BC-A2FC-3AFF002C7582}.Debug|x86.ActiveCfg = Debug|Any CPU + {2F9D16D2-BB02-45BC-A2FC-3AFF002C7582}.Debug|x86.Build.0 = Debug|Any CPU {2F9D16D2-BB02-45BC-A2FC-3AFF002C7582}.Release|Any CPU.ActiveCfg = Release|Any CPU {2F9D16D2-BB02-45BC-A2FC-3AFF002C7582}.Release|Any CPU.Build.0 = Release|Any CPU + {2F9D16D2-BB02-45BC-A2FC-3AFF002C7582}.Release|x64.ActiveCfg = Release|Any CPU + {2F9D16D2-BB02-45BC-A2FC-3AFF002C7582}.Release|x64.Build.0 = Release|Any CPU + {2F9D16D2-BB02-45BC-A2FC-3AFF002C7582}.Release|x86.ActiveCfg = Release|Any CPU + {2F9D16D2-BB02-45BC-A2FC-3AFF002C7582}.Release|x86.Build.0 = Release|Any CPU {CE053376-D517-48BF-ACF4-85C4B361FF78}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {CE053376-D517-48BF-ACF4-85C4B361FF78}.Debug|Any CPU.Build.0 = Debug|Any CPU + {CE053376-D517-48BF-ACF4-85C4B361FF78}.Debug|x64.ActiveCfg = Debug|Any CPU + {CE053376-D517-48BF-ACF4-85C4B361FF78}.Debug|x64.Build.0 = Debug|Any CPU + {CE053376-D517-48BF-ACF4-85C4B361FF78}.Debug|x86.ActiveCfg = Debug|Any CPU + {CE053376-D517-48BF-ACF4-85C4B361FF78}.Debug|x86.Build.0 = Debug|Any CPU {CE053376-D517-48BF-ACF4-85C4B361FF78}.Release|Any CPU.ActiveCfg = Release|Any CPU {CE053376-D517-48BF-ACF4-85C4B361FF78}.Release|Any CPU.Build.0 = Release|Any CPU + {CE053376-D517-48BF-ACF4-85C4B361FF78}.Release|x64.ActiveCfg = Release|Any CPU + {CE053376-D517-48BF-ACF4-85C4B361FF78}.Release|x64.Build.0 = Release|Any CPU + {CE053376-D517-48BF-ACF4-85C4B361FF78}.Release|x86.ActiveCfg = Release|Any CPU + {CE053376-D517-48BF-ACF4-85C4B361FF78}.Release|x86.Build.0 = Release|Any CPU {C76F12D6-516B-49D4-9D4E-F763928D7DF8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {C76F12D6-516B-49D4-9D4E-F763928D7DF8}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C76F12D6-516B-49D4-9D4E-F763928D7DF8}.Debug|x64.ActiveCfg = Debug|Any CPU + {C76F12D6-516B-49D4-9D4E-F763928D7DF8}.Debug|x64.Build.0 = Debug|Any CPU + {C76F12D6-516B-49D4-9D4E-F763928D7DF8}.Debug|x86.ActiveCfg = Debug|Any CPU + {C76F12D6-516B-49D4-9D4E-F763928D7DF8}.Debug|x86.Build.0 = Debug|Any CPU {C76F12D6-516B-49D4-9D4E-F763928D7DF8}.Release|Any CPU.ActiveCfg = Release|Any CPU {C76F12D6-516B-49D4-9D4E-F763928D7DF8}.Release|Any CPU.Build.0 = Release|Any CPU - {CBECCA1B-FCB6-49F3-B161-1EC246A96171}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {CBECCA1B-FCB6-49F3-B161-1EC246A96171}.Debug|Any CPU.Build.0 = Debug|Any CPU - {CBECCA1B-FCB6-49F3-B161-1EC246A96171}.Release|Any CPU.ActiveCfg = Release|Any CPU - {CBECCA1B-FCB6-49F3-B161-1EC246A96171}.Release|Any CPU.Build.0 = Release|Any CPU + {C76F12D6-516B-49D4-9D4E-F763928D7DF8}.Release|x64.ActiveCfg = Release|Any CPU + {C76F12D6-516B-49D4-9D4E-F763928D7DF8}.Release|x64.Build.0 = Release|Any CPU + {C76F12D6-516B-49D4-9D4E-F763928D7DF8}.Release|x86.ActiveCfg = Release|Any CPU + {C76F12D6-516B-49D4-9D4E-F763928D7DF8}.Release|x86.Build.0 = Release|Any CPU + {E719E563-4F98-4B94-99CF-15901D46AD07}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {E719E563-4F98-4B94-99CF-15901D46AD07}.Debug|Any CPU.Build.0 = Debug|Any CPU + {E719E563-4F98-4B94-99CF-15901D46AD07}.Debug|x64.ActiveCfg = Debug|Any CPU + {E719E563-4F98-4B94-99CF-15901D46AD07}.Debug|x64.Build.0 = Debug|Any CPU + {E719E563-4F98-4B94-99CF-15901D46AD07}.Debug|x86.ActiveCfg = Debug|Any CPU + {E719E563-4F98-4B94-99CF-15901D46AD07}.Debug|x86.Build.0 = Debug|Any CPU + {E719E563-4F98-4B94-99CF-15901D46AD07}.Release|Any CPU.ActiveCfg = Release|Any CPU + {E719E563-4F98-4B94-99CF-15901D46AD07}.Release|Any CPU.Build.0 = Release|Any CPU + {E719E563-4F98-4B94-99CF-15901D46AD07}.Release|x64.ActiveCfg = Release|Any CPU + {E719E563-4F98-4B94-99CF-15901D46AD07}.Release|x64.Build.0 = Release|Any CPU + {E719E563-4F98-4B94-99CF-15901D46AD07}.Release|x86.ActiveCfg = Release|Any CPU + {E719E563-4F98-4B94-99CF-15901D46AD07}.Release|x86.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE EndGlobalSection GlobalSection(NestedProjects) = preSolution {B50B3F66-2B0C-4AC9-9EE9-9F35AD3BC8A6} = {68BFAAC4-AF9D-4C66-9FFA-76935089F9AD} @@ -70,5 +140,6 @@ Global {E62F78DF-410E-43B6-830E-61421D32C592} = {68BFAAC4-AF9D-4C66-9FFA-76935089F9AD} {2F9D16D2-BB02-45BC-A2FC-3AFF002C7582} = {68BFAAC4-AF9D-4C66-9FFA-76935089F9AD} {CE053376-D517-48BF-ACF4-85C4B361FF78} = {68BFAAC4-AF9D-4C66-9FFA-76935089F9AD} + {E719E563-4F98-4B94-99CF-15901D46AD07} = {720F07CF-8CA5-309F-EE09-D051CD8579CA} EndGlobalSection EndGlobal diff --git a/src/ConfidentialLedger/ConfidentialLedger/Az.ConfidentialLedger.psd1 b/src/ConfidentialLedger/ConfidentialLedger/Az.ConfidentialLedger.psd1 index ee3accee05e0..03523dd5a6d7 100644 --- a/src/ConfidentialLedger/ConfidentialLedger/Az.ConfidentialLedger.psd1 +++ b/src/ConfidentialLedger/ConfidentialLedger/Az.ConfidentialLedger.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 1/9/2025 +# Generated on: 2025-07-18 # @{ @@ -51,20 +51,20 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '4.0.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '5.1.1'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'ConfidentialLedger.Autorest/bin/Az.ConfidentialLedger.private.dll' # Script files (.ps1) that are run in the caller's environment prior to importing this module. -# ScriptsToProcess = @() +ScriptsToProcess = @() # Type files (.ps1xml) to be loaded when importing this module -# TypesToProcess = @() +TypesToProcess = @() # Format files (.ps1xml) to be loaded when importing this module -FormatsToProcess = 'ConfidentialLedger.Autorest\Az.ConfidentialLedger.format.ps1xml' +FormatsToProcess = 'ConfidentialLedger.Autorest/Az.ConfidentialLedger.format.ps1xml' # Modules to import as nested modules of the module specified in RootModule/ModuleToProcess NestedModules = @('ConfidentialLedger.Autorest/Az.ConfidentialLedger.psm1') @@ -101,7 +101,7 @@ PrivateData = @{ PSData = @{ # Tags applied to this module. These help with module discovery in online galleries. - Tags = 'Azure','ResourceManager','ARM','PSModule','ConfidentialLedger' + Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'ConfidentialLedger' # A URL to the license for this module. LicenseUri = 'https://aka.ms/azps-license' @@ -126,7 +126,7 @@ PrivateData = @{ } # End of PSData hashtable - } # End of PrivateData hashtable +} # End of PrivateData hashtable # HelpInfo URI of this module # HelpInfoURI = '' diff --git a/src/ConfidentialLedger/ConfidentialLedger/help/Az.ConfidentialLedger.md b/src/ConfidentialLedger/ConfidentialLedger/help/Az.ConfidentialLedger.md index cff88f970ca4..61990e25fcc1 100644 --- a/src/ConfidentialLedger/ConfidentialLedger/help/Az.ConfidentialLedger.md +++ b/src/ConfidentialLedger/ConfidentialLedger/help/Az.ConfidentialLedger.md @@ -15,7 +15,7 @@ Microsoft Azure PowerShell: ConfidentialLedger cmdlets Retrieves the properties of a Confidential Ledger. ### [New-AzConfidentialLedger](New-AzConfidentialLedger.md) -Creates a Confidential Ledger with the specified ledger parameters. +Create a Confidential Ledger with the specified ledger parameters. ### [New-AzConfidentialLedgerAADBasedSecurityPrincipalObject](New-AzConfidentialLedgerAADBasedSecurityPrincipalObject.md) Create an in-memory object for AADBasedSecurityPrincipal. diff --git a/src/ConfidentialLedger/ConfidentialLedger/help/Get-AzConfidentialLedger.md b/src/ConfidentialLedger/ConfidentialLedger/help/Get-AzConfidentialLedger.md index 4b61bd167a24..d2f1bbac2a89 100644 --- a/src/ConfidentialLedger/ConfidentialLedger/help/Get-AzConfidentialLedger.md +++ b/src/ConfidentialLedger/ConfidentialLedger/help/Get-AzConfidentialLedger.md @@ -107,7 +107,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Models.IConfidentialLedgerIdentity @@ -177,7 +176,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Models.Api20220513.IConfidentialLedger +### Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Models.IConfidentialLedger ## NOTES diff --git a/src/ConfidentialLedger/ConfidentialLedger/help/New-AzConfidentialLedger.md b/src/ConfidentialLedger/ConfidentialLedger/help/New-AzConfidentialLedger.md index a8d4d90d888c..5b6d8840fb89 100644 --- a/src/ConfidentialLedger/ConfidentialLedger/help/New-AzConfidentialLedger.md +++ b/src/ConfidentialLedger/ConfidentialLedger/help/New-AzConfidentialLedger.md @@ -8,20 +8,35 @@ schema: 2.0.0 # New-AzConfidentialLedger ## SYNOPSIS -Creates a Confidential Ledger with the specified ledger parameters. +Create a Confidential Ledger with the specified ledger parameters. ## SYNTAX +### CreateExpanded (Default) ``` New-AzConfidentialLedger -Name -ResourceGroupName [-SubscriptionId ] [-AadBasedSecurityPrincipal ] - [-CertBasedSecurityPrincipal ] [-LedgerType ] [-Location ] + [-CertBasedSecurityPrincipal ] [-LedgerType ] [-Location ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] ``` +### CreateViaJsonFilePath +``` +New-AzConfidentialLedger -Name -ResourceGroupName [-SubscriptionId ] + -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] +``` + +### CreateViaJsonString +``` +New-AzConfidentialLedger -Name -ResourceGroupName [-SubscriptionId ] + -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] +``` + ## DESCRIPTION -Creates a Confidential Ledger with the specified ledger parameters. +Create a Confidential Ledger with the specified ledger parameters. ## EXAMPLES @@ -34,8 +49,8 @@ New-AzConfidentialLedger ` -AadBasedSecurityPrincipal ` @{ LedgerRoleName="Administrator"; - PrincipalId="00001111-aaaa-2222-bbbb-3333cccc4444"; - TenantId="00001111-aaaa-2222-bbbb-3333cccc4444" + PrincipalId="34621747-6fc8-4771-a2eb-72f31c461f2e"; + TenantId="bce123b9-2b7b-4975-8360-5ca0b9b1cd08" } ` -CertBasedSecurityPrincipal ` @{ @@ -58,8 +73,8 @@ Creates a new Confidential Ledger. ```powershell $aadSecurityPrincipal = New-AzConfidentialLedgerAADBasedSecurityPrincipalObject ` -LedgerRoleName "Administrator" ` - -PrincipalId "00001111-aaaa-2222-bbbb-3333cccc4444" ` - -TenantId "00001111-aaaa-2222-bbbb-3333cccc4444" + -PrincipalId "34621747-6fc8-4771-a2eb-72f31c461f2e" ` + -TenantId "bce123b9-2b7b-4975-8360-5ca0b9b1cd08" $certSecurityPrincipal = New-AzConfidentialLedgerCertBasedSecurityPrincipalObject ` -Cert "-----BEGIN CERTIFICATE-----********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************-----END CERTIFICATE-----" ` @@ -87,11 +102,10 @@ Creates a new Confidential Ledger using objects for `AadBasedSecurityPrincipal` ### -AadBasedSecurityPrincipal Array of all AAD based Security Principals. -To construct, see NOTES section for AADBASEDSECURITYPRINCIPAL properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Models.Api20220513.IAadBasedSecurityPrincipal[] -Parameter Sets: (All) +Type: Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Models.IAadBasedSecurityPrincipal[] +Parameter Sets: CreateExpanded Aliases: Required: False @@ -118,11 +132,10 @@ Accept wildcard characters: False ### -CertBasedSecurityPrincipal Array of all cert based Security Principals. -To construct, see NOTES section for CERTBASEDSECURITYPRINCIPAL properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Models.Api20220513.ICertBasedSecurityPrincipal[] -Parameter Sets: (All) +Type: Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Models.ICertBasedSecurityPrincipal[] +Parameter Sets: CreateExpanded Aliases: Required: False @@ -148,12 +161,42 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -JsonFilePath +Path of Json file supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -LedgerType Type of Confidential Ledger ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Support.LedgerType -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -168,7 +211,7 @@ The Azure location where the Confidential Ledger is running. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -245,7 +288,7 @@ Additional tags for Confidential Ledger ```yaml Type: System.Collections.Hashtable -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -293,7 +336,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Models.Api20220513.IConfidentialLedger +### Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Models.IConfidentialLedger ## NOTES diff --git a/src/ConfidentialLedger/ConfidentialLedger/help/New-AzConfidentialLedgerAADBasedSecurityPrincipalObject.md b/src/ConfidentialLedger/ConfidentialLedger/help/New-AzConfidentialLedgerAADBasedSecurityPrincipalObject.md index 1153e7f55fa7..c55da9eb9224 100644 --- a/src/ConfidentialLedger/ConfidentialLedger/help/New-AzConfidentialLedgerAADBasedSecurityPrincipalObject.md +++ b/src/ConfidentialLedger/ConfidentialLedger/help/New-AzConfidentialLedgerAADBasedSecurityPrincipalObject.md @@ -1,7 +1,7 @@ --- external help file: Az.ConfidentialLedger-help.xml Module Name: Az.ConfidentialLedger -online version: https://learn.microsoft.com/powershell/module/Az.ConfidentialLedger/new-AzConfidentialLedgerAADBasedSecurityPrincipalObject +online version: https://learn.microsoft.com/powershell/module/Az.ConfidentialLedger/new-azconfidentialledgeraadbasedsecurityprincipalobject schema: 2.0.0 --- @@ -13,8 +13,8 @@ Create an in-memory object for AADBasedSecurityPrincipal. ## SYNTAX ``` -New-AzConfidentialLedgerAADBasedSecurityPrincipalObject [-LedgerRoleName ] - [-PrincipalId ] [-TenantId ] [] +New-AzConfidentialLedgerAADBasedSecurityPrincipalObject [-LedgerRoleName ] [-PrincipalId ] + [-TenantId ] [] ``` ## DESCRIPTION @@ -26,14 +26,14 @@ Create an in-memory object for AADBasedSecurityPrincipal. ```powershell New-AzConfidentialLedgerAADBasedSecurityPrincipalObject ` -LedgerRoleName "Administrator" ` - -PrincipalId "00001111-aaaa-2222-bbbb-3333cccc4444" ` - -TenantId "00001111-aaaa-2222-bbbb-3333cccc4444" + -PrincipalId "34621747-6fc8-4771-a2eb-72f31c461f2e" ` + -TenantId "bce123b9-2b7b-4975-8360-5ca0b9b1cd08" ``` ```output LedgerRoleName PrincipalId TenantId -------------- ----------- -------- -Administrator 00001111-aaaa-2222-bbbb-3333cccc4444 00001111-aaaa-2222-bbbb-3333cccc4444 +Administrator 34621747-6fc8-4771-a2eb-72f31c461f2e bce123b9-2b7b-4975-8360-5ca0b9b1cd08 ``` Creates an AadBasedSecurityPrincipalObject that may be used for `Az.ConfidentialLedger` commands. @@ -44,7 +44,7 @@ Creates an AadBasedSecurityPrincipalObject that may be used for `Az.Confidential LedgerRole associated with the Security Principal of Ledger. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Support.LedgerRoleName +Type: System.String Parameter Sets: (All) Aliases: @@ -92,7 +92,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Models.Api20220513.AadBasedSecurityPrincipal +### Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Models.AadBasedSecurityPrincipal ## NOTES diff --git a/src/ConfidentialLedger/ConfidentialLedger/help/New-AzConfidentialLedgerCertBasedSecurityPrincipalObject.md b/src/ConfidentialLedger/ConfidentialLedger/help/New-AzConfidentialLedgerCertBasedSecurityPrincipalObject.md index 38ff78f7a7e1..0c569e749771 100644 --- a/src/ConfidentialLedger/ConfidentialLedger/help/New-AzConfidentialLedgerCertBasedSecurityPrincipalObject.md +++ b/src/ConfidentialLedger/ConfidentialLedger/help/New-AzConfidentialLedgerCertBasedSecurityPrincipalObject.md @@ -1,7 +1,7 @@ --- external help file: Az.ConfidentialLedger-help.xml Module Name: Az.ConfidentialLedger -online version: https://learn.microsoft.com/powershell/module/Az.ConfidentialLedger/new-AzConfidentialLedgerCertBasedSecurityPrincipalObject +online version: https://learn.microsoft.com/powershell/module/Az.ConfidentialLedger/new-azconfidentialledgercertbasedsecurityprincipalobject schema: 2.0.0 --- @@ -13,7 +13,7 @@ Create an in-memory object for CertBasedSecurityPrincipal. ## SYNTAX ``` -New-AzConfidentialLedgerCertBasedSecurityPrincipalObject [-Cert ] [-LedgerRoleName ] +New-AzConfidentialLedgerCertBasedSecurityPrincipalObject [-Cert ] [-LedgerRoleName ] [] ``` @@ -58,7 +58,7 @@ Accept wildcard characters: False LedgerRole associated with the Security Principal of Ledger. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Support.LedgerRoleName +Type: System.String Parameter Sets: (All) Aliases: @@ -76,7 +76,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Models.Api20220513.CertBasedSecurityPrincipal +### Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Models.CertBasedSecurityPrincipal ## NOTES diff --git a/src/ConfidentialLedger/ConfidentialLedger/help/Remove-AzConfidentialLedger.md b/src/ConfidentialLedger/ConfidentialLedger/help/Remove-AzConfidentialLedger.md index 478dfcf87e83..1040b2d90f94 100644 --- a/src/ConfidentialLedger/ConfidentialLedger/help/Remove-AzConfidentialLedger.md +++ b/src/ConfidentialLedger/ConfidentialLedger/help/Remove-AzConfidentialLedger.md @@ -74,7 +74,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Models.IConfidentialLedgerIdentity diff --git a/src/ConfidentialLedger/ConfidentialLedger/help/Test-AzConfidentialLedgerNameAvailability.md b/src/ConfidentialLedger/ConfidentialLedger/help/Test-AzConfidentialLedgerNameAvailability.md index 0d225c3c247f..5a1781ef91ea 100644 --- a/src/ConfidentialLedger/ConfidentialLedger/help/Test-AzConfidentialLedgerNameAvailability.md +++ b/src/ConfidentialLedger/ConfidentialLedger/help/Test-AzConfidentialLedgerNameAvailability.md @@ -12,11 +12,24 @@ To check whether a resource name is available. ## SYNTAX +### CheckExpanded (Default) ``` Test-AzConfidentialLedgerNameAvailability [-SubscriptionId ] [-Name ] [-Type ] [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` +### CheckViaJsonFilePath +``` +Test-AzConfidentialLedgerNameAvailability [-SubscriptionId ] -JsonFilePath + [-DefaultProfile ] [-WhatIf] [-Confirm] [] +``` + +### CheckViaJsonString +``` +Test-AzConfidentialLedgerNameAvailability [-SubscriptionId ] -JsonString + [-DefaultProfile ] [-WhatIf] [-Confirm] [] +``` + ## DESCRIPTION To check whether a resource name is available. @@ -74,12 +87,42 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -JsonFilePath +Path of Json file supplied to the Check operation + +```yaml +Type: System.String +Parameter Sets: CheckViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Check operation + +```yaml +Type: System.String +Parameter Sets: CheckViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Name The name of the resource for which availability needs to be checked. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CheckExpanded Aliases: Required: False @@ -111,7 +154,7 @@ The resource type. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CheckExpanded Aliases: Required: False @@ -159,7 +202,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Models.Api20.ICheckNameAvailabilityResponse +### Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Models.ICheckNameAvailabilityResponse ## NOTES diff --git a/src/ConfidentialLedger/ConfidentialLedger/help/Update-AzConfidentialLedger.md b/src/ConfidentialLedger/ConfidentialLedger/help/Update-AzConfidentialLedger.md index 8bfdbbb9d623..9e448eb0da6b 100644 --- a/src/ConfidentialLedger/ConfidentialLedger/help/Update-AzConfidentialLedger.md +++ b/src/ConfidentialLedger/ConfidentialLedger/help/Update-AzConfidentialLedger.md @@ -16,16 +16,30 @@ Updates properties of Confidential Ledger ``` Update-AzConfidentialLedger -Name -ResourceGroupName [-SubscriptionId ] -Location [-AadBasedSecurityPrincipal ] - [-CertBasedSecurityPrincipal ] [-LedgerType ] [-Tag ] + [-CertBasedSecurityPrincipal ] [-LedgerType ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] ``` +### UpdateViaJsonFilePath +``` +Update-AzConfidentialLedger -Name -ResourceGroupName [-SubscriptionId ] + -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] +``` + +### UpdateViaJsonString +``` +Update-AzConfidentialLedger -Name -ResourceGroupName [-SubscriptionId ] + -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] +``` + ### UpdateViaIdentityExpanded ``` Update-AzConfidentialLedger -InputObject -Location [-AadBasedSecurityPrincipal ] - [-CertBasedSecurityPrincipal ] [-LedgerType ] [-Tag ] + [-CertBasedSecurityPrincipal ] [-LedgerType ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] ``` @@ -44,8 +58,8 @@ Update-AzConfidentialLedger ` -AadBasedSecurityPrincipal ` @{ LedgerRoleName="Administrator"; - PrincipalId="00001111-aaaa-2222-bbbb-3333cccc4444"; - TenantId="00001111-aaaa-2222-bbbb-3333cccc4444" + PrincipalId="34621747-6fc8-4771-a2eb-72f31c461f2e"; + TenantId="bce123b9-2b7b-4975-8360-5ca0b9b1cd08" } ` -CertBasedSecurityPrincipal ` @{ @@ -72,11 +86,10 @@ Updates metadata for an existing Confidential Ledger. ### -AadBasedSecurityPrincipal Array of all AAD based Security Principals. -To construct, see NOTES section for AADBASEDSECURITYPRINCIPAL properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Models.Api20220513.IAadBasedSecurityPrincipal[] -Parameter Sets: (All) +Type: Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Models.IAadBasedSecurityPrincipal[] +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -103,11 +116,10 @@ Accept wildcard characters: False ### -CertBasedSecurityPrincipal Array of all cert based Security Principals. -To construct, see NOTES section for CERTBASEDSECURITYPRINCIPAL properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Models.Api20220513.ICertBasedSecurityPrincipal[] -Parameter Sets: (All) +Type: Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Models.ICertBasedSecurityPrincipal[] +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -118,7 +130,8 @@ Accept wildcard characters: False ``` ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject @@ -134,7 +147,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Models.IConfidentialLedgerIdentity @@ -148,12 +160,42 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -JsonFilePath +Path of Json file supplied to the Update operation + +```yaml +Type: System.String +Parameter Sets: UpdateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Update operation + +```yaml +Type: System.String +Parameter Sets: UpdateViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -LedgerType Type of Confidential Ledger ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Support.LedgerType -Parameter Sets: (All) +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -168,7 +210,7 @@ The Azure location where the Confidential Ledger is running. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: True @@ -183,7 +225,7 @@ Name of the Confidential Ledger ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateExpanded, UpdateViaJsonFilePath, UpdateViaJsonString Aliases: LedgerName Required: True @@ -213,7 +255,7 @@ The name of the resource group. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateExpanded, UpdateViaJsonFilePath, UpdateViaJsonString Aliases: Required: True @@ -230,7 +272,7 @@ This is a GUID-formatted string (e.g. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateExpanded, UpdateViaJsonFilePath, UpdateViaJsonString Aliases: Required: False @@ -245,7 +287,7 @@ Additional tags for Confidential Ledger ```yaml Type: System.Collections.Hashtable -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -295,7 +337,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Models.Api20220513.IConfidentialLedger +### Microsoft.Azure.PowerShell.Cmdlets.ConfidentialLedger.Models.IConfidentialLedger ## NOTES