Skip to content

Commit

Permalink
resolves #40
Browse files Browse the repository at this point in the history
  • Loading branch information
zambien committed Apr 3, 2020
1 parent 57c553f commit 00cfe14
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
8 changes: 0 additions & 8 deletions apigee/resource_company_app.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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)
Expand All @@ -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)
Expand Down
8 changes: 0 additions & 8 deletions apigee/resource_developer_app.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit 00cfe14

Please sign in to comment.