mirror of
https://github.com/LukeHagar/developer.sailpoint.com.git
synced 2025-12-09 20:37:47 +00:00
update go docs and examples
This commit is contained in:
@@ -105,7 +105,7 @@ import (
|
||||
)
|
||||
|
||||
func main() {
|
||||
data := []byte(`{
|
||||
accessprofile := []byte(`{
|
||||
"owner" : {
|
||||
"name" : "support",
|
||||
"id" : "2c9180a46faadee4016fb4e018c20639",
|
||||
@@ -194,7 +194,7 @@ func main() {
|
||||
|
||||
|
||||
var accessProfile beta.AccessProfile
|
||||
if err := json.Unmarshal(data, &accessProfile); err != nil {
|
||||
if err := json.Unmarshal(accessprofile, &accessProfile); err != nil {
|
||||
fmt.Println("Error:", err)
|
||||
return
|
||||
}
|
||||
@@ -329,14 +329,14 @@ import (
|
||||
)
|
||||
|
||||
func main() {
|
||||
data := []byte(`{
|
||||
accessprofilebulkdeleterequest := []byte(`{
|
||||
"accessProfileIds" : [ "2c9180847812e0b1017817051919ecca", "2c9180887812e0b201781e129f151816" ],
|
||||
"bestEffortOnly" : true
|
||||
}`) // AccessProfileBulkDeleteRequest |
|
||||
|
||||
|
||||
var accessProfileBulkDeleteRequest beta.AccessProfileBulkDeleteRequest
|
||||
if err := json.Unmarshal(data, &accessProfileBulkDeleteRequest); err != nil {
|
||||
if err := json.Unmarshal(accessprofilebulkdeleterequest, &accessProfileBulkDeleteRequest); err != nil {
|
||||
fmt.Println("Error:", err)
|
||||
return
|
||||
}
|
||||
@@ -631,11 +631,11 @@ import (
|
||||
|
||||
func main() {
|
||||
id := `2c91808a7813090a017814121919ecca` // string | ID of the Access Profile to patch # string | ID of the Access Profile to patch
|
||||
jsonPatchOperation := fmt.Sprintf(`[{op=add, path=/entitlements, value=[{id=2c9180857725c14301772a93bb77242d, type=ENTITLEMENT, name=AD User Group}]}]`) // []JsonPatchOperation |
|
||||
jsonpatchoperation := []byte(`[{op=add, path=/entitlements, value=[{id=2c9180857725c14301772a93bb77242d, type=ENTITLEMENT, name=AD User Group}]}]`) // []JsonPatchOperation |
|
||||
|
||||
|
||||
var jsonPatchOperation beta.JsonPatchOperation
|
||||
if err := json.Unmarshal(data, &jsonPatchOperation); err != nil {
|
||||
var jsonPatchOperation beta.[]JsonPatchOperation
|
||||
if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil {
|
||||
fmt.Println("Error:", err)
|
||||
return
|
||||
}
|
||||
@@ -705,11 +705,11 @@ import (
|
||||
)
|
||||
|
||||
func main() {
|
||||
accessProfileBulkUpdateRequestInner := fmt.Sprintf(`[{id=464ae7bf-791e-49fd-b746-06a2e4a89635, requestable=false}]`) // []AccessProfileBulkUpdateRequestInner |
|
||||
accessprofilebulkupdaterequestinner := []byte(`[{id=464ae7bf-791e-49fd-b746-06a2e4a89635, requestable=false}]`) // []AccessProfileBulkUpdateRequestInner |
|
||||
|
||||
|
||||
var accessProfileBulkUpdateRequestInner beta.AccessProfileBulkUpdateRequestInner
|
||||
if err := json.Unmarshal(data, &accessProfileBulkUpdateRequestInner); err != nil {
|
||||
var accessProfileBulkUpdateRequestInner beta.[]AccessProfileBulkUpdateRequestInner
|
||||
if err := json.Unmarshal(accessprofilebulkupdaterequestinner, &accessProfileBulkUpdateRequestInner); err != nil {
|
||||
fmt.Println("Error:", err)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user