Skip to content

Commit

Permalink
Merge pull request Azure#64 from schaudhari6254888/srcaaz
Browse files Browse the repository at this point in the history
{EventHubs} az eventhubs namespace migrated to aaz
  • Loading branch information
kairu-ms authored Mar 30, 2023
2 parents 706aa09 + d434c65 commit a513eed
Show file tree
Hide file tree
Showing 13 changed files with 1,774 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Commands/eventhubs/namespace/_create.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# [Command] _eventhubs namespace create_

Create a namespace. Once created, this namespace's resource manifest is immutable. This operation is idempotent.

## Versions

### [2022-01-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5ldmVudGh1Yi9uYW1lc3BhY2VzL3t9/2022-01-01-preview.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.eventhub/namespaces/{} 2022-01-01-preview -->

#### examples

- Creates a new namespace.
```bash
eventhubs namespace create --resource-group myresourcegroup --name mynamespace --location westus --tags tag1=value1 tag2=value2 --sku Standard --enable-auto-inflate
```

- Creates a new namespace with Identity & Encryption Enabled
```bash
eventhubs namespace create --resource-group myresourcegroup --name mynamespace --location westus --sku Premium --mi-user-assigned /subscriptions/{subscriptionId}/resourceGroups/{resourcegroup}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/MSIName --encryption-config key-name=key1 key-vault-uri=https://mykeyvault.vault.azure.net/ user-assigned-identity=/subscriptions/{subscriptionId}}/resourceGroups/{resourcegroup}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/MSIName --encryption-config key-name=key1 key-vault-uri=https://mykeyvault.vault.azure.net/ user-assigned-identity=/subscriptions/{subscriptionId}}/resourceGroups/{resourcegroup}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/MSIName
```
16 changes: 16 additions & 0 deletions Commands/eventhubs/namespace/_delete.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _eventhubs namespace delete_

Delete an existing namespace. This operation also removes all associated resources under the namespace.

## Versions

### [2022-01-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5ldmVudGh1Yi9uYW1lc3BhY2VzL3t9/2022-01-01-preview.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.eventhub/namespaces/{} 2022-01-01-preview -->

#### examples

- Delete the Namespace
```bash
eventhubs namespace delete --resource-group myresourcegroup --name mynamespace
```
21 changes: 21 additions & 0 deletions Commands/eventhubs/namespace/_list.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# [Command] _eventhubs namespace list_

List the available Namespaces within a resource group.

## Versions

### [2022-01-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5ldmVudGh1Yi9uYW1lc3BhY2Vz/2022-01-01-preview.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.eventhub/namespaces 2022-01-01-preview -->

#### examples

- List the Event Hubs Namespaces by resource group.
```bash
eventhubs namespace list --resource-group myresourcegroup
```

- Get the Namespaces by Subscription.
```bash
eventhubs namespace list
```
16 changes: 16 additions & 0 deletions Commands/eventhubs/namespace/_show.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _eventhubs namespace show_

Get the description of the specified namespace.

## Versions

### [2022-01-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5ldmVudGh1Yi9uYW1lc3BhY2VzL3t9/2022-01-01-preview.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.eventhub/namespaces/{} 2022-01-01-preview -->

#### examples

- shows the Namespace details.
```bash
eventhubs namespace show --resource-group myresourcegroup --name mynamespace
```
16 changes: 16 additions & 0 deletions Commands/eventhubs/namespace/_update.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _eventhubs namespace update_

Update a namespace. Once created, this namespace's resource manifest is immutable. This operation is idempotent.

## Versions

### [2022-01-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5ldmVudGh1Yi9uYW1lc3BhY2VzL3t9/2022-01-01-preview.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.eventhub/namespaces/{} 2022-01-01-preview -->

#### examples

- Update a new namespace.
```bash
eventhubs namespace update --resource-group myresourcegroup --name mynamespace --tags tag=value --enable-auto-inflate True
```
20 changes: 20 additions & 0 deletions Commands/eventhubs/namespace/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# [Group] _eventhubs namespace_

NamespaceV2

## Commands

- [create](/Commands/eventhubs/namespace/_create.md)
: Create a namespace. Once created, this namespace's resource manifest is immutable. This operation is idempotent.

- [delete](/Commands/eventhubs/namespace/_delete.md)
: Delete an existing namespace. This operation also removes all associated resources under the namespace.

- [list](/Commands/eventhubs/namespace/_list.md)
: List the available Namespaces within a resource group.

- [show](/Commands/eventhubs/namespace/_show.md)
: Get the description of the specified namespace.

- [update](/Commands/eventhubs/namespace/_update.md)
: Update a namespace. Once created, this namespace's resource manifest is immutable. This operation is idempotent.
8 changes: 8 additions & 0 deletions Commands/eventhubs/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# [Group] _eventhubs_

