Skip to content

Commit

Permalink
Merge pull request #3123 from terraform-providers/f/api-management-au…
Browse files Browse the repository at this point in the history
…thorization-servers

New Resource: `azurerm_api_management_authorization_server`
  • Loading branch information
tombuildsstuff authored Mar 29, 2019
2 parents 1275653 + 1d10d55 commit 06179de
Show file tree
Hide file tree
Showing 7 changed files with 864 additions and 15 deletions.
33 changes: 19 additions & 14 deletions azurerm/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,20 +127,21 @@ type ArmClient struct {
redisPatchSchedulesClient redis.PatchSchedulesClient

// API Management
apiManagementApiClient apimanagement.APIClient
apiManagementApiOperationsClient apimanagement.APIOperationClient
apiManagementCertificatesClient apimanagement.CertificateClient
apiManagementGroupClient apimanagement.GroupClient
apiManagementGroupUsersClient apimanagement.GroupUserClient
apiManagementLoggerClient apimanagement.LoggerClient
apiManagementOpenIdConnectClient apimanagement.OpenIDConnectProviderClient
apiManagementProductsClient apimanagement.ProductClient
apiManagementProductApisClient apimanagement.ProductAPIClient
apiManagementProductGroupsClient apimanagement.ProductGroupClient
apiManagementPropertyClient apimanagement.PropertyClient
apiManagementServiceClient apimanagement.ServiceClient
apiManagementSubscriptionsClient apimanagement.SubscriptionClient
apiManagementUsersClient apimanagement.UserClient
apiManagementApiClient apimanagement.APIClient
apiManagementApiOperationsClient apimanagement.APIOperationClient
apiManagementAuthorizationServersClient apimanagement.AuthorizationServerClient
apiManagementCertificatesClient apimanagement.CertificateClient
apiManagementGroupClient apimanagement.GroupClient
apiManagementGroupUsersClient apimanagement.GroupUserClient
apiManagementLoggerClient apimanagement.LoggerClient
apiManagementOpenIdConnectClient apimanagement.OpenIDConnectProviderClient
apiManagementProductsClient apimanagement.ProductClient
apiManagementProductApisClient apimanagement.ProductAPIClient
apiManagementProductGroupsClient apimanagement.ProductGroupClient
apiManagementPropertyClient apimanagement.PropertyClient
apiManagementServiceClient apimanagement.ServiceClient
apiManagementSubscriptionsClient apimanagement.SubscriptionClient
apiManagementUsersClient apimanagement.UserClient

// Application Insights
appInsightsClient appinsights.ComponentsClient
Expand Down Expand Up @@ -509,6 +510,10 @@ func (c *ArmClient) registerApiManagementServiceClients(endpoint, subscriptionId
c.configureClient(&apiOperationsClient.Client, auth)
c.apiManagementApiOperationsClient = apiOperationsClient

authorizationServersClient := apimanagement.NewAuthorizationServerClientWithBaseURI(endpoint, subscriptionId)
c.configureClient(&authorizationServersClient.Client, auth)
c.apiManagementAuthorizationServersClient = authorizationServersClient

certificatesClient := apimanagement.NewCertificateClientWithBaseURI(endpoint, subscriptionId)
c.configureClient(&certificatesClient.Client, auth)
c.apiManagementCertificatesClient = certificatesClient
Expand Down
1 change: 1 addition & 0 deletions azurerm/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ func Provider() terraform.ResourceProvider {
"azurerm_api_management": resourceArmApiManagementService(),
"azurerm_api_management_api": resourceArmApiManagementApi(),
"azurerm_api_management_api_operation": resourceArmApiManagementApiOperation(),
"azurerm_api_management_authorization_server": resourceArmApiManagementAuthorizationServer(),
"azurerm_api_management_certificate": resourceArmApiManagementCertificate(),
"azurerm_api_management_group": resourceArmApiManagementGroup(),
"azurerm_api_management_group_user": resourceArmApiManagementGroupUser(),
Expand Down
Loading

0 comments on commit 06179de

Please sign in to comment.