Skip to content

Commit 6bf2458

Browse files
author
Ajit Navasare
authored
Added readonly Status property in EventHub Namespace (Azure#19833)
1 parent 4ab1da6 commit 6bf2458

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

src/EventHub/EventHub/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
- Additional information about change #1
1919
-->
2020
## Upcoming Release
21+
* Added readonly Status property in EventHub Namespace
2122

2223
## Version 3.0.0
2324
* Most cmdlets in Az.EventHub module have been migrated to a new format and would witness breaking changes. Please refer our migration guide https://go.microsoft.com/fwlink/?linkid=2204690 to know breaking changes in detail.

src/EventHub/EventHub/EventHub.format.ps1xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@
3939
<PropertyName>ProvisioningState</PropertyName>
4040
</ListItem>
4141
<ListItem>
42-
<Label>Status</Label>
43-
<ScriptBlock>"Active"</ScriptBlock>
42+
<PropertyName>Status</PropertyName>
4443
</ListItem>
4544
<ListItem>
4645
<PropertyName>CreatedAt</PropertyName>

src/EventHub/EventHub/Models/PSNamespaceAttributes.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ public PSNamespaceAttributes(EHNamespace evResource)
8888
DisableLocalAuth = evResource.DisableLocalAuth;
8989
ClusterArmId = evResource.ClusterArmId;
9090
Encryption = new PSEncryptionAttributes(evResource.Encryption);
91+
Status = evResource.Status;
9192
}
9293
}
9394

@@ -185,5 +186,10 @@ public PSNamespaceAttributes(EHNamespace evResource)
185186
public PSEncryptionConfigAttributes[] EncryptionConfig { get; set; }
186187

187188
public PSEventHubPrivateEndpointConnectionAttributes[] PrivateEndpointConnections { get; set; }
189+
190+
/// <summary>
191+
/// Status of namespace.
192+
/// </summary>
193+
public string Status { get; }
188194
}
189195
}

0 commit comments

Comments
 (0)