-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch more client registrations to new format (#3895)
- Loading branch information
Showing
98 changed files
with
510 additions
and
424 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package authorization | ||
|
||
import ( | ||
"github.com/Azure/azure-sdk-for-go/services/preview/authorization/mgmt/2018-01-01-preview/authorization" | ||
"github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/common" | ||
) | ||
|
||
type Client struct { | ||
RoleAssignmentsClient authorization.RoleAssignmentsClient | ||
RoleDefinitionsClient authorization.RoleDefinitionsClient | ||
} | ||
|
||
func BuildClient(o *common.ClientOptions) *Client { | ||
c := Client{} | ||
|
||
c.RoleAssignmentsClient = authorization.NewRoleAssignmentsClientWithBaseURI(o.ResourceManagerEndpoint, o.SubscriptionId) | ||
o.ConfigureClient(&c.RoleAssignmentsClient.Client, o.ResourceManagerAuthorizer) | ||
|
||
c.RoleDefinitionsClient = authorization.NewRoleDefinitionsClientWithBaseURI(o.ResourceManagerEndpoint, o.SubscriptionId) | ||
o.ConfigureClient(&c.RoleDefinitionsClient.Client, o.ResourceManagerAuthorizer) | ||
|
||
return &c | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package batch | ||
|
||
import ( | ||
"github.com/Azure/azure-sdk-for-go/services/batch/mgmt/2018-12-01/batch" | ||
"github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/common" | ||
) | ||
|
||
type Client struct { | ||
AccountClient batch.AccountClient | ||
ApplicationClient batch.ApplicationClient | ||
CertificateClient batch.CertificateClient | ||
PoolClient batch.PoolClient | ||
} | ||
|
||
func BuildClient(o *common.ClientOptions) *Client { | ||
c := Client{} | ||
|
||
c.AccountClient = batch.NewAccountClientWithBaseURI(o.ResourceManagerEndpoint, o.SubscriptionId) | ||
o.ConfigureClient(&c.AccountClient.Client, o.ResourceManagerAuthorizer) | ||
|
||
c.ApplicationClient = batch.NewApplicationClientWithBaseURI(o.ResourceManagerEndpoint, o.SubscriptionId) | ||
o.ConfigureClient(&c.ApplicationClient.Client, o.ResourceManagerAuthorizer) | ||
|
||
c.CertificateClient = batch.NewCertificateClientWithBaseURI(o.ResourceManagerEndpoint, o.SubscriptionId) | ||
o.ConfigureClient(&c.CertificateClient.Client, o.ResourceManagerAuthorizer) | ||
|
||
c.PoolClient = batch.NewPoolClientWithBaseURI(o.ResourceManagerEndpoint, o.SubscriptionId) | ||
o.ConfigureClient(&c.PoolClient.Client, o.ResourceManagerAuthorizer) | ||
|
||
return &c | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package cosmos | ||
|
||
import ( | ||
"github.com/Azure/azure-sdk-for-go/services/cosmos-db/mgmt/2015-04-08/documentdb" | ||
"github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/common" | ||
) | ||
|
||
type Client struct { | ||
DatabaseClient documentdb.DatabaseAccountsClient | ||
} | ||
|
||
func BuildClient(o *common.ClientOptions) *Client { | ||
c := Client{} | ||
|
||
c.DatabaseClient = documentdb.NewDatabaseAccountsClientWithBaseURI(o.ResourceManagerEndpoint, o.SubscriptionId) | ||
o.ConfigureClient(&c.DatabaseClient.Client, o.ResourceManagerAuthorizer) | ||
|
||
return &c | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package keyvault | ||
|
||
import ( | ||
keyvaultmgmt "github.com/Azure/azure-sdk-for-go/services/keyvault/2016-10-01/keyvault" | ||
"github.com/Azure/azure-sdk-for-go/services/keyvault/mgmt/2018-02-14/keyvault" | ||
"github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/common" | ||
) | ||
|
||
type Client struct { | ||
VaultsClient keyvault.VaultsClient | ||
ManagementClient keyvaultmgmt.BaseClient | ||
} | ||
|
||
func BuildClient(o *common.ClientOptions) *Client { | ||
c := Client{} | ||
|
||
c.VaultsClient = keyvault.NewVaultsClientWithBaseURI(o.ResourceManagerEndpoint, o.SubscriptionId) | ||
o.ConfigureClient(&c.VaultsClient.Client, o.ResourceManagerAuthorizer) | ||
|
||
c.ManagementClient = keyvaultmgmt.New() | ||
o.ConfigureClient(&c.ManagementClient.Client, o.KeyVaultAuthorizer) | ||
|
||
return &c | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package mariadb | ||
|
||
import ( | ||
"github.com/Azure/azure-sdk-for-go/services/mariadb/mgmt/2018-06-01/mariadb" | ||
"github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/common" | ||
) | ||
|
||
type Client struct { | ||
DatabasesClient mariadb.DatabasesClient | ||
FirewallRulesClient mariadb.FirewallRulesClient | ||
ServersClient mariadb.ServersClient | ||
} | ||
|
||
func BuildClient(o *common.ClientOptions) *Client { | ||
c := Client{} | ||
|
||
c.DatabasesClient = mariadb.NewDatabasesClientWithBaseURI(o.ResourceManagerEndpoint, o.SubscriptionId) | ||
o.ConfigureClient(&c.DatabasesClient.Client, o.ResourceManagerAuthorizer) | ||
|
||
c.FirewallRulesClient = mariadb.NewFirewallRulesClientWithBaseURI(o.ResourceManagerEndpoint, o.SubscriptionId) | ||
o.ConfigureClient(&c.FirewallRulesClient.Client, o.ResourceManagerAuthorizer) | ||
|
||
c.ServersClient = mariadb.NewServersClientWithBaseURI(o.ResourceManagerEndpoint, o.SubscriptionId) | ||
o.ConfigureClient(&c.ServersClient.Client, o.ResourceManagerAuthorizer) | ||
|
||
return &c | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package mysql | ||
|
||
import ( | ||
"github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2017-12-01/mysql" | ||
"github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/common" | ||
) | ||
|
||
type Client struct { | ||
ConfigurationsClient mysql.ConfigurationsClient | ||
DatabasesClient mysql.DatabasesClient | ||
FirewallRulesClient mysql.FirewallRulesClient | ||
ServersClient mysql.ServersClient | ||
VirtualNetworkRulesClient mysql.VirtualNetworkRulesClient | ||
} | ||
|
||
func BuildClient(o *common.ClientOptions) *Client { | ||
c := Client{} | ||
|
||
c.ConfigurationsClient = mysql.NewConfigurationsClientWithBaseURI(o.ResourceManagerEndpoint, o.SubscriptionId) | ||
o.ConfigureClient(&c.ConfigurationsClient.Client, o.ResourceManagerAuthorizer) | ||
|
||
c.DatabasesClient = mysql.NewDatabasesClientWithBaseURI(o.ResourceManagerEndpoint, o.SubscriptionId) | ||
o.ConfigureClient(&c.DatabasesClient.Client, o.ResourceManagerAuthorizer) | ||
|
||
c.FirewallRulesClient = mysql.NewFirewallRulesClientWithBaseURI(o.ResourceManagerEndpoint, o.SubscriptionId) | ||
o.ConfigureClient(&c.FirewallRulesClient.Client, o.ResourceManagerAuthorizer) | ||
|
||
c.ServersClient = mysql.NewServersClientWithBaseURI(o.ResourceManagerEndpoint, o.SubscriptionId) | ||
o.ConfigureClient(&c.ServersClient.Client, o.ResourceManagerAuthorizer) | ||
|
||
c.VirtualNetworkRulesClient = mysql.NewVirtualNetworkRulesClientWithBaseURI(o.ResourceManagerEndpoint, o.SubscriptionId) | ||
o.ConfigureClient(&c.VirtualNetworkRulesClient.Client, o.ResourceManagerAuthorizer) | ||
|
||
return &c | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package postgres | ||
|
||
import ( | ||
"github.com/Azure/azure-sdk-for-go/services/postgresql/mgmt/2017-12-01/postgresql" | ||
"github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/common" | ||
) | ||
|
||
type Client struct { | ||
ConfigurationsClient postgresql.ConfigurationsClient | ||
DatabasesClient postgresql.DatabasesClient | ||
FirewallRulesClient postgresql.FirewallRulesClient | ||
ServersClient postgresql.ServersClient | ||
VirtualNetworkRulesClient postgresql.VirtualNetworkRulesClient | ||
} | ||
|
||
func BuildClient(o *common.ClientOptions) *Client { | ||
c := Client{} | ||
|
||
c.ConfigurationsClient = postgresql.NewConfigurationsClientWithBaseURI(o.ResourceManagerEndpoint, o.SubscriptionId) | ||
o.ConfigureClient(&c.ConfigurationsClient.Client, o.ResourceManagerAuthorizer) | ||
|
||
c.DatabasesClient = postgresql.NewDatabasesClientWithBaseURI(o.ResourceManagerEndpoint, o.SubscriptionId) | ||
o.ConfigureClient(&c.DatabasesClient.Client, o.ResourceManagerAuthorizer) | ||
|
||
c.FirewallRulesClient = postgresql.NewFirewallRulesClientWithBaseURI(o.ResourceManagerEndpoint, o.SubscriptionId) | ||
o.ConfigureClient(&c.FirewallRulesClient.Client, o.ResourceManagerAuthorizer) | ||
|
||
c.ServersClient = postgresql.NewServersClientWithBaseURI(o.ResourceManagerEndpoint, o.SubscriptionId) | ||
o.ConfigureClient(&c.ServersClient.Client, o.ResourceManagerAuthorizer) | ||
|
||
c.VirtualNetworkRulesClient = postgresql.NewVirtualNetworkRulesClientWithBaseURI(o.ResourceManagerEndpoint, o.SubscriptionId) | ||
o.ConfigureClient(&c.VirtualNetworkRulesClient.Client, o.ResourceManagerAuthorizer) | ||
|
||
return &c | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package streamanalytics | ||
|
||
import ( | ||
"github.com/Azure/azure-sdk-for-go/services/streamanalytics/mgmt/2016-03-01/streamanalytics" | ||
"github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/common" | ||
) | ||
|
||
type Client struct { | ||
FunctionsClient streamanalytics.FunctionsClient | ||
JobsClient streamanalytics.StreamingJobsClient | ||
InputsClient streamanalytics.InputsClient | ||
OutputsClient streamanalytics.OutputsClient | ||
TransformationsClient streamanalytics.TransformationsClient | ||
} | ||
|
||
func BuildClient(o *common.ClientOptions) *Client { | ||
c := Client{} | ||
|
||
c.FunctionsClient = streamanalytics.NewFunctionsClientWithBaseURI(o.ResourceManagerEndpoint, o.SubscriptionId) | ||
o.ConfigureClient(&c.FunctionsClient.Client, o.ResourceManagerAuthorizer) | ||
|
||
c.JobsClient = streamanalytics.NewStreamingJobsClientWithBaseURI(o.ResourceManagerEndpoint, o.SubscriptionId) | ||
o.ConfigureClient(&c.JobsClient.Client, o.ResourceManagerAuthorizer) | ||
|
||
c.InputsClient = streamanalytics.NewInputsClientWithBaseURI(o.ResourceManagerEndpoint, o.SubscriptionId) | ||
o.ConfigureClient(&c.InputsClient.Client, o.ResourceManagerAuthorizer) | ||
|
||
c.OutputsClient = streamanalytics.NewOutputsClientWithBaseURI(o.ResourceManagerEndpoint, o.SubscriptionId) | ||
o.ConfigureClient(&c.OutputsClient.Client, o.ResourceManagerAuthorizer) | ||
|
||
c.TransformationsClient = streamanalytics.NewTransformationsClientWithBaseURI(o.ResourceManagerEndpoint, o.SubscriptionId) | ||
o.ConfigureClient(&c.TransformationsClient.Client, o.ResourceManagerAuthorizer) | ||
return &c | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.