Skip to content

Commit

Permalink
r/eventgrid_system_topic_event_subscription
Browse files Browse the repository at this point in the history
  • Loading branch information
jrauschenbusch committed Dec 16, 2020
1 parent 9891508 commit a31e64d
Show file tree
Hide file tree
Showing 15 changed files with 2,591 additions and 1,115 deletions.
25 changes: 15 additions & 10 deletions azurerm/internal/services/eventgrid/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ import (
)

type Client struct {
DomainsClient *eventgrid.DomainsClient
DomainTopicsClient *eventgrid.DomainTopicsClient
EventSubscriptionsClient *eventgrid.EventSubscriptionsClient
TopicsClient *eventgrid.TopicsClient
SystemTopicsClient *eventgrid.SystemTopicsClient
DomainsClient *eventgrid.DomainsClient
DomainTopicsClient *eventgrid.DomainTopicsClient
EventSubscriptionsClient *eventgrid.EventSubscriptionsClient
TopicsClient *eventgrid.TopicsClient
SystemTopicsClient *eventgrid.SystemTopicsClient
SystemTopicEventSubscriptionsClient *eventgrid.SystemTopicEventSubscriptionsClient
}

func NewClient(o *common.ClientOptions) *Client {
Expand All @@ -29,11 +30,15 @@ func NewClient(o *common.ClientOptions) *Client {
SystemTopicsClient := eventgrid.NewSystemTopicsClientWithBaseURI(o.ResourceManagerEndpoint, o.SubscriptionId)
o.ConfigureClient(&SystemTopicsClient.Client, o.ResourceManagerAuthorizer)

SystemTopicEventSubscriptionsClient := eventgrid.NewSystemTopicEventSubscriptionsClientWithBaseURI(o.ResourceManagerEndpoint, o.SubscriptionId)
o.ConfigureClient(&SystemTopicEventSubscriptionsClient.Client, o.ResourceManagerAuthorizer)

return &Client{
DomainsClient: &DomainsClient,
EventSubscriptionsClient: &EventSubscriptionsClient,
DomainTopicsClient: &DomainTopicsClient,
TopicsClient: &TopicsClient,
SystemTopicsClient: &SystemTopicsClient,
DomainsClient: &DomainsClient,
EventSubscriptionsClient: &EventSubscriptionsClient,
DomainTopicsClient: &DomainTopicsClient,
TopicsClient: &TopicsClient,
SystemTopicsClient: &SystemTopicsClient,
SystemTopicEventSubscriptionsClient: &SystemTopicEventSubscriptionsClient,
}
}
Loading

0 comments on commit a31e64d

Please sign in to comment.