Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/CustomLocation/CustomLocation.Autorest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
This directory contains the PowerShell module for the CustomLocation service.

---

## Info
- Modifiable: yes
- Generated: all
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Models.ICustomLocationIdentity]
# Identity Parameter
# To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},

[Parameter(ParameterSetName='FindExpanded')]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Models.ICustomLocationIdentity]
# Identity Parameter
# To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},

[Parameter()]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,12 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Models.ICustomLocationIdentity]
# Identity Parameter
# To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},

[Parameter(ParameterSetName='GetViaIdentityCustomlocation', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Models.ICustomLocationIdentity]
# Identity Parameter
# To construct, see NOTES section for CUSTOMLOCATIONINPUTOBJECT properties and create a hash table.
${CustomlocationInputObject},

[Parameter()]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,12 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Models.ICustomLocationIdentity]
# Identity Parameter
# To construct, see NOTES section for CUSTOMLOCATIONINPUTOBJECT properties and create a hash table.
${CustomlocationInputObject},

[Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Models.ICustomLocationIdentity]
# Identity Parameter
# To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},

[Parameter(ParameterSetName='CreateExpanded', Mandatory)]
Expand Down Expand Up @@ -132,7 +130,6 @@ param(
# Valid operators include In, NotIn, Exists, and DoesNotExist.
# The values set must be non-empty in the case of In and NotIn.
# The values set must be empty in the case of Exists and DoesNotExist.
# To construct, see NOTES section for SELECTORMATCHEXPRESSION properties and create a hash table.
${SelectorMatchExpression},

[Parameter(ParameterSetName='CreateExpanded')]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Models.ICustomLocationIdentity]
# Identity Parameter
# To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},

[Parameter(ParameterSetName='FindExpanded')]
Expand Down Expand Up @@ -479,14 +478,12 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Models.ICustomLocationIdentity]
# Identity Parameter
# To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},

[Parameter(ParameterSetName='GetViaIdentityCustomlocation', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Models.ICustomLocationIdentity]
# Identity Parameter
# To construct, see NOTES section for CUSTOMLOCATIONINPUTOBJECT properties and create a hash table.
${CustomlocationInputObject},

[Parameter()]
Expand Down Expand Up @@ -683,7 +680,6 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Models.ICustomLocationIdentity]
# Identity Parameter
# To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},

[Parameter()]
Expand Down Expand Up @@ -901,14 +897,12 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Models.ICustomLocationIdentity]
# Identity Parameter
# To construct, see NOTES section for CUSTOMLOCATIONINPUTOBJECT properties and create a hash table.
${CustomlocationInputObject},

[Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Models.ICustomLocationIdentity]
# Identity Parameter
# To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},

[Parameter(ParameterSetName='CreateExpanded', Mandatory)]
Expand Down Expand Up @@ -937,7 +931,6 @@ param(
# Valid operators include In, NotIn, Exists, and DoesNotExist.
# The values set must be non-empty in the case of In and NotIn.
# The values set must be empty in the case of Exists and DoesNotExist.
# To construct, see NOTES section for SELECTORMATCHEXPRESSION properties and create a hash table.
${SelectorMatchExpression},

[Parameter(ParameterSetName='CreateExpanded')]
Expand Down Expand Up @@ -1201,14 +1194,12 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Models.ICustomLocationIdentity]
# Identity Parameter
# To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},

[Parameter(ParameterSetName='DeleteViaIdentityCustomlocation', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Models.ICustomLocationIdentity]
# Identity Parameter
# To construct, see NOTES section for CUSTOMLOCATIONINPUTOBJECT properties and create a hash table.
${CustomlocationInputObject},

[Parameter()]
Expand Down Expand Up @@ -1406,7 +1397,6 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Models.ICustomLocationIdentity]
# Identity Parameter
# To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},

[Parameter()]
Expand Down Expand Up @@ -1648,14 +1638,12 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Models.ICustomLocationIdentity]
# Identity Parameter
# To construct, see NOTES section for CUSTOMLOCATIONINPUTOBJECT properties and create a hash table.
${CustomlocationInputObject},

[Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Models.ICustomLocationIdentity]
# Identity Parameter
# To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},

[Parameter(ParameterSetName='UpdateExpanded')]
Expand All @@ -1676,7 +1664,6 @@ param(
# Valid operators include In, NotIn, Exists, and DoesNotExist.
# The values set must be non-empty in the case of In and NotIn.
# The values set must be empty in the case of Exists and DoesNotExist.
# To construct, see NOTES section for SELECTORMATCHEXPRESSION properties and create a hash table.
${SelectorMatchExpression},

[Parameter(ParameterSetName='UpdateExpanded')]
Expand Down Expand Up @@ -2258,7 +2245,7 @@ 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 <ICustomLocationIdentity>: Identity Parameter
INPUTOBJECT <ICustomLocationIdentity>: Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
[ChildResourceName <String>]: Resource Sync Rule name.
[Id <String>]: Resource identity path
[ResourceGroupName <String>]: The name of the resource group. The name is case insensitive.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Models.ICustomLocationIdentity]
# Identity Parameter
# To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},

[Parameter()]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,12 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Models.ICustomLocationIdentity]
# Identity Parameter
# To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},

