diff --git a/apigee/resource_company_app.go b/apigee/resource_company_app.go index 652435b..5fdda40 100644 --- a/apigee/resource_company_app.go +++ b/apigee/resource_company_app.go @@ -36,11 +36,6 @@ func resourceCompanyApp() *schema.Resource { Type: schema.TypeMap, Optional: true, }, - "credentials": { - Type: schema.TypeList, - Computed: true, - Elem: &schema.Schema{Type: schema.TypeMap}, - }, "scopes": { Type: schema.TypeList, Optional: true, @@ -113,8 +108,6 @@ func resourceCompanyAppRead(d *schema.ResourceData, meta interface{}) error { //you might only ever have one credential... we'll see. scopes := flattenStringList(CompanyAppData.Credentials[0].Scopes) - credentials := mapFromCredentials(CompanyAppData.Credentials) - //Apigee does not return products in the order you send them oldApiProducts := getStringList("api_products", d) newApiProducts := apiProductsListFromCredentials(CompanyAppData.Credentials[0].ApiProducts) @@ -127,7 +120,6 @@ func resourceCompanyAppRead(d *schema.ResourceData, meta interface{}) error { d.Set("name", CompanyAppData.Name) d.Set("attributes", CompanyAppData.Attributes) - d.Set("credentials", credentials) d.Set("scopes", scopes) d.Set("callback_url", CompanyAppData.CallbackUrl) d.Set("app_id", CompanyAppData.AppId) diff --git a/apigee/resource_developer_app.go b/apigee/resource_developer_app.go index 19e5fb1..edaa4e5 100644 --- a/apigee/resource_developer_app.go +++ b/apigee/resource_developer_app.go @@ -40,11 +40,6 @@ func resourceDeveloperApp() *schema.Resource { Type: schema.TypeMap, Optional: true, }, - "credentials": { - Type: schema.TypeList, - Computed: true, - Elem: &schema.Schema{Type: schema.TypeMap}, - }, "scopes": { Type: schema.TypeList, Optional: true, @@ -121,8 +116,6 @@ func resourceDeveloperAppRead(d *schema.ResourceData, meta interface{}) error { //you might only ever have one credential... we'll see. scopes := flattenStringList(DeveloperAppData.Credentials[0].Scopes) - credentials := mapFromCredentials(DeveloperAppData.Credentials) - //Apigee does not return products in the order you send them oldApiProducts := getStringList("api_products", d) newApiProducts := apiProductsListFromCredentials(DeveloperAppData.Credentials[0].ApiProducts) @@ -135,7 +128,6 @@ func resourceDeveloperAppRead(d *schema.ResourceData, meta interface{}) error { d.Set("name", DeveloperAppData.Name) d.Set("attributes", DeveloperAppData.Attributes) - d.Set("credentials", credentials) d.Set("scopes", scopes) d.Set("callback_url", DeveloperAppData.CallbackUrl) d.Set("app_id", DeveloperAppData.AppId)