diff --git a/ns1/config.go b/ns1/config.go index b7792000..4343edc1 100644 --- a/ns1/config.go +++ b/ns1/config.go @@ -29,7 +29,6 @@ type Config struct { Key string Endpoint string IgnoreSSL bool - EnableDDI bool RateLimitParallelism int RetryMax int UserAgent string @@ -69,10 +68,6 @@ func (c *Config) Client() (*ns1.Client, error) { httpClient.Transport = tr } - if c.EnableDDI { - decos = append(decos, ns1.SetDDIAPI()) - } - // If NS1_DEBUG is set, define custom Doer to log HTTP requests made by SDK if os.Getenv("NS1_DEBUG") != "" { doer := ns1.Decorate(httpClient, Logging()) diff --git a/ns1/provider.go b/ns1/provider.go index 953ec3ed..63405db6 100644 --- a/ns1/provider.go +++ b/ns1/provider.go @@ -30,12 +30,6 @@ func Provider() *schema.Provider { DefaultFunc: schema.EnvDefaultFunc("NS1_IGNORE_SSL", nil), Description: descriptions["ignore_ssl"], }, - "enable_ddi": { - Type: schema.TypeBool, - Optional: true, - DefaultFunc: schema.EnvDefaultFunc("NS1_ENABLE_DDI", nil), - Description: descriptions["enable_ddi"], - }, "rate_limit_parallelism": { Type: schema.TypeInt, Optional: true, @@ -108,9 +102,6 @@ func ns1Configure(d *schema.ResourceData) (interface{}, error) { if v, ok := d.GetOk("ignore_ssl"); ok { config.IgnoreSSL = v.(bool) } - if v, ok := d.GetOk("enable_ddi"); ok { - config.EnableDDI = v.(bool) - } if v, ok := d.GetOk("rate_limit_parallelism"); ok { config.RateLimitParallelism = v.(int) } @@ -134,7 +125,6 @@ func init() { "rate_limit_parallelism": "Tune response to rate limits, see docs", "retry_max": "Maximum retries for 50x errors (-1 to disable)", "user_agent": "User-Agent string to use in NS1 API requests", - "enable_ddi": "Deprecated, no longer in use", } structs.DefaultTagName = "json"