Skip to content

Commit

Permalink
feat(Catalog Management): update platform go sdk version, remove old …
Browse files Browse the repository at this point in the history
…catalog fields
  • Loading branch information
benbuchanan authored and hkantare committed Feb 21, 2024
1 parent 173301f commit 045ccc4
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 21 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ require (
github.com/IBM/ibm-hpcs-uko-sdk v0.0.20-beta
github.com/IBM/keyprotect-go-client v0.12.2
github.com/IBM/networking-go-sdk v0.44.0
github.com/IBM/platform-services-go-sdk v0.56.3
github.com/IBM/platform-services-go-sdk v0.59.0
github.com/IBM/project-go-sdk v0.2.1
github.com/IBM/push-notifications-go-sdk v0.0.0-20210310100607-5790b96c47f5
github.com/IBM/scc-go-sdk/v5 v5.1.4
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ github.com/IBM/mqcloud-go-sdk v0.0.4 h1:gqMpoU5a0qJ0GETG4PQrkgeEEoaQLvbxRJnEe6yt
github.com/IBM/mqcloud-go-sdk v0.0.4/go.mod h1:gQptHC6D+rxfg0muRFFGvTDmvl4YfiDE0uXkaRRewRk=
github.com/IBM/networking-go-sdk v0.44.0 h1:6acyMd6hwxcjK3bJ2suiUBTjzg8mRFAvYD76zbx0adk=
github.com/IBM/networking-go-sdk v0.44.0/go.mod h1:XtqYRInR5NHmFUXhOL6RovpDdv6PnJfZ1lPFvssA8MA=
github.com/IBM/platform-services-go-sdk v0.56.3 h1:DQ1VMQSknhPsdT7d+AybKiZT82esczAkHCIBkwYubzQ=
github.com/IBM/platform-services-go-sdk v0.56.3/go.mod h1:+U6Kg7o5u/Bh4ZkLxjymSgfdpVsaWAtsMtzhwclUry0=
github.com/IBM/platform-services-go-sdk v0.59.0 h1:FSRM3oKHxzShLCsIIb6Dl+JSaVOXpBWnfWFITJR6DDk=
github.com/IBM/platform-services-go-sdk v0.59.0/go.mod h1:+U6Kg7o5u/Bh4ZkLxjymSgfdpVsaWAtsMtzhwclUry0=
github.com/IBM/project-go-sdk v0.2.1 h1:Xo7ITrfyfVm0eCsaC2SADlhcEjqjx9rtU37fwnzGMCI=
github.com/IBM/project-go-sdk v0.2.1/go.mod h1:lqe0M4cKvABI1iHR1b+KfasVcxQL6nl2VJ8eOyQs8Ig=
github.com/IBM/push-notifications-go-sdk v0.0.0-20210310100607-5790b96c47f5 h1:NPUhkoOCRuv3OFWt19PmwjXGGTKlvmbuPg9fUrBUNe4=
Expand Down
6 changes: 0 additions & 6 deletions ibm/service/catalogmanagement/data_source_ibm_cm_object.go
Original file line number Diff line number Diff line change
Expand Up @@ -326,12 +326,6 @@ func dataSourceIBMCmObjectPublishObjectToMap(model *catalogmanagementv1.PublishO
if model.PublicApproved != nil {
modelMap["public_approved"] = *model.PublicApproved
}
if model.PortalApprovalRecord != nil {
modelMap["portal_approval_record"] = *model.PortalApprovalRecord
}
if model.PortalURL != nil {
modelMap["portal_url"] = *model.PortalURL
}
return modelMap, nil
}

Expand Down
12 changes: 0 additions & 12 deletions ibm/service/catalogmanagement/resource_ibm_cm_object.go
Original file line number Diff line number Diff line change
Expand Up @@ -545,12 +545,6 @@ func resourceIBMCmObjectMapToPublishObject(modelMap map[string]interface{}) (*ca
if modelMap["public_approved"] != nil {
model.PublicApproved = core.BoolPtr(modelMap["public_approved"].(bool))
}
if modelMap["portal_approval_record"] != nil && modelMap["portal_approval_record"].(string) != "" {
model.PortalApprovalRecord = core.StringPtr(modelMap["portal_approval_record"].(string))
}
if modelMap["portal_url"] != nil && modelMap["portal_url"].(string) != "" {
model.PortalURL = core.StringPtr(modelMap["portal_url"].(string))
}
return model, nil
}

Expand Down Expand Up @@ -585,12 +579,6 @@ func resourceIBMCmObjectPublishObjectToMap(model *catalogmanagementv1.PublishObj
if model.PublicApproved != nil {
modelMap["public_approved"] = model.PublicApproved
}
if model.PortalApprovalRecord != nil {
modelMap["portal_approval_record"] = model.PortalApprovalRecord
}
if model.PortalURL != nil {
modelMap["portal_url"] = model.PortalURL
}
return modelMap, nil
}

Expand Down

0 comments on commit 045ccc4

Please sign in to comment.