Skip to content

Commit

Permalink
Removing the eventHubPath field since it appears to be deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
tombuildsstuff committed Nov 8, 2016
1 parent aa0041b commit b40a5bb
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,6 @@ func resourceArmEventHubConsumerGroup() *schema.Resource {
ForceNew: true,
},

"eventhub_path": {
Type: schema.TypeString,
Required: true,
},

"user_metadata": {
Type: schema.TypeString,
Optional: true,
Expand All @@ -74,13 +69,11 @@ func resourceArmEventHubConsumerGroupCreate(d *schema.ResourceData, meta interfa
eventHubName := d.Get("eventhub_name").(string)
location := d.Get("location").(string)
resGroup := d.Get("resource_group_name").(string)
eventHubPath := d.Get("eventhub_path").(string)
userMetaData := d.Get("user_metadata").(string)

parameters := eventhub.ConsumerGroupCreateOrUpdateParameters{
Location: &location,
Properties: &eventhub.ConsumerGroupProperties{
EventHubPath: &eventHubPath,
UserMetadata: &userMetaData,
},
}
Expand Down Expand Up @@ -131,7 +124,6 @@ func resourceArmEventHubConsumerGroupRead(d *schema.ResourceData, meta interface
d.Set("resource_group_name", resGroup)
d.Set("location", azureRMNormalizeLocation(*resp.Location))

d.Set("eventhub_path", resp.Properties.EventHubPath)
d.Set("user_metadata", resp.Properties.UserMetadata)

return nil
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,6 @@ resource "azurerm_eventhub_consumer_group" "test" {
eventhub_name = "${azurerm_eventhub.test.name}"
resource_group_name = "${azurerm_resource_group.test.name}"
location = "${azurerm_resource_group.test.location}"
eventhub_path = "some-event-path"
}
`

Expand Down Expand Up @@ -169,7 +167,6 @@ resource "azurerm_eventhub_consumer_group" "test" {
resource_group_name = "${azurerm_resource_group.test.name}"
location = "${azurerm_resource_group.test.location}"
eventhub_path = "some-event-path"
user_metadata = "some-meta-data"
}
`
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ resource "azurermeventhub_consumer_group" "test" {
resource_group_name = "${azurerm_resource_group.test.name}"
location = "${azurerm_resource_group.test.location}"
eventhub_path = "some-event-path"
user_metadata = "some-meta-data"
}
```
Expand All @@ -63,8 +62,6 @@ The following arguments are supported:

* `location` - (Required) Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

* `eventhub_path` - (Required) Specifies the path of the event hub.

* `user_metadata` - (Optional) Specifies the user metadata.

## Attributes Reference
Expand Down

0 comments on commit b40a5bb

Please sign in to comment.