NamespaceV2

## Subgroups

- [namespace](/Commands/eventhubs/namespace/readme.md)
: NamespaceV2
3 changes: 3 additions & 0 deletions Commands/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@
- [elastic-san](/Commands/elastic-san/readme.md)
: Manage Elastic SAN.

- [eventhubs](/Commands/eventhubs/readme.md)
: NamespaceV2

- [fluid-relay](/Commands/fluid-relay/readme.md)
: Manage Fluid Relay

Expand Down
183 changes: 183 additions & 0 deletions Commands/tree.json
Original file line number Diff line number Diff line change
Expand Up @@ -8518,6 +8518,189 @@
"elastic-san"
]
},
"eventhubs": {
"commandGroups": {
"namespace": {
"commands": {
"create": {
"help": {
"short": "Create a namespace. Once created, this namespace's resource manifest is immutable. This operation is idempotent."
},
"names": [
"eventhubs",
"namespace",
"create"
],
"versions": [
{
"examples": [
{
"commands": [
"eventhubs namespace create --resource-group myresourcegroup --name mynamespace --location westus --tags tag1=value1 tag2=value2 --sku Standard --enable-auto-inflate"
],
"name": "Creates a new namespace."
},
{
"commands": [
"eventhubs namespace create --resource-group myresourcegroup --name mynamespace --location westus --sku Premium --mi-user-assigned /subscriptions/{subscriptionId}/resourceGroups/{resourcegroup}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/MSIName --encryption-config key-name=key1 key-vault-uri=https://mykeyvault.vault.azure.net/ user-assigned-identity=/subscriptions/{subscriptionId}}/resourceGroups/{resourcegroup}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/MSIName --encryption-config key-name=key1 key-vault-uri=https://mykeyvault.vault.azure.net/ user-assigned-identity=/subscriptions/{subscriptionId}}/resourceGroups/{resourcegroup}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/MSIName"
],
"name": "Creates a new namespace with Identity & Encryption Enabled"
}
],
"name": "2022-01-01-preview",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.eventhub/namespaces/{}",
"plane": "mgmt-plane",
"version": "2022-01-01-preview"
}
]
}
]
},
"delete": {
"help": {
"short": "Delete an existing namespace. This operation also removes all associated resources under the namespace."
},
"names": [
"eventhubs",
"namespace",
"delete"
],
"versions": [
{
"examples": [
{
"commands": [
"eventhubs namespace delete --resource-group myresourcegroup --name mynamespace"
],
"name": "Delete the Namespace"
}
],
"name": "2022-01-01-preview",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.eventhub/namespaces/{}",
"plane": "mgmt-plane",
"version": "2022-01-01-preview"
}
]
}
]
},
"list": {
"help": {
"short": "List the available Namespaces within a resource group."
},
"names": [
"eventhubs",
"namespace",
"list"
],
"versions": [
{
"examples": [
{
"commands": [
"eventhubs namespace list --resource-group myresourcegroup"
],
"name": "List the Event Hubs Namespaces by resource group."
},
{
"commands": [
"eventhubs namespace list"
],
"name": "Get the Namespaces by Subscription."
}
],
"name": "2022-01-01-preview",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.eventhub/namespaces",
"plane": "mgmt-plane",
"version": "2022-01-01-preview"
}
]
}
]
},
"show": {
"help": {
"short": "Get the description of the specified namespace."
},
"names": [
"eventhubs",
"namespace",
"show"
],
"versions": [
{
"examples": [
{
"commands": [
"eventhubs namespace show --resource-group myresourcegroup --name mynamespace"
],
"name": "shows the Namespace details."
}
],
"name": "2022-01-01-preview",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.eventhub/namespaces/{}",
"plane": "mgmt-plane",
"version": "2022-01-01-preview"
}
]
}
]
},
"update": {
"help": {
"short": "Update a namespace. Once created, this namespace's resource manifest is immutable. This operation is idempotent."
},
"names": [
"eventhubs",
"namespace",
"update"
],
"versions": [
{
"examples": [
{
"commands": [
"eventhubs namespace update --resource-group myresourcegroup --name mynamespace --tags tag=value --enable-auto-inflate True"
],
"name": "Update a new namespace."
}
],
"name": "2022-01-01-preview",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.eventhub/namespaces/{}",
"plane": "mgmt-plane",
"version": "2022-01-01-preview"
}
]
}
]
}
},
"help": {
"short": "NamespaceV2"
},
"names": [
"eventhubs",
"namespace"
]
}
},
"help": {
"short": "NamespaceV2"
},
"names": [
"eventhubs"
]
},
"fluid-relay": {
"commandGroups": {
"container": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.eventhub/namespaces", "version": "2022-01-01-preview", "swagger": "mgmt-plane/eventhub/ResourceProviders/Microsoft.EventHub/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRIdWIvbmFtZXNwYWNlcw==/V/MjAyMi0wMS0wMS1wcmV2aWV3"}], "commandGroups": [{"name": "eventhubs namespace", "commands": [{"name": "list", "version": "2022-01-01-preview", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.eventhub/namespaces", "version": "2022-01-01-preview", "swagger": "mgmt-plane/eventhub/ResourceProviders/Microsoft.EventHub/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRIdWIvbmFtZXNwYWNlcw==/V/MjAyMi0wMS0wMS1wcmV2aWV3"}], "argGroups": [{"name": "", "args": [{"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "operations": [{"operationId": "Namespaces_ListByResourceGroup", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"maxLength": 90, "minLength": 1}}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01-preview"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"type": "string", "name": "nextLink"}, {"type": "array<object>", "name": "value", "item": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.EventHub/namespaces/{}"}}, {"type": "IdentityObject", "name": "identity", "props": [{"readOnly": true, "type": "string", "name": "principalId"}, {"readOnly": true, "type": "string", "name": "tenantId"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "None"}, {"value": "SystemAssigned"}, {"value": "SystemAssigned, UserAssigned"}, {"value": "UserAssigned"}]}}, {"type": "object", "name": "userAssignedIdentities", "additionalProps": {"item": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "clientId"}, {"readOnly": true, "type": "string", "name": "principalId"}]}}}]}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "string", "name": "alternateName"}, {"type": "string", "name": "clusterArmId"}, {"readOnly": true, "type": "dateTime", "name": "createdAt"}, {"type": "boolean", "name": "disableLocalAuth"}, {"type": "object", "name": "encryption", "props": [{"default": {"value": "Microsoft.KeyVault"}, "type": "string", "name": "keySource", "enum": {"items": [{"value": "Microsoft.KeyVault"}]}}, {"type": "array<object>", "name": "keyVaultProperties", "item": {"type": "object", "props": [{"type": "object", "name": "identity", "props": [{"type": "string", "name": "userAssignedIdentity"}], "clientFlatten": true}, {"type": "string", "name": "keyName"}, {"type": "string", "name": "keyVaultUri"}, {"type": "string", "name": "keyVersion"}]}}, {"type": "boolean", "name": "requireInfrastructureEncryption"}]}, {"type": "boolean", "name": "isAutoInflateEnabled"}, {"type": "boolean", "name": "kafkaEnabled"}, {"type": "integer32", "name": "maximumThroughputUnits"}, {"readOnly": true, "type": "string", "name": "metricId"}, {"type": "string", "name": "minimumTlsVersion", "enum": {"items": [{"value": "1.0"}, {"value": "1.1"}, {"value": "1.2"}]}}, {"type": "array<object>", "name": "privateEndpointConnections", "item": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.EventHub/namespaces/{}/privateEndpointConnections/{}"}}, {"readOnly": true, "type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "object", "name": "privateEndpoint", "props": [{"type": "string", "name": "id"}]}, {"type": "object", "name": "privateLinkServiceConnectionState", "props": [{"type": "string", "name": "description"}, {"type": "string", "name": "status", "enum": {"items": [{"value": "Approved"}, {"value": "Disconnected"}, {"value": "Pending"}, {"value": "Rejected"}]}}]}, {"type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Canceled"}, {"value": "Creating"}, {"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}], "clientFlatten": true}, {"readOnly": true, "type": "@SystemData_read", "name": "systemData"}, {"readOnly": true, "type": "string", "name": "type"}]}}, {"readOnly": true, "type": "string", "name": "provisioningState"}, {"default": {"value": "Enabled"}, "type": "string", "name": "publicNetworkAccess", "enum": {"items": [{"value": "Disabled"}, {"value": "Enabled"}, {"value": "SecuredByPerimeter"}]}}, {"readOnly": true, "type": "string", "name": "serviceBusEndpoint"}, {"readOnly": true, "type": "string", "name": "status"}, {"readOnly": true, "type": "dateTime", "name": "updatedAt"}, {"type": "boolean", "name": "zoneRedundant"}], "clientFlatten": true}, {"type": "object", "name": "sku", "props": [{"type": "integer32", "name": "capacity", "format": {"minimum": 0}}, {"type": "string", "name": "name", "required": true, "enum": {"items": [{"value": "Basic"}, {"value": "Premium"}, {"value": "Standard"}]}}, {"type": "string", "name": "tier", "enum": {"items": [{"value": "Basic"}, {"value": "Premium"}, {"value": "Standard"}]}}]}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt"}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt"}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}], "cls": "SystemData_read"}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}]}}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "array", "ref": "$Instance.value", "clientFlatten": true, "nextLink": "$Instance.nextLink"}]}]}]}
Loading

0 comments on commit a513eed

Please sign in to comment.