Skip to content

Commit

Permalink
more remove beta flags (custom endpoints)
Browse files Browse the repository at this point in the history
  • Loading branch information
emilymye committed Jun 15, 2019
1 parent ff9fb98 commit 844a0df
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions third_party/terraform/utils/provider.go.erb
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ func Provider() terraform.ResourceProvider {
<% unless version == 'ga' -%>
// start beta-only products
IAPCustomEndpointEntryKey: IAPCustomEndpointEntry,
ServiceNetworkingCustomEndpointEntryKey: ServiceNetworkingCustomEndpointEntry,
// end beta-only products
<% end -%>
CloudBillingCustomEndpointEntryKey: CloudBillingCustomEndpointEntry,
Expand All @@ -126,6 +125,7 @@ func Provider() terraform.ResourceProvider {
RuntimeconfigCustomEndpointEntryKey: RuntimeconfigCustomEndpointEntry,
IAMCustomEndpointEntryKey: IAMCustomEndpointEntry,
ServiceManagementCustomEndpointEntryKey: ServiceManagementCustomEndpointEntry,
ServiceNetworkingCustomEndpointEntryKey: ServiceNetworkingCustomEndpointEntry,
ServiceUsageCustomEndpointEntryKey: ServiceUsageCustomEndpointEntry,
BigQueryCustomEndpointEntryKey: BigQueryCustomEndpointEntry,
CloudFunctionsCustomEndpointEntryKey: CloudFunctionsCustomEndpointEntry,
Expand Down Expand Up @@ -402,7 +402,6 @@ func providerConfigure(d *schema.ResourceData) (interface{}, error) {

<% unless version == 'ga' -%>
config.IAPBasePath = d.Get(IAPCustomEndpointEntryKey).(string)
config.ServiceNetworkingBasePath = d.Get(ServiceNetworkingCustomEndpointEntryKey).(string)
<% end -%>
config.CloudBillingBasePath = d.Get(CloudBillingCustomEndpointEntryKey).(string)
config.ComposerBasePath = d.Get(ComposerCustomEndpointEntryKey).(string)
Expand All @@ -419,6 +418,7 @@ func providerConfigure(d *schema.ResourceData) (interface{}, error) {
config.RuntimeconfigBasePath = d.Get(RuntimeconfigCustomEndpointEntryKey).(string)
config.IAMBasePath = d.Get(IAMCustomEndpointEntryKey).(string)
config.ServiceManagementBasePath = d.Get(ServiceManagementCustomEndpointEntryKey).(string)
config.ServiceNetworkingBasePath = d.Get(ServiceNetworkingCustomEndpointEntryKey).(string)
config.ServiceUsageBasePath = d.Get(ServiceUsageCustomEndpointEntryKey).(string)
config.BigQueryBasePath = d.Get(BigQueryCustomEndpointEntryKey).(string)
config.CloudFunctionsBasePath = d.Get(CloudFunctionsCustomEndpointEntryKey).(string)
Expand Down Expand Up @@ -467,7 +467,6 @@ func ConfigureBasePaths(c *Config) {
<% unless version == 'ga' -%>
// start beta-only products
c.IAPBasePath = IAPDefaultBasePath
c.ServiceNetworkingBasePath = ServiceNetworkingDefaultBasePath
// end beta-only products
<% end -%>
c.CloudBillingBasePath = CloudBillingDefaultBasePath
Expand All @@ -484,6 +483,7 @@ func ConfigureBasePaths(c *Config) {
c.RuntimeconfigBasePath = RuntimeconfigDefaultBasePath
c.IAMBasePath = IAMDefaultBasePath
c.ServiceManagementBasePath = ServiceManagementDefaultBasePath
c.ServiceNetworkingBasePath = ServiceNetworkingDefaultBasePath
c.ServiceUsageBasePath = ServiceUsageDefaultBasePath
c.BigQueryBasePath = BigQueryDefaultBasePath
c.CloudFunctionsBasePath = CloudFunctionsDefaultBasePath
Expand Down

0 comments on commit 844a0df

Please sign in to comment.