[Parameter(ParameterSetName='DeleteViaIdentityCustomlocation', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Models.ICustomLocationIdentity]
# Identity Parameter
# To construct, see NOTES section for CUSTOMLOCATIONINPUTOBJECT properties and create a hash table.
${CustomlocationInputObject},

[Parameter()]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ 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 <ICustomLocationIdentity>: Identity Parameter
INPUTOBJECT <ICustomLocationIdentity>: Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
[ChildResourceName <String>]: Resource Sync Rule name.
[Id <String>]: Resource identity path
[ResourceGroupName <String>]: The name of the resource group. The name is case insensitive.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,12 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Models.ICustomLocationIdentity]
# Identity Parameter
# To construct, see NOTES section for CUSTOMLOCATIONINPUTOBJECT properties and create a hash table.
${CustomlocationInputObject},

[Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Models.ICustomLocationIdentity]
# Identity Parameter
# To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},

[Parameter(ParameterSetName='UpdateExpanded')]
Expand All @@ -132,7 +130,6 @@ param(
# Valid operators include In, NotIn, Exists, and DoesNotExist.
# The values set must be non-empty in the case of In and NotIn.
# The values set must be empty in the case of Exists and DoesNotExist.
# To construct, see NOTES section for SELECTORMATCHEXPRESSION properties and create a hash table.
${SelectorMatchExpression},

[Parameter(ParameterSetName='UpdateExpanded')]
Expand Down
27 changes: 20 additions & 7 deletions src/CustomLocation/CustomLocation.Autorest/generated/Module.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,20 @@ public partial class Module

public global::System.Net.Http.HttpClientHandler _handler = new global::System.Net.Http.HttpClientHandler();

private static bool _init = false;

private static readonly global::System.Object _initLock = new global::System.Object();

private static Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Module _instance;

/// <summary>the ISendAsync pipeline instance</summary>
private Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Runtime.HttpPipeline _pipeline;

/// <summary>the ISendAsync pipeline instance (when proxy is enabled)</summary>
private Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Runtime.HttpPipeline _pipelineWithProxy;

private static readonly global::System.Object _singletonLock = new global::System.Object();

public bool _useProxy = false;

public global::System.Net.WebProxy _webProxy = new global::System.Net.WebProxy();
Expand All @@ -51,11 +59,8 @@ public partial class Module
/// <summary>The delegate to get the telemetry Id.</summary>
public GetTelemetryIdDelegate GetTelemetryId { get; set; }

/// <summary>Backing field for <see cref="Instance" /> property.</summary>
private static Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Module _instance;

/// <summary>the singleton of this module class</summary>
public static Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Module Instance => Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Module._instance?? (Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Module._instance = new Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Module());
public static Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Module Instance { get { if (_instance == null) { lock (_singletonLock) { if (_instance == null) { _instance = new Module(); }}} return _instance; } }

/// <summary>The Name of this module</summary>
public string Name => @"Az.CustomLocation";
Expand Down Expand Up @@ -117,9 +122,17 @@ public Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Runtime.HttpPipeline Cr
/// <summary>Initialization steps performed after the module is loaded.</summary>
public void Init()
{
OnModuleLoad?.Invoke( ResourceId, Name ,(step)=> { _pipeline.Prepend(step); } , (step)=> { _pipeline.Append(step); } );
OnModuleLoad?.Invoke( ResourceId, Name ,(step)=> { _pipelineWithProxy.Prepend(step); } , (step)=> { _pipelineWithProxy.Append(step); } );
CustomInit();
if (_init == false)
{
lock (_initLock) {
if (_init == false) {
OnModuleLoad?.Invoke( ResourceId, Name ,(step)=> { _pipeline.Prepend(step); } , (step)=> { _pipeline.Append(step); } );
OnModuleLoad?.Invoke( ResourceId, Name ,(step)=> { _pipelineWithProxy.Prepend(step); } , (step)=> { _pipelineWithProxy.Append(step); } );
CustomInit();
_init = true;
}
}
}
}

/// <summary>Creates the module instance.</summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ public partial class NewAzCustomLocation_CreateExpanded : global::System.Managem
PossibleTypes = new [] { typeof(string) })]
public string DisplayName { get => _parametersBody.DisplayName ?? null; set => _parametersBody.DisplayName = value; }

/// <summary>Decides if enable a system assigned identity for the resource.</summary>
[global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Decides if enable a system assigned identity for the resource.")]
public global::System.Management.Automation.SwitchParameter EnableSystemAssignedIdentity { set => _parametersBody.IdentityType = value.IsPresent ? "SystemAssigned": null ; }

/// <summary>Accessor for extensibleParameters.</summary>
public global::System.Collections.Generic.IDictionary<global::System.String,global::System.Object> ExtensibleParameters { get => _extensibleParameters ; }

Expand Down Expand Up @@ -172,18 +176,6 @@ public partial class NewAzCustomLocation_CreateExpanded : global::System.Managem
[global::Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.ParameterCategory.Runtime)]
public Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; }

/// <summary>The identity type.</summary>
[global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The identity type.")]
[global::Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Category(global::Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.ParameterCategory.Body)]
[Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.Runtime.Info(
Required = false,
ReadOnly = false,
Description = @"The identity type.",
SerializedName = @"type",
PossibleTypes = new [] { typeof(string) })]
[global::Microsoft.Azure.PowerShell.Cmdlets.CustomLocation.PSArgumentCompleterAttribute("SystemAssigned", "None")]
public string IdentityType { get => _parametersBody.IdentityType ?? null; set => _parametersBody.IdentityType = value; }

/// <summary>Accessor for our copy of the InvocationInfo.</summary>
public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } }

Expand Down
Loading