Skip to content

Relay: Fix typo in PSHybridConnectionAttributes model name #9733

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 6, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ namespace Microsoft.Azure.Commands.Relay.Commands.HybridConnections
/// <para> If HybridConnections name provided, a single HybridConnections detials will be returned</para>
/// <para> If WcfRelayHybridConnections name not provided, list of WcfRelayHybridConnections will be returned</para>
/// </summary>
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "RelayHybridConnection"), OutputType(typeof(PSHybridConnectionAttibutes))]
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "RelayHybridConnection"), OutputType(typeof(PSHybridConnectionAttributes))]
public class GetAzureRmRelayHybridConnection : AzureRelayCmdletBase
{
[Parameter(Mandatory = true,
Expand Down Expand Up @@ -54,13 +54,13 @@ public override void ExecuteCmdlet()
if (!string.IsNullOrEmpty(Name))
{
// Get a HybridConnections
PSHybridConnectionAttibutes hybridConnections = Client.GetHybridConnections(ResourceGroupName, Namespace, Name);
PSHybridConnectionAttributes hybridConnections = Client.GetHybridConnections(ResourceGroupName, Namespace, Name);
WriteObject(hybridConnections);
}
else
{
// Get all HybridConnections
IEnumerable<PSHybridConnectionAttibutes> hybridConnectionsList = Client.ListAllHybridConnections(ResourceGroupName, Namespace);
IEnumerable<PSHybridConnectionAttributes> hybridConnectionsList = Client.ListAllHybridConnections(ResourceGroupName, Namespace);
WriteObject(hybridConnectionsList.ToList(), true);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ namespace Microsoft.Azure.Commands.Relay.Commands.HybridConnection
/// <summary>
/// 'New-AzRelayHybridConnection' Cmdlet creates a new HybridConnections
/// </summary>
[Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "RelayHybridConnection", SupportsShouldProcess = true), OutputType(typeof(PSHybridConnectionAttibutes))]
[Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "RelayHybridConnection", SupportsShouldProcess = true), OutputType(typeof(PSHybridConnectionAttributes))]
public class NewAzureRmRelayHybridConnection : AzureRelayCmdletBase
{
[Parameter(Mandatory = true,
Expand Down Expand Up @@ -52,7 +52,7 @@ public class NewAzureRmRelayHybridConnection : AzureRelayCmdletBase
ParameterSetName = HybridConnectionInputObjectParameterSet,
HelpMessage = "HybridConnections object.")]
[ValidateNotNullOrEmpty]
public PSHybridConnectionAttibutes InputObject { get; set; }
public PSHybridConnectionAttributes InputObject { get; set; }

[Parameter(Mandatory = false,
ValueFromPipelineByPropertyName = true,
Expand All @@ -70,7 +70,7 @@ public class NewAzureRmRelayHybridConnection : AzureRelayCmdletBase

public override void ExecuteCmdlet()
{
PSHybridConnectionAttibutes hybridConnections = new PSHybridConnectionAttibutes();
PSHybridConnectionAttributes hybridConnections = new PSHybridConnectionAttributes();

if (InputObject != null)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ namespace Microsoft.Azure.Commands.Relay.Commands.HybridConnections
/// <summary>
/// 'Set-AzRelayHybridConnection' Cmdlet updates the specified WcfRelay
/// </summary>
[Cmdlet("Set", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "RelayHybridConnection", SupportsShouldProcess = true), OutputType(typeof(PSHybridConnectionAttibutes))]
[Cmdlet("Set", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "RelayHybridConnection", SupportsShouldProcess = true), OutputType(typeof(PSHybridConnectionAttributes))]
public class SetAzureRelayHybridConnections : AzureRelayCmdletBase
{
[Parameter(Mandatory = true,
Expand Down Expand Up @@ -51,7 +51,7 @@ public class SetAzureRelayHybridConnections : AzureRelayCmdletBase
ValueFromPipeline = true,
HelpMessage = "HybridConnections object.")]
[ValidateNotNullOrEmpty]
public PSHybridConnectionAttibutes InputObject { get; set; }
public PSHybridConnectionAttributes InputObject { get; set; }

[Parameter(Mandatory = false,
ValueFromPipelineByPropertyName = true,
Expand All @@ -62,7 +62,7 @@ public class SetAzureRelayHybridConnections : AzureRelayCmdletBase

public override void ExecuteCmdlet()
{
PSHybridConnectionAttibutes hybridConnections = new PSHybridConnectionAttibutes();
PSHybridConnectionAttributes hybridConnections = new PSHybridConnectionAttributes();

if (InputObject != null)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ namespace Microsoft.Azure.Commands.Relay.Models
/// <summary>
/// Description of HybridConnection Resource.
/// </summary>
public partial class PSHybridConnectionAttibutes : PSResourceAttributes
public partial class PSHybridConnectionAttributes : PSResourceAttributes
{
/// <summary>
/// Initializes a new instance of the HybridConnection class.
/// </summary>
public PSHybridConnectionAttibutes() { }
public PSHybridConnectionAttributes() { }

/// <summary>
/// Initializes a new instance of the HybridConnection class.
Expand All @@ -39,7 +39,7 @@ public PSHybridConnectionAttibutes() { }
/// can be used to store descriptive data, such as list of teams and
/// their contact information also user-defined configuration settings
/// can be stored.</param>
public PSHybridConnectionAttibutes(string id = default(string), string name = default(string), string type = default(string), System.DateTime? createdAt = default(System.DateTime?), System.DateTime? updatedAt = default(System.DateTime?), int? listenerCount = default(int?), bool? requiresClientAuthorization = default(bool?), string userMetadata = default(string))
public PSHybridConnectionAttributes(string id = default(string), string name = default(string), string type = default(string), System.DateTime? createdAt = default(System.DateTime?), System.DateTime? updatedAt = default(System.DateTime?), int? listenerCount = default(int?), bool? requiresClientAuthorization = default(bool?), string userMetadata = default(string))
: base(id, name, type)
{
CreatedAt = createdAt;
Expand All @@ -50,7 +50,7 @@ public PSHybridConnectionAttibutes() { }
}


public PSHybridConnectionAttibutes(HybridConnection hybridConnection)
public PSHybridConnectionAttributes(HybridConnection hybridConnection)
{
Id = hybridConnection.Id;
Name = hybridConnection.Name;
Expand Down
16 changes: 8 additions & 8 deletions src/Relay/Relay/Utilities/RelayClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -272,20 +272,20 @@ public PSAuthorizationRuleKeysAttributes WcfRelayRegenerateKeys(string resourceG
#endregion

#region HybridConnections
public PSHybridConnectionAttibutes GetHybridConnections(string resourceGroupName, string namespaceName, string hybridConnectionsName)
public PSHybridConnectionAttributes GetHybridConnections(string resourceGroupName, string namespaceName, string hybridConnectionsName)
{
var response = Client.HybridConnections.Get(resourceGroupName, namespaceName, hybridConnectionsName);
return new PSHybridConnectionAttibutes(response);
return new PSHybridConnectionAttributes(response);
}

public IEnumerable<PSHybridConnectionAttibutes> ListAllHybridConnections(string resourceGroupName, string namespaceName)
public IEnumerable<PSHybridConnectionAttributes> ListAllHybridConnections(string resourceGroupName, string namespaceName)
{
var response = Client.HybridConnections.ListByNamespace(resourceGroupName, namespaceName);
var resourceList = response.Select(resource => new PSHybridConnectionAttibutes(resource));
var resourceList = response.Select(resource => new PSHybridConnectionAttributes(resource));
return resourceList;
}

public PSHybridConnectionAttibutes CreateOrUpdateHybridConnections(string resourceGroupName, string namespaceName, string hybridConnectionsName, PSHybridConnectionAttibutes parameter)
public PSHybridConnectionAttributes CreateOrUpdateHybridConnections(string resourceGroupName, string namespaceName, string hybridConnectionsName, PSHybridConnectionAttributes parameter)
{
var Parameter1 = new HybridConnection();

Expand All @@ -298,18 +298,18 @@ public PSHybridConnectionAttibutes CreateOrUpdateHybridConnections(string resour
Parameter1.UserMetadata = parameter.UserMetadata;

var response = Client.HybridConnections.CreateOrUpdate(resourceGroupName, namespaceName, hybridConnectionsName, Parameter1);
return new PSHybridConnectionAttibutes(response);
return new PSHybridConnectionAttributes(response);
}

public PSHybridConnectionAttibutes UpdateHybridConnections(string resourceGroupName, string namespaceName, string hybridConnectionsName, PSHybridConnectionAttibutes parameter)
public PSHybridConnectionAttributes UpdateHybridConnections(string resourceGroupName, string namespaceName, string hybridConnectionsName, PSHybridConnectionAttributes parameter)
{
//var Parameter1 = Client.HybridConnections.Get(resourceGroupName, namespaceName, hybridConnectionsName);
var Parameter1 = new HybridConnection();
if (!string.IsNullOrEmpty(parameter.UserMetadata))
Parameter1.UserMetadata = parameter.UserMetadata;

var response = Client.HybridConnections.CreateOrUpdate(resourceGroupName, namespaceName, hybridConnectionsName, Parameter1);
return new PSHybridConnectionAttibutes(response);
return new PSHybridConnectionAttributes(response);
}

public void DeleteHybridConnections(string resourceGroupName, string namespaceName, string hybridConnectionsName)
Expand Down
2 changes: 1 addition & 1 deletion src/Relay/Relay/help/Get-AzRelayHybridConnection.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## OUTPUTS

### Microsoft.Azure.Commands.Relay.Models.PSHybridConnectionAttibutes
### Microsoft.Azure.Commands.Relay.Models.PSHybridConnectionAttributes

## NOTES

Expand Down
8 changes: 4 additions & 4 deletions src/Relay/Relay/help/New-AzRelayHybridConnection.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Creates a HybridConnection in the specified Relay namespace.
### HybridConnectionInputObjectSet
```
New-AzRelayHybridConnection [-ResourceGroupName] <String> [-Namespace] <String> [-Name] <String>
[-InputObject <PSHybridConnectionAttibutes>] [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm]
[-InputObject <PSHybridConnectionAttributes>] [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm]
[<CommonParameters>]
```

Expand Down Expand Up @@ -91,7 +91,7 @@ Accept wildcard characters: False
HybridConnections object.

```yaml
Type: Microsoft.Azure.Commands.Relay.Models.PSHybridConnectionAttibutes
Type: Microsoft.Azure.Commands.Relay.Models.PSHybridConnectionAttributes
Parameter Sets: HybridConnectionInputObjectSet
Aliases:

Expand Down Expand Up @@ -216,13 +216,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

### System.String

### Microsoft.Azure.Commands.Relay.Models.PSHybridConnectionAttibutes
### Microsoft.Azure.Commands.Relay.Models.PSHybridConnectionAttributes

### System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]

## OUTPUTS

### Microsoft.Azure.Commands.Relay.Models.PSHybridConnectionAttibutes
### Microsoft.Azure.Commands.Relay.Models.PSHybridConnectionAttributes

## NOTES

Expand Down
8 changes: 4 additions & 4 deletions src/Relay/Relay/help/Set-AzRelayHybridConnection.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Updates the description of a HybridConnection in the specified Relay namespace.
### HybridConnectionInputObjectSet
```
Set-AzRelayHybridConnection [-ResourceGroupName] <String> [-Namespace] <String> [-Name] <String>
[-InputObject <PSHybridConnectionAttibutes>] [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm]
[-InputObject <PSHybridConnectionAttributes>] [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm]
[<CommonParameters>]
```

Expand Down Expand Up @@ -89,7 +89,7 @@ Accept wildcard characters: False
HybridConnections object.

```yaml
Type: Microsoft.Azure.Commands.Relay.Models.PSHybridConnectionAttibutes
Type: Microsoft.Azure.Commands.Relay.Models.PSHybridConnectionAttributes
Parameter Sets: HybridConnectionInputObjectSet
Aliases:

Expand Down Expand Up @@ -199,11 +199,11 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

### System.String

### Microsoft.Azure.Commands.Relay.Models.PSHybridConnectionAttibutes
### Microsoft.Azure.Commands.Relay.Models.PSHybridConnectionAttributes

## OUTPUTS

### Microsoft.Azure.Commands.Relay.Models.PSHybridConnectionAttibutes
### Microsoft.Azure.Commands.Relay.Models.PSHybridConnectionAttributes

## NOTES

Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
"AssemblyFileName","ClassName","Target","Severity","ProblemId","Description","Remediation"
"Microsoft.Azure.PowerShell.Cmdlets.Relay.dll","Microsoft.Azure.Commands.Relay.Commands.HybridConnection.NewAzureRmRelayHybridConnection","New-AzRelayHybridConnection","0","2020","The cmdlet 'New-AzRelayHybridConnection' no longer supports the type 'Microsoft.Azure.Commands.Relay.Models.PSHybridConnectionAttibutes' for parameter 'InputObject'.","Change the type for parameter 'InputObject' back to 'Microsoft.Azure.Commands.Relay.Models.PSHybridConnectionAttibutes'."
"Microsoft.Azure.PowerShell.Cmdlets.Relay.dll","Microsoft.Azure.Commands.Relay.Commands.HybridConnections.SetAzureRelayHybridConnections","Set-AzRelayHybridConnection","0","2020","The cmdlet 'Set-AzRelayHybridConnection' no longer supports the type 'Microsoft.Azure.Commands.Relay.Models.PSHybridConnectionAttibutes' for parameter 'InputObject'.","Change the type for parameter 'InputObject' back to 'Microsoft.Azure.Commands.Relay.Models.PSHybridConnectionAttibutes'."