-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3544 from terraform-providers/f/refactor
Refactor: migrating clients into packages
- Loading branch information
Showing
133 changed files
with
594 additions
and
498 deletions.
There are no files selected for viewing
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
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
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 |
---|---|---|
@@ -1,13 +1,10 @@ | ||
package azurerm | ||
|
||
import ( | ||
"os" | ||
"strings" | ||
) | ||
import "github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/flags" | ||
|
||
// NOTE: we'll need to add an infobox to MySQL|PostgreSQL Configuration when this goes live | ||
// since these resources can't support import | ||
// in addition the virtual resources will need adjusting | ||
|
||
// This file contains feature flags for functionality which will prove more challenging to implement en-mass | ||
var requireResourcesToBeImported = strings.EqualFold(os.Getenv("ARM_PROVIDER_STRICT"), "true") | ||
var requireResourcesToBeImported = flags.RequireResourcesToBeImported |
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,13 @@ | ||
package flags | ||
|
||
import ( | ||
"os" | ||
"strings" | ||
) | ||
|
||
// NOTE: we'll need to add an infobox to MySQL|PostgreSQL Configuration when this goes live | ||
// since these resources can't support import | ||
// in addition the virtual resources will need adjusting | ||
|
||
// This file contains feature flags for functionality which will prove more challenging to implement en-mass | ||
var RequireResourcesToBeImported = strings.EqualFold(os.Getenv("ARM_PROVIDER_STRICT"), "true") |
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,29 @@ | ||
package apimgmt | ||
|
||
import "github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement" | ||
|
||
type Client struct { | ||
ApiClient apimanagement.APIClient | ||
ApiPoliciesClient apimanagement.APIPolicyClient | ||
ApiOperationsClient apimanagement.APIOperationClient | ||
ApiOperationPoliciesClient apimanagement.APIOperationPolicyClient | ||
ApiSchemasClient apimanagement.APISchemaClient | ||
ApiVersionSetClient apimanagement.APIVersionSetClient | ||
AuthorizationServersClient apimanagement.AuthorizationServerClient | ||
CertificatesClient apimanagement.CertificateClient | ||
GroupClient apimanagement.GroupClient | ||
GroupUsersClient apimanagement.GroupUserClient | ||
LoggerClient apimanagement.LoggerClient | ||
OpenIdConnectClient apimanagement.OpenIDConnectProviderClient | ||
PolicyClient apimanagement.PolicyClient | ||
ProductsClient apimanagement.ProductClient | ||
ProductApisClient apimanagement.ProductAPIClient | ||
ProductGroupsClient apimanagement.ProductGroupClient | ||
ProductPoliciesClient apimanagement.ProductPolicyClient | ||
PropertyClient apimanagement.PropertyClient | ||
ServiceClient apimanagement.ServiceClient | ||
SignInClient apimanagement.SignInSettingsClient | ||
SignUpClient apimanagement.SignUpSettingsClient | ||
SubscriptionsClient apimanagement.SubscriptionClient | ||
UsersClient apimanagement.UserClient | ||
} |
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,16 @@ | ||
package automation | ||
|
||
import "github.com/Azure/azure-sdk-for-go/services/automation/mgmt/2015-10-31/automation" | ||
|
||
type Client struct { | ||
AccountClient automation.AccountClient | ||
AgentRegistrationInfoClient automation.AgentRegistrationInformationClient | ||
CredentialClient automation.CredentialClient | ||
DscConfigurationClient automation.DscConfigurationClient | ||
DscNodeConfigurationClient automation.DscNodeConfigurationClient | ||
ModuleClient automation.ModuleClient | ||
RunbookClient automation.RunbookClient | ||
RunbookDraftClient automation.RunbookDraftClient | ||
ScheduleClient automation.ScheduleClient | ||
VariableClient automation.VariableClient | ||
} |
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,15 @@ | ||
package containers | ||
|
||
import ( | ||
"github.com/Azure/azure-sdk-for-go/services/containerinstance/mgmt/2018-10-01/containerinstance" | ||
"github.com/Azure/azure-sdk-for-go/services/containerregistry/mgmt/2017-10-01/containerregistry" | ||
"github.com/Azure/azure-sdk-for-go/services/containerservice/mgmt/2019-02-01/containerservice" | ||
) | ||
|
||
type Client struct { | ||
KubernetesClustersClient containerservice.ManagedClustersClient | ||
GroupsClient containerinstance.ContainerGroupsClient | ||
RegistryClient containerregistry.RegistriesClient | ||
RegistryReplicationsClient containerregistry.ReplicationsClient | ||
ServicesClient containerservice.ContainerServicesClient | ||
} |
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,7 @@ | ||
package devspace | ||
|
||
import "github.com/Azure/azure-sdk-for-go/services/preview/devspaces/mgmt/2018-06-01-preview/devspaces" | ||
|
||
type Client struct { | ||
ControllersClient devspaces.ControllersClient | ||
} |
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,8 @@ | ||
package dns | ||
|
||
import "github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns" | ||
|
||
type Client struct { | ||
RecordSetsClient dns.RecordSetsClient | ||
ZonesClient dns.ZonesClient | ||
} |
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,9 @@ | ||
package hdinsight | ||
|
||
import "github.com/Azure/azure-sdk-for-go/services/preview/hdinsight/mgmt/2018-06-01-preview/hdinsight" | ||
|
||
type Client struct { | ||
ApplicationsClient hdinsight.ApplicationsClient | ||
ClustersClient hdinsight.ClustersClient | ||
ConfigurationsClient hdinsight.ConfigurationsClient | ||
} |
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,12 @@ | ||
package loganalytics | ||
|
||
import ( | ||
"github.com/Azure/azure-sdk-for-go/services/preview/operationalinsights/mgmt/2015-11-01-preview/operationalinsights" | ||
"github.com/Azure/azure-sdk-for-go/services/preview/operationsmanagement/mgmt/2015-11-01-preview/operationsmanagement" | ||
) | ||
|
||
type Client struct { | ||
LinkedServicesClient operationalinsights.LinkedServicesClient | ||
SolutionsClient operationsmanagement.SolutionsClient | ||
WorkspacesClient operationalinsights.WorkspacesClient | ||
} |
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,7 @@ | ||
package media | ||
|
||
import "github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2018-07-01/media" | ||
|
||
type Client struct { | ||
ServicesClient media.MediaservicesClient | ||
} |
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,9 @@ | ||
package redis | ||
|
||
import "github.com/Azure/azure-sdk-for-go/services/redis/mgmt/2018-03-01/redis" | ||
|
||
type Client struct { | ||
Client redis.Client | ||
FirewallRulesClient redis.FirewallRulesClient | ||
PatchSchedulesClient redis.PatchSchedulesClient | ||
} |
Oops, something went wrong.